Skip to content

Backport of Sync bootstrap config from consul/main into release/1.1.x#103

Merged
hc-github-team-consul-core merged 2 commits into
release/1.1.xfrom
backport/cc-4929-copy-bootstrap-config/previously-concise-aardvark
May 9, 2023
Merged

Backport of Sync bootstrap config from consul/main into release/1.1.x#103
hc-github-team-consul-core merged 2 commits into
release/1.1.xfrom
backport/cc-4929-copy-bootstrap-config/previously-concise-aardvark

Conversation

@hc-github-team-consul-core
Copy link
Copy Markdown
Collaborator

Backport

This PR is auto-generated from #101 to be assessed for backporting due to the inclusion of the label backport/1.1.

The below text is copied from the body of the original PR.


Updated with make copy-bootstrap-config to sync changes from hashicorp/consul#17204


UNIX domain socket paths are limited to 104-108 characters depending on the OS. This limit was quite easy to exceed when testing the feature on Kubernetes, due to how proxy IDs encode the Pod ID eg:
metrics-collector-59467bcb9b-fkkzl-hcp-metrics-collector-sidecar-proxy

To ensure we stay under the lower 104 character limit this commit makes a couple changes:

  • Use a b64 encoded SHA1 hash of the namespace + proxy ID to create a short and deterministic socket file name.
  • Add validation to proxy registrations and proxy-defaults to enforce a limit on the socket directory length.

Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core requested a review from a team as a code owner May 9, 2023 21:14
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/cc-4929-copy-bootstrap-config/previously-concise-aardvark branch from 00e99a3 to 0b76fe5 Compare May 9, 2023 21:14
@hc-github-team-consul-core hc-github-team-consul-core enabled auto-merge (squash) May 9, 2023 21:14
@hc-github-team-consul-core hc-github-team-consul-core merged commit 2faea7c into release/1.1.x May 9, 2023
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/cc-4929-copy-bootstrap-config/previously-concise-aardvark branch May 9, 2023 21:43
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

Successfully merging this pull request may close these issues.

2 participants