envoyproxy / gateway

Manages Envoy Proxy as a Standalone or Kubernetes-based Application Gateway
https://gateway.envoyproxy.io
Apache License 2.0
1.63k stars 354 forks source link

Support Cookie based Consistent Hashing / Session Affinity #2624

Closed arkodg closed 4 months ago

arkodg commented 9 months ago

Description:

Describe the desired behavior, what scenario it enables and how it would be used.

There is currently support for SourceIP based ConsistentHashing Loadbalancing https://github.com/envoyproxy/gateway/blob/1775624114aedee731bee565a0a100eeee80fc13/api/v1alpha1/loadbalancer_types.go#L62

Would be useful to also add cookie based consistent hashing support which enable sticky session / session affinity use cases

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

arkodg commented 7 months ago

Gateway API recently added support for Session Persistence (hard affinity), see details in https://gateway-api.sigs.k8s.io/geps/gep-1619/ It doesnt however add support to add more cookie attributes such as SameSite, its rationale being it should be set to sane defaults e.g. Strict https://gateway-api.sigs.k8s.io/geps/gep-1619/#secure-httponly-samesite

There are multiple instances where users may want to override this, see

@envoyproxy/gateway-maintainers please weigh in, I'm a +1 for

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days.