-
Notifications
You must be signed in to change notification settings - Fork 52.6k
feat(auth): support named credentials with manual selection (#76937) #76987
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,6 +28,11 @@ def build_auth_parser(subparsers, *, cmd_auth: Callable) -> None: | |
| help="Credential type to add", | ||
| ) | ||
| auth_add.add_argument("--label", help="Optional display label") | ||
| auth_add.add_argument( | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This only names credentials at creation time. #76937 asks for |
||
| "--name", | ||
| help="Optional credential name for manual selection " | ||
| "(set config default_auth.<provider> to this name to pin the pool to it)", | ||
| ) | ||
| auth_add.add_argument( | ||
| "--api-key", help="API key value (otherwise prompted securely)" | ||
| ) | ||
|
|
||
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.
Please apply this narrowing to
acquire_lease()as well.tools/delegate_tool.py:1992leases child credentials through that method, and its current implementation chooses from all available entries, so delegated tasks can bypass the selected credential.