open-consul/command
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
..
acl Remove artificial ACLTokenMaxTTL limit for configuring acl token expiry (#17066) 2023-04-28 10:57:30 -05:00
agent Update HCP bootstrapping to support existing clusters (#16916) 2023-04-27 22:27:39 +02:00
catalog Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
cli Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
config Permissive mTLS: Config entry filtering and CLI warnings (#17183) 2023-04-28 12:51:36 -05:00
connect Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
debug Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
event Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
exec Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
flags Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
forceleave Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
helpers Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
info Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
intention Raft storage backend (#16619) 2023-04-04 17:30:06 +01:00
join Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
keygen Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
keyring Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
kv Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
leave Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
lock Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
login Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
logout Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
maint Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
members Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
monitor Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
operator Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
peering Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
reload Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
rtt Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
services Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
snapshot Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
tls Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
troubleshoot Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
validate Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
version Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
watch Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
registry.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
registry_oss.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00