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

where should we store data for future retrieval besides the cookie? #111

Open
bnfinet opened this issue Apr 19, 2019 · 4 comments
Open

where should we store data for future retrieval besides the cookie? #111

bnfinet opened this issue Apr 19, 2019 · 4 comments

Comments

@bnfinet
Copy link
Member

bnfinet commented Apr 19, 2019

No description provided.

@bnfinet
Copy link
Member Author

bnfinet commented Apr 19, 2019

related to #109

I'd like to document the use cases which we would use and discuss options.

@artagel could you help me to flesh out the thinking here. You've already put quite a bit of good work into #109 but I'm spooked by the lack of iPhone support.

@artagel
Copy link
Contributor

artagel commented Apr 19, 2019

the cookie split is needed no matter what. It'll give a warning, and split cookies if the browse 'does' support it..
with the custom claims support, the claims are an unpredictable size.
so, that is use case #1. You can't control, for example, the size of the 'groups' a user is a member of, which is probably the primary use case for claims.
the second is that passing down access/idtokens, as requested for downstream auth, would inflate the token size(cookie), right now still under 4096 bytes, but pretty close.
so with claims and a combo of the tokens, getting over 4096 bytes is easy. That means storing this in JWT is not correct.

@bnfinet
Copy link
Member Author

bnfinet commented Apr 19, 2019

how should we support iPhones with custom claims?

Use cases (things we'd like to store and maybe provide to nginx/an app)...

  • claims from idP stored in Vouch JWT
  • IdP JWT
  • logout token
  • reauth token

what are we storing and who's going to use it when? Will Vouch Proxy use it to interact with the IdP? Will a VP client (nginx, app) use it?

@bnfinet
Copy link
Member Author

bnfinet commented May 3, 2019

rather than going to an RDBMS, maybe we can provide a mechanism to discover another vouch on your network and then pass data between them using the shared secret.

This seems a bit easier than going full RDBMS and reduces the attack surface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants