Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Add support for reserved prefixes #1227

Merged
merged 4 commits into from Jul 31, 2023
Merged

Conversation

chloe-loo
Copy link
Contributor

This allows operators of a keywhiz service to reserve secret names that begin with a specified prefix for a specified owner. For example, we can enforce that a secret beginning with sp: can only be created if the ownerName is specialOwner.

@chloe-loo chloe-loo requested a review from a team as a code owner July 31, 2023 18:14
@coveralls
Copy link

coveralls commented Jul 31, 2023

Coverage Status

coverage: 75.135% (+0.05%) from 75.087% when pulling fce0a2f on chloeb/reserved-prefixes into 74060a0 on master.

@spennymac
Copy link
Contributor

Is there any concern for existing secrets that match the reserved pattern?

@chloe-loo
Copy link
Contributor Author

Good question. The "reserved prefixes" will only be checked at create time, so any existing secrets that match the reserved pattern will not be subject to the reserved prefix rules.

@chloe-loo chloe-loo merged commit 685d197 into master Jul 31, 2023
5 checks passed
@chloe-loo chloe-loo deleted the chloeb/reserved-prefixes branch July 31, 2023 18:35
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.

None yet

3 participants