Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

[v11] Connect: Accommodate for making gRPC server creds in shared process#1302

Merged
ravicious merged 2 commits into
teleport-v11from
ravicious/v11/backport-1220
Oct 27, 2022
Merged

[v11] Connect: Accommodate for making gRPC server creds in shared process#1302
ravicious merged 2 commits into
teleport-v11from
ravicious/v11/backport-1220

Conversation

@ravicious
Copy link
Copy Markdown
Member

Backport #1220

…1220)

* Add comment to resolveNetworkAddress

* Log errors during boot of React app

* Connect: Accommodate for making gRPC server creds in shared process

* Adjust timeout for resolveNetworkAddress

Some of the timeouts in preload.ts, the shared process and tshd are set
to 10s. If the timeout to resolve the network address is lower or equal
to that, those timeout won't have the chance kick in.

Hence setting the timeout to a slightly larger value.

* makeCert: Add subjectAltName to certs

Without this, the cert generated by makeCert was failing when loaded
in Go as the gRPC server cert. The error message was:

    x509: certificate relies on legacy Common Name field, use SANs instead

See:

* https://stackoverflow.com/a/31143907/742872
* Search for "subjectAltName" https://github.com/digitalbazaar/forge/blob/2bb97afb5058285ef09bcf1d04d6bd6b87cffd58/README.md

* Fix lint issues

* Reword comment

Co-authored-by: Michael <michael.myers@goteleport.com>

* Remove unused imports

Co-authored-by: Michael <michael.myers@goteleport.com>
@ravicious ravicious requested review from avatus and gzdunek October 26, 2022 14:55
@ravicious ravicious changed the title [v11]Connect: Accommodate for making gRPC server creds in shared process [v11] Connect: Accommodate for making gRPC server creds in shared process Oct 26, 2022
@ravicious ravicious merged commit 0044f54 into teleport-v11 Oct 27, 2022
@ravicious ravicious deleted the ravicious/v11/backport-1220 branch October 27, 2022 08:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants