Skip to content
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

Documentation for ssh_port_forwarding role option #50361

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

eriktate
Copy link
Contributor

@eriktate eriktate commented Dec 17, 2024

This PR swaps occurrences of port_forwarding with ssh_port_forwarding in our guides and references. We don't currently have a section dedicated to port forwarding that I was able to find, so I added some additional context about the legacy field to the rbac/role reference.

I'm happy to add a separate paragraph about port forwarding access controls if that would be useful. I found myself essentially rewriting the note included in the rbac/role reference, though, and opted to leave that out for now.

Comment on lines +93 to +97
ssh_port_forwarding:
remote:
enabled: true
local:
enabled: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These RFD edits probably weren't necessary, but I figured it doesn't hurt to keep example configurations accurate

@eriktate eriktate force-pushed the eriktate/docs/ssh-port-forwarding branch from cd4d28b to 2eacd8c Compare December 17, 2024 20:53
@eriktate eriktate force-pushed the eriktate/docs/ssh-port-forwarding branch from 2eacd8c to f5e80bb Compare December 17, 2024 20:57
Copy link

🤖 Vercel preview here: https://docs-3yd3pybxj-goteleport.vercel.app/docs

Copy link

🤖 Vercel preview here: https://docs-ejdwth8s8-goteleport.vercel.app/docs

# port_forwarding controls whether TCP port forwarding is allowed for SSH
port_forwarding: true
# ssh_port_forwarding controls which TCP port forwarding modes are allowed over SSH. This replaces
# the now deprecated port_forwarding field which did not differentiate between remote and local
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# the now deprecated port_forwarding field which did not differentiate between remote and local
# the deprecated port_forwarding field, which did not differentiate between remote and local
  • removing "now", since the docs are assumed to be up to date as of the present
  • adding a comma before "which"

# port_forwarding controls whether TCP port forwarding is allowed for SSH
port_forwarding: true
# ssh_port_forwarding controls which TCP port forwarding modes are allowed over SSH. This replaces
# the now deprecated port_forwarding field which did not differentiate between remote and local
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# the now deprecated port_forwarding field which did not differentiate between remote and local
# the deprecated port_forwarding field, which did not differentiate between remote and local

# the now deprecated port_forwarding field which did not differentiate between remote and local
# port forwarding modes. If you have any existing roles that allow forwarding by enabling the
# legacy port_forwarding field then the forwarding controls configured in ssh_port_forwarding will be
# effectively ignored.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need "effectively" here? If "effectively ignored" this means the same thing as "ignored", I would remove "effectively" to make this clearer.

…orwarding and adding some additional context to the rbac reference
@eriktate eriktate force-pushed the eriktate/docs/ssh-port-forwarding branch from 3957446 to e177ff6 Compare December 18, 2024 22:16
Copy link

🤖 Vercel preview here: https://docs-ix45oom5j-goteleport.vercel.app/docs

Copy link

🤖 Vercel preview here: https://docs-50seoyr14-goteleport.vercel.app/docs

@eriktate eriktate added this pull request to the merge queue Dec 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 18, 2024
@eriktate eriktate added this pull request to the merge queue Dec 18, 2024
Merged via the queue into master with commit e67a13e Dec 18, 2024
44 checks passed
@eriktate eriktate deleted the eriktate/docs/ssh-port-forwarding branch December 18, 2024 23:17
@public-teleport-github-review-bot

@eriktate See the table below for backport results.

Branch Result
branch/v17 Create PR

mvbrock pushed a commit that referenced this pull request Dec 19, 2024
…orwarding and adding some additional context to the rbac reference (#50361)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v17 documentation no-changelog Indicates that a PR does not require a changelog entry rfd Request for Discussion size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants