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 copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
api_gateway.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_proxy.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
data_sources.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
data_sources_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
deep-copy.sh copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
ingress_gateway.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
manager.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
manager_test.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
mesh_gateway.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
mesh_gateway_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
naming.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
naming_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
naming_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
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 copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
state.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
state_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
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 copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_peering.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
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