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

Would it be a problem to run auth and/or proxy servers in a docker cluster? #1493

Closed
iuriaranda opened this issue Dec 5, 2017 · 5 comments
Closed

Comments

@iuriaranda
Copy link

Hi,

We're considering running the auth and proxy servers in separate containers in a docker cluster (ECS), and we were wondering if that would be a bad practice or counter-advised for some reason. Technically I don't think it's a problem, although there are some things that need to be well-thought, like:

  • how to deploy the TLS certificate on the containers
  • how to run tctl commands on the auth server.
@klizhentas
Copy link
Contributor

Proxy and Auth were originally designed to run as separate services in production, so it should not be a problem.

How to deploy the TLS cert on the containers - I suggest using KMS and SSM parameter store to distribute certs on AWS.
Running tctl commands on the auth server - should work as is

@klizhentas
Copy link
Contributor

going to close this ticket, but feel free to follow up with your questions here or in the new ticket.

@iuriaranda
Copy link
Author

Great, thanks for the quick response.

@iuriaranda
Copy link
Author

As I've already mentioned, we're going to run the auth server in Docker in ECS, but the problem then is that we would need to execute tctl commands inside the running container, but of course that is not that straight-forward, and I might even say it's not a good practice. So is there another way to issue administration commands to the auth server remotely?

My (maybe crazy) idea was to spin up a one-off auth container with a pre-configured tctl command to run. This container would start the auth Teleport service, issue the tctl command and shut down immediately. And we would need to do that for each command that we want to issue. Do you think that's doable? And if so, is there any reason not to do it this way?

@klizhentas
Copy link
Contributor

not very documented on our side, but you can use tctl remotely assuming you have the right credentials and can point to auth server. we should document this. Let me create a special ticket for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants