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

Support delegation in AuthorizedKeyPolicy #186

Merged
merged 3 commits into from
Aug 24, 2023

Conversation

lann
Copy link
Collaborator

@lann lann commented Aug 24, 2023

This adds a delegation flag to AuthorizedKeyPolicy which is configurable per-namespace/package. When enabled, the authorized key enforcement for that scope only applies to init messages.

To support the flag, the authorized keys toml format has changed to e.g.:

[namespace.foo]
keys = ["..."]
delegation = true

Fixes #185

Also a couple of formatting changes from rustfmt 1.6 since we enforce latest stable.

@lann lann requested a review from peterhuene August 24, 2023 15:44
This adds a delegation config flag to AuthorizedKeyPolicy which, when
enabled, causes the policy to only check authorized keys for init
entries, relying on proper log validation of permissions for all other
entries.
Copy link
Member

@peterhuene peterhuene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@lann lann merged commit d9ef671 into bytecodealliance:main Aug 24, 2023
6 checks passed
@lann lann deleted the policy-delegate branch August 24, 2023 18:07
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.

Support publishing from "grant"ed publishers
2 participants