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

API keys: Add deprecation to api keys #65948

Merged
merged 5 commits into from
Apr 11, 2023

Conversation

eleijonmarck
Copy link
Contributor

@eleijonmarck eleijonmarck commented Apr 4, 2023

What is this feature?
Adds deprecation notice for the create path of API keys w. a link to the new documentation outlining how to migrate your API calls to service accounts.

linking to page -https://grafana.com/docs/grafana/next/administration/api-keys/#migrate-api-keys-to-grafana-service-accounts-using-the-api

notes
Part of a bigger sunsetting of API keys - #53567

@@ -17,7 +17,7 @@ An API key is a randomly generated string that external systems use to interact

When you create an API key, you specify a **Role** that determines the permissions associated with the API key. Role permissions control that actions the API key can perform on Grafana resources.

> **Note:** If you use Grafana v8.5 or newer, use service accounts instead of API keys. For more information, refer to [Grafana service accounts]({{< relref "../service-accounts/" >}}).
> **Note:** If you use Grafana v9.1 or newer, use service accounts instead of API keys. For more information, refer to [Grafana service accounts]({{< relref "../service-accounts/" >}}).
Copy link
Contributor Author

@eleijonmarck eleijonmarck Apr 4, 2023

Choose a reason for hiding this comment

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

not part of deprecation, fix for wrong version in docs

@eleijonmarck eleijonmarck added the no-backport Skip backport of PR label Apr 6, 2023
@eleijonmarck eleijonmarck changed the title API keys: Add deprecation to api keys create path API keys: Add deprecation to api keys Apr 6, 2023
@eleijonmarck eleijonmarck added this to the 9.5.x milestone Apr 6, 2023
@eleijonmarck eleijonmarck marked this pull request as ready for review April 6, 2023 14:59
@eleijonmarck eleijonmarck requested review from papagian, zserge, mildwonkey and sakjur and removed request for a team April 6, 2023 14:59
Copy link
Contributor

@IevaVasiljeva IevaVasiljeva left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@@ -20,6 +20,11 @@ import (
//
// Will return auth keys.
//
// Deprecated: true.
//
// Deprecated please use GET /api/serviceaccounts and GET /api/serviceaccounts/{id}/tokens instead
Copy link
Contributor

Choose a reason for hiding this comment

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

super nit: I'd add a punctuation mark after deprecated. Something like Deprecated: please use... or Deprecated. Please use....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i do not think it's nit. this is about clear communication on this. and should be reviewed as such

Copy link
Contributor

@mildwonkey mildwonkey left a comment

Choose a reason for hiding this comment

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

lgtm!

@eleijonmarck eleijonmarck merged commit 2031997 into main Apr 11, 2023
@eleijonmarck eleijonmarck deleted the eleijonmarck/apikeys/api-deprecation branch April 11, 2023 14:58
alexmobo pushed a commit that referenced this pull request Apr 14, 2023
* add: deprecation to api keys write path

* boolean w. meessage

* add read and delete endpoints

* better description of deprecation

* updated with puncutations
@guicaulada guicaulada modified the milestones: 9.5.x, 9.5.0 Apr 24, 2023
@zerok zerok modified the milestones: 9.5.0, 10.0.0 May 4, 2023
@zerok zerok modified the milestones: 10.0.0, 10.0.0-preview May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants