-
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
Support use of a path for auth_token in teleport.yaml #2515
Comments
I would treat this as a lower priority thing for now. TBH the tokens config section is screaming for improvement, i.e. we've made a mistake of overloading it, i.e. if I were to touch this code again I would propose to move to an easier and cleaner YAML (while accepting the old format), i.e. # server side:
auth_service:
tokens:
node: "file:///path/to/file"
auth: "https://host/path/to/file"
proxy: "in-place secret"
# one secret for all:
auth_service:
tokens:
"node,auth,proxy": "file://path/to/file"
# client side:
auth_token: "file:///path/to/file"
# or...
auth_token: "in-place secret" |
This is a pretty big blocker if you want to run your auth nodes in kubernetes and use kubernetes secrets to store your token. Make it challenging to rotate the secrets as well. |
@aaronmell agreed, we'll get to this eventually! |
What happened:
Using a file path in the
auth_token
section ofteleport.yaml
doesn't read the token from the file - the string seems to be interpreted literally as being the token itself.What you expected to happen:
Given that we support using a path in the
tokens
section underauth_service
(https://gravitational.com/teleport/docs/admin-guide/#static-tokens), I would expect that providing a path toauth_token
would read the token from the file in the same way.How to reproduce it (as minimally and precisely as possible):
teleport.yaml
(node) - token is not read from the file:teleport.yaml
(proxy/auth) - token is read from the file:Environment:
teleport version
):Teleport Enterprise v3.1.1git:v3.1.1-0-g8c506f47 go1.11.4
The text was updated successfully, but these errors were encountered: