-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 new tctl bots update
command
#36496
Conversation
This adds a new command to update roles and logins for existing bots, with flags to both set and append as desired. changelog: Add new `tctl bots update` command to update bot roles and logins
Also merges in some other misc docs changes for `tctl bots ...`
🤖 Vercel preview here: https://docs-r3txznhhz-goteleport.vercel.app/docs/ver/preview |
🤖 Vercel preview here: https://docs-oljes2xje-goteleport.vercel.app/docs/ver/preview |
🤖 Vercel preview here: https://docs-85fdrdbgs-goteleport.vercel.app/docs/ver/preview |
Should we be using the new UpdateBot RPC for this instead ? Or is this so we can backport this further? |
Co-authored-by: Paul Gottschling <[email protected]>
🤖 Vercel preview here: https://docs-1g7f28sxi-goteleport.vercel.app/docs/ver/preview |
This switches to use the new `UpdateBot()` RPC instead of modifying the bot user and role directly. Also, tweaks CLI messaging to be a bit less chatty.
Ah, good call, truthfully I forgot we had an explicit update RPC now 😅. Anyway, I've updated it to use the correct RPC. |
🤖 Vercel preview here: https://docs-8b9m8bos0-goteleport.vercel.app/docs/ver/preview |
Removes the Set package and unrolls all related function calls in bots_command.
🤖 Vercel preview here: https://docs-8klnr2zss-goteleport.vercel.app/docs/ver/preview |
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.
Hey Tim! A couple of thoughts on this. Sorry for the last minute quarterbacking. :)
This also makes a minimal API wrapper interface for mocking.
🤖 Vercel preview here: https://docs-4gfq6ays6-goteleport.vercel.app/docs/ver/preview |
🤖 Vercel preview here: https://docs-au6zkinpw-goteleport.vercel.app/docs/ver/preview |
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.
Just one docs nit.
Co-authored-by: Zac Bergquist <[email protected]>
🤖 Vercel preview here: https://docs-dsmwwjpgh-goteleport.vercel.app/docs/ver/preview |
@timothyb89 See the table below for backport results.
|
This adds a new command to update roles and logins for existing bots, with flags to both set and append as desired.
changelog: Add new
tctl bots update
command to update bot roles and loginsCloses #34262