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

`teleport configure` doesn't generate a valid config file out of the box #2891

Open
webvictim opened this issue Aug 1, 2019 · 0 comments

Comments

@webvictim
Copy link
Contributor

commented Aug 1, 2019

What happened: Running teleport configure should output a config file which will immediately work.

Unfortunately this isn't currently the case - the value for auth_servers is set to 0.0.0.0:3025 as a default, but this is a bind address rather than a connectable address and causes clusters not to work correctly.

$ teleport configure                                                                                                                                            
#
# Sample Teleport configuration file.
#
teleport:
  nodename: antaeus
  data_dir: /var/lib/teleport
  pid_file: /var/run/teleport.pid
  auth_token: cluster-join-token
  auth_servers:
  - 0.0.0.0:3025
  connection_limits:
    max_connections: 15000
    max_users: 250
  log:
    output: stderr
    severity: INFO
  ca_pin: ""
auth_service:
  enabled: "yes"
  listen_addr: 0.0.0.0:3025
  tokens:
  - proxy,node:cluster-join-token
  session_recording: ""
  client_idle_timeout: 0s
  disconnect_expired_cert: false
  keep_alive_count_max: 0
ssh_service:
  enabled: "yes"
  labels:
    db_role: master
    db_type: postgres
  commands:
  - name: hostname
    command: [/usr/bin/hostname]
    period: 1m0s
  - name: arch
    command: [/usr/bin/uname, -p]
    period: 1h0m0s
proxy_service:
  enabled: "yes"
  listen_addr: 0.0.0.0:3023
  web_listen_addr: 0.0.0.0:3080
  tunnel_listen_addr: 0.0.0.0:3024
  https_key_file: /var/lib/teleport/webproxy_key.pem
  https_cert_file: /var/lib/teleport/webproxy_cert.pem

This has flummoxed several users on the Community forums (https://community.gravitational.com/t/adding-a-node-to-the-cluster/239) as the error isn't immediately obvious.

What you expected to happen: A config which is usable without any changes should be generated.

How to reproduce it (as minimally and precisely as possible): Download Teleport, extract tarball, run teleport configure.

Environment:

  • Teleport version (use teleport version): Teleport Enterprise v4.0.2git:v4.0.2-0-gb7e0e872 go1.12.1
  • Tsh version (use tsh version): Teleport v4.0.2 git:v4.0.2-0-gb7e0e872 go1.12.1
  • OS (e.g. from /etc/os-release): Fedora 29

This is probably an easy starter issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.