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

OnCall API Tokens: Permissions and TTL. #3812

Closed
omalko394 opened this issue Feb 1, 2024 · 6 comments
Closed

OnCall API Tokens: Permissions and TTL. #3812

omalko394 opened this issue Feb 1, 2024 · 6 comments
Assignees
Labels

Comments

@omalko394
Copy link

omalko394 commented Feb 1, 2024

What would you like to see!

Hello!
One of our teams is interested in developing a scraper to collect and analyze data on incidents relevant to them. To implement this, they need access to Grafana OnCall API, which requires an API Token. As maintainers, our concern lies in issuing a token that provides unrestricted access to the entire organization's management systems. We are seeking a solution that offers tailored access, aligning with their specific requirements. This could involve defining permissions at various levels, such as reader, editor, or admin, and implementing an expiration date for the token to enhance security and control.

Product Area

Auth

Anything else to add?

We are using:
Grafana OSS v9.5.7
Grafana OnCall OSS plugin and backend 1.3.81

@omalko394 omalko394 added the feature request New feature or request label Feb 1, 2024
Copy link
Contributor

github-actions bot commented Feb 1, 2024

The current version of Grafana OnCall, at the time this issue was opened, is v1.3.99. If your issue pertains to an older version of Grafana OnCall, please be sure to list it in the PR description. Thank you 😄!

@mderynck
Copy link
Contributor

Currently the hope is to eventually replace OnCall API keys with Grafana Service Account tokens which already support TTL and fine grained permissions.

@KlavsKlavsen
Copy link

This would be really really nice. Having to give everyone 'admin' perms - just to see their own schedule or anything is really bad :(

@joeyorlando
Copy link
Contributor

closing as duplicate of https://github.com/grafana/oncall-private/issues/2839

@joeyorlando joeyorlando closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2024
@MaienM
Copy link

MaienM commented Oct 20, 2024

I cannot see the linked issue (unsurprising given the name of the repository that it is in), and I suspect this is true for the majority of the people that have indicated interest in this. Is there any public location where we can see the progress of this?

@matiasb
Copy link
Contributor

matiasb commented Dec 18, 2024

Hi, we have been working on enabling service account tokens support in our public API, and this is now released. You can take a look at the docs describing how to use service account based auth, as well as check the required perms for each API endpoint in their respective descriptions.

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

No branches or pull requests

8 participants