Skip to content

docs: add self signed certs guide#16182

Merged
GavinFrazar merged 47 commits intomasterfrom
gavinfrazar/self_signed_certs
Oct 11, 2022
Merged

docs: add self signed certs guide#16182
GavinFrazar merged 47 commits intomasterfrom
gavinfrazar/self_signed_certs

Conversation

@GavinFrazar
Copy link
Copy Markdown
Contributor

@GavinFrazar GavinFrazar commented Sep 6, 2022

Closes #13781

This PR adds a guide for using self-signed certs with Teleport. It includes a prominent warning about why you should never use self-signed certs in production, and info about how to use teleport, tctl, and tsh with a proxy that uses self-signed certs.

For using teleport I included info about passing --insecure for helm and for systemd daemon.

The PR also consolidates copies of the same snippet regarding TLS certificate setup into a single include file:
tls-certificate-setup.mdx

@GavinFrazar
Copy link
Copy Markdown
Contributor Author

I also moved the info on how to setup certs into an include file and included that in the self-signed certs guide

Comment thread docs/config.json Outdated
Comment thread docs/pages/management/admin.mdx Outdated
Comment thread docs/pages/includes/tls-certificate-setup.mdx Outdated
Comment thread docs/pages/management/admin/self-signed-certs.mdx Outdated
Comment thread docs/pages/management/admin/self-signed-certs.mdx Outdated
Comment thread docs/pages/management/admin/self-signed-certs.mdx Outdated
Comment thread docs/pages/management/admin/self-signed-certs.mdx Outdated
Comment thread docs/pages/management/admin/self-signed-certs.mdx Outdated
Comment thread docs/pages/management/admin/self-signed-certs.mdx Outdated
Comment thread docs/pages/management/admin/self-signed-certs.mdx Outdated
GavinFrazar and others added 13 commits September 13, 2022 13:18
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
certs -> certificates
proxy -> Proxy Service
Comment on lines +105 to +107
- The Teleport config file `auth_servers` setting is set to the Proxy Service endpoint:
- `auth_servers: ["tele.example.com:443"]` or
- `auth_servers: ["tele.example.com:3080"]`
Copy link
Copy Markdown
Member

@ryanclark ryanclark Oct 4, 2022

Choose a reason for hiding this comment

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

We recently added config v3 which has either auth_server or proxy_server (#15761)

# Only use one of auth_server or proxy_server.
#
# When you have either the application service or database service enabled,
# only tunneling through the proxy is supported, so you should specify proxy_server.
# All other services support both tunneling through the proxy and directly connecting
# to the auth server, so you can specify either auth_server or proxy_server.
# Auth Server address and port to connect to. If you enable the Teleport
# Auth Server to run in High Availability configuration, the address should
# point to a Load Balancer.
# If adding a node located behind NAT, specify `proxy_servers` instead
auth_server: 10.1.0.5:3025
# Proxy Server address and port to connect to. If you enable the Teleport
# Proxy Server to run in High Availability configuration, the address should
# point to a Load Balancer.
proxy_server: teleport-proxy.example.com:443

Can you update this to match please?

Note, we didn't backport this, so when backporting for v10 you should still mention auth_servers.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure. On that note, are we planning to update the teleport start cli to have separate --proxy-server and --auth-server?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cc @zmb3

@alexfornuto alexfornuto disabled auto-merge October 4, 2022 15:11
@alexfornuto alexfornuto assigned GavinFrazar and unassigned ptgott Oct 4, 2022
@alexfornuto
Copy link
Copy Markdown
Contributor

I disabled auto-merge and reassigned back to @GavinFrazar to address the latest review.

@GavinFrazar GavinFrazar assigned ryanclark and unassigned GavinFrazar Oct 4, 2022
Comment thread docs/pages/management/admin/self-signed-certs.mdx Outdated
@ryanclark
Copy link
Copy Markdown
Member

@GavinFrazar did you mean to assign this PR to me?

@GavinFrazar
Copy link
Copy Markdown
Contributor Author

@GavinFrazar did you mean to assign this PR to me?

I reassigned after addressing your feedback, since I've seen that a few times in other PRs I thought maybe it was just the norm lol.

@GavinFrazar
Copy link
Copy Markdown
Contributor Author

@ryanclark just waiting on your approval, was there something else you wanted addressed still?

@GavinFrazar GavinFrazar enabled auto-merge (squash) October 11, 2022 17:53
@GavinFrazar GavinFrazar merged commit 1c3c06e into master Oct 11, 2022
@github-actions
Copy link
Copy Markdown
Contributor

@GavinFrazar See the table below for backport results.

Branch Result
branch/v11 Failed

@GavinFrazar GavinFrazar deleted the gavinfrazar/self_signed_certs branch October 11, 2022 18:19
GavinFrazar added a commit that referenced this pull request Oct 11, 2022
* Add slug for self signed certs

* Add self-signed certs guide

* Move tls cert setup into an include snippet

* Update tsh section on self signed certs

* Fix indentation

* Remove extra slash before heading

* Update docs/config.json

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/includes/tls-certificate-setup.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Fix formatting of github suggestion commit

* Change link title to avoid abbreviation

* Update intro to explain the purpose of the guide and why anyone would want it

* Make 'proxy' and 'certs' consistent throughout the guide:
certs -> certificates
proxy -> Proxy Service

* Move motivation for guide out of warning and into intro

* Simplify the warning notice

* Change headings

* Capitalize helm and simplify label

* Update Helm info to include inline instructions

* Simplify systemd label

* Update systemd tab

* Update slug certs -> certificates

* Fix include snippet yaml example

* Change prereqs to omit cloud tab and instruct user to check for self-signed certs config

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Apply suggestions from code review

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Get specific about problem caused by insecure TLS

* Remove 'how to setup tls certs' section in favor of a link at the bottom

* Add examples for tsh and tctl, and clean up tctl wording

* Remove link to systemd guide

* Add more detail to systemd instructions

* Change wording around instructions for teleport

* Rearrange links

* Remove reference to deleted acme.mdx

* Remove v2 config reference to auth_servers

* Remove list syntax for proxy_server

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
GavinFrazar added a commit that referenced this pull request Oct 11, 2022
* docs: add self signed certs guide (#16182)

* Add slug for self signed certs

* Add self-signed certs guide

* Move tls cert setup into an include snippet

* Update tsh section on self signed certs

* Fix indentation

* Remove extra slash before heading

* Update docs/config.json

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/includes/tls-certificate-setup.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Fix formatting of github suggestion commit

* Change link title to avoid abbreviation

* Update intro to explain the purpose of the guide and why anyone would want it

* Make 'proxy' and 'certs' consistent throughout the guide:
certs -> certificates
proxy -> Proxy Service

* Move motivation for guide out of warning and into intro

* Simplify the warning notice

* Change headings

* Capitalize helm and simplify label

* Update Helm info to include inline instructions

* Simplify systemd label

* Update systemd tab

* Update slug certs -> certificates

* Fix include snippet yaml example

* Change prereqs to omit cloud tab and instruct user to check for self-signed certs config

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Apply suggestions from code review

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/management/admin/self-signed-certs.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Get specific about problem caused by insecure TLS

* Remove 'how to setup tls certs' section in favor of a link at the bottom

* Add examples for tsh and tctl, and clean up tctl wording

* Remove link to systemd guide

* Add more detail to systemd instructions

* Change wording around instructions for teleport

* Rearrange links

* Remove reference to deleted acme.mdx

* Remove v2 config reference to auth_servers

* Remove list syntax for proxy_server

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Delete orphaned include

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Node fails to join with self-signed certificates

4 participants