open-consul/agent/structs
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
..
aclfilter add acl filter logs (#17143) 2023-04-26 10:57:35 -04:00
acl.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_cache.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_cache_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
auto_encrypt.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
autopilot.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
autopilot_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
catalog.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
catalog_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
check_definition.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
check_definition_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
check_type.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
config_entry_discoverychain.go Add PrioritizeByLocality to config entries. (#17007) 2023-04-14 15:42:54 -05:00
config_entry_discoverychain_oss.go Add PrioritizeByLocality to config entries. (#17007) 2023-04-14 15:42:54 -05:00
config_entry_discoverychain_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_discoverychain_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_exports.go Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
config_entry_exports_oss.go [COMPLIANCE] Add Copyright and License Headers (#16854) 2023-04-20 12:40:22 +00:00
config_entry_exports_oss_test.go Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
config_entry_exports_test.go Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
config_entry_gateways.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_gateways_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_inline_certificate.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_inline_certificate_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_intentions.go fixed aliases for sameness group (sameness_group) (#17161) 2023-04-26 14:53:23 -07:00
config_entry_intentions_oss.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
config_entry_intentions_oss_test.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
config_entry_intentions_test.go [NET-3091] Update service intentions to support jwt provider references (#17037) 2023-04-19 18:16:39 -04:00
config_entry_jwt_provider.go [NET-3090] Add new JWT provider config entry (#17036) 2023-04-19 17:54:14 -04:00
config_entry_jwt_provider_oss.go [NET-3090] Add new JWT provider config entry (#17036) 2023-04-19 17:54:14 -04:00
config_entry_jwt_provider_test.go [NET-3090] Add new JWT provider config entry (#17036) 2023-04-19 17:54:14 -04:00
config_entry_mesh.go Permissive mTLS (#17035) 2023-04-19 14:45:00 -05:00
config_entry_mesh_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_mesh_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_routes.go APIGW: Routes with duplicate parents should be invalid (#16926) 2023-04-10 13:20:32 -04:00
config_entry_routes_test.go APIGW: Routes with duplicate parents should be invalid (#16926) 2023-04-10 13:20:32 -04:00
config_entry_sameness_group.go Fix a bug with disco chain config entry fetching (#17078) 2023-04-21 09:18:32 -04:00
config_entry_sameness_group_oss.go Add sameness group field to prepared queries (#17089) 2023-04-24 13:21:28 -07:00
config_entry_status.go APIGW Normalize Status Conditions (#16994) 2023-04-24 16:22:55 -04:00
config_entry_test.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
connect.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_ca.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_ca_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_proxy_config.go Permissive mTLS (#17035) 2023-04-19 14:45:00 -05:00
connect_proxy_config_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_proxy_config_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
deep-copy.sh Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
discovery_chain.go Add PrioritizeByLocality to config entries. (#17007) 2023-04-14 15:42:54 -05:00
discovery_chain_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
envoy_extension.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
errors.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
federation_state.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
identity.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
intention.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
intention_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
intention_test.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
operator.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
peering.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
prepared_query.go Add sameness group field to prepared queries (#17089) 2023-04-24 13:21:28 -07:00
prepared_query_test.go Add sameness group field to prepared queries (#17089) 2023-04-24 13:21:28 -07:00
protobuf_compat.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
service_definition.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
service_definition_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
snapshot.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs.deepcopy.go Support Envoy's MaxEjectionPercent and BaseEjectionTime config entries for passive health checks (#15979) 2023-04-26 15:59:48 -07:00
structs.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
structs_ext_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs_filtering_test.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
structs_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs_test.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
system_metadata.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_catalog.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_connect_proxy_config.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_intention.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_service_definition.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
txn.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00