consul/agent/proxycfg
Freddy 7c3e9cd862
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
..
internal/watch
api_gateway.go
connect_proxy.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
data_sources.go
data_sources_oss.go
deep-copy.sh
ingress_gateway.go
manager.go
manager_test.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
mesh_gateway.go
mesh_gateway_oss.go
naming.go
naming_oss.go
naming_test.go
proxycfg.deepcopy.go Support Envoy's MaxEjectionPercent and BaseEjectionTime config entries for passive health checks (#15979) 2023-04-26 15:59:48 -07:00
proxycfg.go docs: add envoy to the proxycfg diagram (#16834) 2023-04-04 09:42:42 -04:00
snapshot.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
snapshot_test.go
state.go
state_oss_test.go
state_test.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
terminating_gateway.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
testing.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
testing_api_gateway.go add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
testing_connect_proxy.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
testing_ingress_gateway.go add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
testing_mesh_gateway.go add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
testing_oss.go
testing_peering.go
testing_terminating_gateway.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
testing_tproxy.go add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
testing_upstreams.go move enterprise test cases out of open source (#16985) 2023-04-13 09:07:06 -04:00
testing_upstreams_oss.go move enterprise test cases out of open source (#16985) 2023-04-13 09:07:06 -04:00
upstreams.go Fix multiple issues related to proxycfg health queries. (#17241) 2023-05-09 12:37:58 -05:00