Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beejones/key release policy operators #138

Merged
merged 6 commits into from
Sep 27, 2024

Conversation

beejones
Copy link
Contributor

Before this change, the key release policy was only using an array of claims which needed to be found in the attestation.
The policy is extended with operators. We added two operators:
gt: Greater than indicating that the attestation claim must be greater than what is indicated in the policy.
gte: Greater than or equal.

The key release policy logic changed completely as also the constitution.
New unit tests check the logic of key release policy.

@beejones
Copy link
Contributor Author

governance/constitution/kms_actions.js Outdated Show resolved Hide resolved
scripts/setup_mCCF.sh Outdated Show resolved Hide resolved
src/policies/IKeyReleasePolicySnpProps.ts Outdated Show resolved Hide resolved
src/policies/IKeyReleasePolicySnpProps.ts Show resolved Hide resolved
test/unit-test/policies/IKeyReleasePolicySnpProps.test.ts Outdated Show resolved Hide resolved
src/policies/IKeyReleasePolicy.ts Outdated Show resolved Hide resolved
test/e2e-test/src/index.ts Show resolved Hide resolved
governance/policies/key-release-policy-add.json Outdated Show resolved Hide resolved
@beejones
Copy link
Contributor Author

@beejones beejones merged commit df08ca3 into main Sep 27, 2024
6 checks passed
@beejones beejones deleted the beejones/key-release-policy-operators branch October 3, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants