-
Notifications
You must be signed in to change notification settings - Fork 41
Add JWT handling to spiffe package #118
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
Conversation
Signed-off-by: Jonathan Collinge <[email protected]>
Signed-off-by: Jonathan Collinge <[email protected]>
Signed-off-by: Jonathan Collinge <[email protected]>
Signed-off-by: Jonathan Collinge <[email protected]>
Signed-off-by: Jonathan Collinge <[email protected]>
d3a8882
to
c529962
Compare
Signed-off-by: Jonathan Collinge <[email protected]>
tests passing in CI on linux and locally on darwin... maybe a timing issue? Can someone re-run? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoop
Signed-off-by: Jonathan Collinge <[email protected]>
Signed-off-by: Jonathan Collinge <[email protected]>
Signed-off-by: Jonathan Collinge <[email protected]>
Signed-off-by: Jonathan Collinge <[email protected]>
Signed-off-by: Jonathan Collinge <[email protected]>
The tests is failing in CI on darwin but passing locally and in
|
Signed-off-by: Jonathan Collinge <[email protected]>
Signed-off-by: Jonathan Collinge <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few more things from me, but is looking good.
Signed-off-by: Jonathan Collinge <[email protected]>
Signed-off-by: Jonathan Collinge <[email protected]>
@jjcollinge linter failing
|
Signed-off-by: Jonathan Collinge <[email protected]>
@jjcollinge Looks like the deprecation comments state the method signature as FromX509 but are defined as X509From, assuming the latter is more correct and is what we're running with or is this going to be refactored at a later date? |
Good spot, that's an oversight on my part after a rename. Here's the fix #125 |
Signed-off-by: Jonathan Collinge [email protected]
Description
This PR extends the spiffecontext package to support both X.509 SVID and JWT SVID sources. This will enable usages of this package as we add support for JWT Spiffe identity in the Dapr runtime.
The expectation is that Sentry will be updated so
SignCertificateResponse
will contain a JWT in addition to the existing x.509 certificate. Thus theRequestSVIDFn
will be able to return both a JWT and x.509.Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: