Skip to content

adds public web addresses to self-signed cert#28766

Merged
stevenGravy merged 19 commits intomasterfrom
stevenGravy/selfsigned
Jul 24, 2023
Merged

adds public web addresses to self-signed cert#28766
stevenGravy merged 19 commits intomasterfrom
stevenGravy/selfsigned

Conversation

@stevenGravy
Copy link
Copy Markdown
Contributor

@stevenGravy stevenGravy commented Jul 6, 2023

fixes #15004

Adds public addresses specified. If an error occurs parsing the public address it is logged and skipped.

@stevenGravy stevenGravy marked this pull request as ready for review July 6, 2023 16:57
@stevenGravy stevenGravy enabled auto-merge July 6, 2023 16:57
@stevenGravy stevenGravy requested a review from strideynet July 6, 2023 16:57
@github-actions github-actions Bot requested review from klizhentas and zmb3 July 6, 2023 16:57
Comment thread lib/service/service.go Outdated
Comment thread lib/service/service.go Outdated
Comment thread lib/service/service.go Outdated
Comment thread lib/service/service.go Outdated
Copy link
Copy Markdown
Contributor

@strideynet strideynet left a comment

Choose a reason for hiding this comment

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

Thanks for tackling this !

Comment thread lib/service/service.go Outdated
Comment thread lib/service/service.go
Comment thread lib/utils/cert/selfsigned.go Outdated
Comment thread lib/utils/cert/selfsigned.go Outdated
Copy link
Copy Markdown
Contributor

@strideynet strideynet left a comment

Choose a reason for hiding this comment

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

Just a few nitpicks.

@@ -87,6 +87,10 @@ func GenerateSelfSignedCert(hostNames []string) (*Credentials, error) {
if ips != nil {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: It'd be tempted to rename ips to loopbackIPs or similar - just so its clearly distinct from ipAddresses in purpose.

Comment thread lib/srv/db/access_test.go
@stevenGravy
Copy link
Copy Markdown
Contributor Author

Please take a look when you can @zmb3.

Comment thread lib/service/service.go Outdated
Comment thread lib/teleterm/gateway/db_middleware_test.go Outdated
Comment thread lib/teleterm/grpccredentials.go Outdated
Comment thread lib/utils/cert/selfsigned.go Outdated
stevenGravy and others added 2 commits July 24, 2023 13:42
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Comment thread lib/service/service.go
Comment thread lib/srv/db/access_test.go
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from klizhentas July 24, 2023 19:52
@stevenGravy stevenGravy added this pull request to the merge queue Jul 24, 2023
Merged via the queue into master with commit c8c9158 Jul 24, 2023
@stevenGravy stevenGravy deleted the stevenGravy/selfsigned branch July 24, 2023 20:10
@public-teleport-github-review-bot
Copy link
Copy Markdown

@stevenGravy See the table below for backport results.

Branch Result
branch/v11 Failed
branch/v12 Failed
branch/v13 Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generated self-signed proxy certificates should include public_addr

3 participants