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

add TLS client cert and cookie injection to tsh #6831

Open
programmerq opened this issue May 12, 2021 · 0 comments
Open

add TLS client cert and cookie injection to tsh #6831

programmerq opened this issue May 12, 2021 · 0 comments
Labels
c-bl Internal Customer Reference c-sq Internal Customer Reference feature-request Used for new features in Teleport, improvements to current should be #enhancements

Comments

@programmerq
Copy link
Contributor

What

When teleport is behind a beyondcorp gateway appliance, any requests it makes over https must be made with a client certificate and also inject a cookie. The beyondcorp appliance then acts as a reverse proxy to teleport.

The beyond software on the end users' laptops provide a listening unix socket that handles injecting the correct client certificate, so that is also something that could work in place of the client certificate support.

a cURL example showing how the access is done:

curl https://teleport.example.com:3080/ would become either:

curl -E /path/to/client.crt --key /path/to/client.key --cookie "bc_auth_token: $(beyond-agent query -t)" https://teleport.example.com:3080/

or

curl --unix-socket /path/to/beyond.sock --cookie "bc_auth_token: $(beyond-agent query -t)" https://teleport.example.com:3080/

How

extend tsh to have arguments to allow for client cert and arbitrary cookie/header information.

Why

Teleport is installed behind a beyondcorp gateway appliance and these requirements (along with #6830) are necessary to get users to use teleport in this environment

Workaround

currently need to build a forked tsh with beyondcorp gateway logic added in.

@programmerq programmerq added feature-request Used for new features in Teleport, improvements to current should be #enhancements c-sq Internal Customer Reference labels May 12, 2021
@pschisa pschisa added the c-bl Internal Customer Reference label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-bl Internal Customer Reference c-sq Internal Customer Reference feature-request Used for new features in Teleport, improvements to current should be #enhancements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants