Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie based routing #14

Closed
jamsajones opened this issue Nov 28, 2018 · 3 comments
Closed

Cookie based routing #14

jamsajones opened this issue Nov 28, 2018 · 3 comments

Comments

@jamsajones
Copy link

No description provided.

@abby-fuller abby-fuller transferred this issue from aws/aws-app-mesh-examples Mar 27, 2019
@abby-fuller abby-fuller added this to Researching in aws-app-mesh-roadmap Mar 27, 2019
@alvarow
Copy link

alvarow commented Apr 26, 2019

This will allow me to switch from my HAProxy homegrown solution to AppMesh

@shubharao
Copy link

You can use cookie values in routing using the header based routing which is launched in our Preview Channel. Check it out and let us know what you think! https://github.com/aws/aws-app-mesh-examples/tree/master/blogs/http-headers-and-priority

@lavignes
Copy link

lavignes commented Sep 6, 2019

I think we can moved this to done for now. Today you can match cookies by matching the Cookie header using regex.

For example, if you wanted to match http requests that had a cookie named my_cookie, you could write:

{
  "httpRoute": {
    "match": {
      "headers": {
        "name": "cookie",
        "match": {
          "regex": "my_cookie=[^;]*"
        }
      }
    }
  }
}

We can certainly revisit this to improve the ergonomics of it a bit. Please feel free to chime in on this issue if you'd like to see us iterate on this.

@lavignes lavignes closed this as completed Sep 6, 2019
@lavignes lavignes moved this from Available in Preview Channel to Just Shipped in aws-app-mesh-roadmap Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
aws-app-mesh-roadmap
  
Just Shipped
Development

No branches or pull requests

4 participants