Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Feat: Add stricter key validation #4

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

RisingOpsNinja
Copy link

@RisingOpsNinja RisingOpsNinja commented Sep 4, 2024

Changes:

  • Check the validity period of all keys (optional)

    Set the maximum allowed key validity in config.toml:

    [policy]
    key_max_validity = 63072000 # 2 years

    If no configuration exists or the value is zero, Simple WKD will omit the check.

  • Set the allowed ciphers and hash algorithms in a toml configuration file.

    The filepath is specified in the environment variable SEQUOIA_CRYPTO_POLICY or the file /etc/crypto-policies/back-ends/sequoia.config is used if it exists.
    Otherwise it uses the sequoia standard policy like previously.

    For more details see the documention of sequoia_policy_config and the provided example policy file.

  • Check subkeys against the policy

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant