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

plugins: Add support to specify bearer token path #2287

Merged

Conversation

ashutosh-narkar
Copy link
Member

This change updates the bearer token config to allow clients to specify
a path to the token. With this refreshing tokens becomes easier as OPA
will now reload the token from file.

Fixes #2241

Signed-off-by: Ashutosh Narkar [email protected]

This change updates the bearer token config to allow clients to specify
a path to the token. With this refreshing tokens becomes easier as OPA
will now reload the token from file.

Fixes open-policy-agent#2241

Signed-off-by: Ashutosh Narkar <[email protected]>
Copy link
Contributor

@patrick-east patrick-east left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ashutosh-narkar ashutosh-narkar merged commit a5be4f4 into open-policy-agent:master Apr 11, 2020
@tsandall
Copy link
Member

tsandall commented Apr 13, 2020 via email

@patrick-east
Copy link
Contributor

I notice the docs don't say anything about OPA picking up changes to these
files. I'm guessing this will be a common request so it would be nice to
include a note (either in the Bearer and TLS configuration docs or
elsewhere on the configuration page.)

Not sure I follow, the new option is documented in https://github.com/open-policy-agent/opa/pull/2287/files#diff-c23c3ea53dad0a10f0aa0544ef005e5d --> https://www.openpolicyagent.org/docs/edge/configuration/#bearer-token Did you have something else in mind, an example config or something?

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

Successfully merging this pull request may close these issues.

Improve support for service bearer token refresh
3 participants