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

Security: Add support for auth token #364

Merged
merged 6 commits into from
Aug 30, 2022
Merged

Security: Add support for auth token #364

merged 6 commits into from
Aug 30, 2022

Conversation

joanlopez
Copy link
Collaborator

What this PR does / why we need it:

Adds a new configurable token to make connections from Grafana through either HTTP API or gRPC more reliable and secure (allows us to check for reliable source of requests).

Which issue(s) this PR fixes:

Fixes CVE-2022-31176

Special notes for your reviewer:

joanlopez and others added 5 commits August 16, 2022 13:00
* Prevent local file path rendering

* Add support for SHARED_SECRET

* Remove no longer needed check

* Add URL check for gRPC requests

* Always expect the auth token (both HTTP & gRPC)

* Rename sharedSecret => authToken

* Replace default authToken: '' => '-'

* Handle gRPC errors properly
@joanlopez joanlopez added the security The issue is related to a security vulnerability label Aug 30, 2022
@joanlopez joanlopez self-assigned this Aug 30, 2022
@CLAassistant
Copy link

CLAassistant commented Aug 30, 2022

CLA assistant check
All committers have signed the CLA.

(cherry picked from commit d9fc469)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security The issue is related to a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants