-
Notifications
You must be signed in to change notification settings - Fork 99
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
Add applyTo to Credentials #407
Conversation
Allow restricting a credential to a list of actions, just like Parameters can do today. This allows a credential to not have to be passed in for actions that do not use it. Signed-off-by: Carolyn Van Slyck <[email protected]>
Bundles may set the applyTo field on credentials. When it is set, only require the credential when it applies to the specified action. Implements cnabio/cnab-spec#407 Signed-off-by: Carolyn Van Slyck <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. As this is additive (and optional), we should be good with a minor bump in the bundle spec when this is merged, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Correct, this doesn't change existing behavior when applyTo is not set. We talked about it in the CNAB meeting with Matt and Chris and agreed this is a minor spec change. |
Bundles may set the applyTo field on credentials. When it is set, only require the credential when it applies to the specified action. Implements cnabio/cnab-spec#407 Signed-off-by: Carolyn Van Slyck <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍😍
Allow restricting a credential to a list of actions, just like Parameters can do today. This allows a credential to not have to be
passed in for actions that do not use it.
Closes #366