open-consul/command/connect/envoy
Freddy 0459069523
Hash namespace+proxy ID when creating socket path (#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 that 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.
2023-05-09 12:20:26 -06:00
..
pipe-bootstrap Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
testdata Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
bootstrap_config.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
bootstrap_config_test.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
bootstrap_tpl.go Revert "[CC-4519] Include Consul NodeID in Envoy bootstrap metadata" (#17191) 2023-04-28 15:23:55 -06:00
envoy.go Revert "[CC-4519] Include Consul NodeID in Envoy bootstrap metadata" (#17191) 2023-04-28 15:23:55 -06:00
envoy_oss_test.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
envoy_test.go Revert "[CC-4519] Include Consul NodeID in Envoy bootstrap metadata" (#17191) 2023-04-28 15:23:55 -06:00
exec.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
exec_test.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
exec_unix.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
exec_unsupported.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
flags.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
flags_test.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00