-
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 ssh.forwardAgent
setting to Connect
#46798
Conversation
🤖 Vercel preview here: https://docs-mkb0sx1m2-goteleport.vercel.app/docs/ver/preview |
@@ -478,6 +478,7 @@ Below is the list of the supported config properties. | |||
| `keymap.openSearchBar` | `Command+K` on macOS<br/>`Ctrl+Shift+K` on Windows/Linux | Shortcut to open the search bar. | | |||
| `headless.skipConfirm` | false | Skips the confirmation prompt for Headless WebAuthn approval and instead prompts for WebAuthn immediately. | | |||
| `ssh.noResume` | false | Disables SSH connection resumption. | | |||
| `ssh.forwardAgent` | true | Enables agent forwarding. | |
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.
The description here is different than in appConfigSchema
. Was it done intentionally?
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.
I just wanted to keep it short after I saw how short it is for ssh.noResume
. 🥲
@ravicious See the table below for backport results.
|
In gravitational/webapps#1366, we made it so that Connect always passes
--forward-agent
to fix #18320 – before that it was impossible to use agent forwarding in Connect.When investigating an issue with gpg-agent, after a short discussion we decided to turn it into an opt-in config option instead.
However, technically it'd be a breaking change, so this is split into two PRs. The first one is going to add
ssh.forwardAgent
that defaults to true (to keep backwards compatibility) and is going to be backported to v15 and v16. The next PR (#46799) is going to change the default to false and it will be released in v17.0.0.Fortunately thanks to the already existing
ssh.noResume
we have an established pattern for selecting flags to pass totsh ssh
based on the config of Connect. v14 doesn't have that config option, so I'm not backporting to v14.changelog: Added a new config option in Teleport Connect to control SSH agent forwarding (
ssh.forwardAgent
); starting in Teleport Connect v17, this option will be disabled by default