-
Notifications
You must be signed in to change notification settings - Fork 297
enhance: share credential #634
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
Conversation
Signed-off-by: Grant Linville <[email protected]>
pkg/parser/parser.go
Outdated
@@ -148,6 +148,8 @@ func isParam(line string, tool *types.Tool) (_ bool, err error) { | |||
} | |||
case "credentials", "creds", "credential", "cred": | |||
tool.Parameters.Credentials = append(tool.Parameters.Credentials, value) | |||
case "exportcredentials", "exportcreds", "exportcredential", "exportcred", "sharecredentials", "sharecreds", "sharecredential", "sharecred": |
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.
don't support the "export" keyword. For new things we are only adding "share" since we want everything to switch to share.
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.
fixed
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.
Well I pushed another commit at least, but it isn't showing up in the PR 🤔
Signed-off-by: Grant Linville <[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.
💯 on the test added
This adds a new tool parameter,
Share Credentials
(with several aliases), which is essentially the same thing asShare Tools
but specifically for credential tools.I also added a new integration test that tests credential "scopes" to make sure that in a tree of tools that define and share credentials, each tool only has access to credentials that it defines and credentials shared by its immediate children in the tree.