3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
grafana/pkg/services
Matthew Jacobson e7c6e9c5c9
Alerting: Fix migration edge-case race condition for silences ()
If the db already has an entry in the kvstore for the silences of an
alertmanager before the migration has taken place, then it's possible that the
active alertmanager will overwrite the silence file created by the migration
before it has a chance to load it into memory.

This should not happen normally but is possible in edge-cases.

This change opts to bypass the unnecessary step of writing the silences to disk
during the migration and instead write them directly to the kvstore. This avoids
 the race condition entirely and is more correct as we treat the database as the
  source of truth for AM state.
2024-02-16 10:47:34 -05:00
..
accesscontrol Auth: Load oauth_allow_insecure_email_lookup using the SettingsProvider () 2024-02-16 12:05:00 +01:00
alerting Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
annotations Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
anonymous Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
apikey Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
apiserver K8s: Pass ID token in X-Extra-id-token header () 2024-02-16 17:07:37 +02:00
auth JWT Authentication: Add support for specifying groups in auth.jwt for teamsync () 2024-02-09 16:35:58 +01:00
authn AuthToken: Remove client token rotation feature toggle () 2024-02-16 15:03:37 +01:00
caching Fixing typos () 2023-06-22 09:43:38 +01:00
cleanup Rendering: Adds PDF support behind feature toggle () 2024-02-08 13:09:34 +01:00
cloudmigrations Cloud Migrations: Create new service for cloud migrations () 2024-01-22 11:09:08 -05:00
contexthandler AuthToken: Remove client token rotation feature toggle () 2024-02-16 15:03:37 +01:00
correlations Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface () 2023-10-09 10:40:19 +02:00
dashboardimport Chore: Change response status for dashboard import with invalid input () 2024-01-30 16:57:01 +01:00
dashboards Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
dashboardsnapshots Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
dashboardversion Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
datasourceproxy Errors: Make errors the same in dev as prod () 2023-10-30 14:06:26 -04:00
datasources Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
encryption Chore: use any rather than interface{} () 2023-08-30 18:46:47 +03:00
extsvcauth RBAC Search: Replace userLogin filter by namespacedID filter () 2024-02-16 11:42:36 +01:00
featuremgmt AuthToken: Remove client token rotation feature toggle () 2024-02-16 15:03:37 +01:00
folder RBAC: allow listing permissions on the root folder () 2024-02-15 16:13:14 +00:00
grpcserver Swap weaveworks/common utilities for equivalents in grafana/dskit () 2024-01-05 10:08:38 -06:00
guardian Remove folderID from service tests () 2024-01-26 17:36:35 +02:00
hooks Hooks: Remove AddLoginHook and RunLogin hooks () 2023-08-17 09:51:45 +02:00
kmsproviders Secrets: Make the Migrator extensible () 2023-06-19 23:44:01 +02:00
ldap Login: refactor auth info package () 2023-11-21 14:47:23 +01:00
libraryelements LibraryPanels/RBAC: Fix issue where folder scopes weren't being correctly inherited () 2024-02-16 14:17:41 +00:00
librarypanels Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
licensing Chore: Clean up old navigation () 2023-04-14 09:43:11 +01:00
live Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
login JWT Authentication: Add support for specifying groups in auth.jwt for teamsync () 2024-02-09 16:35:58 +01:00
loginattempt Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
navtree Navigation: Add config for grafana-slo-app and grafana-aws-app () 2024-02-08 15:56:43 +00:00
ngalert Alerting: Fix migration edge-case race condition for silences () 2024-02-16 10:47:34 -05:00
notifications Password policy () 2024-02-16 04:58:05 -06:00
oauthtoken Fix: Refresh token when id_token is expired () 2024-02-05 16:44:25 +01:00
org Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
playlist Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
plugindashboards Chore: removing folderId from plugindashboard service () 2024-01-16 11:08:39 +01:00
pluginsintegration Plugins: Add fuzzy search to plugins catalogue () 2024-02-14 14:30:24 +01:00
preference Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
provisioning Alerting: Support for simplified notification settings in rule API () 2024-02-15 09:45:10 -05:00
publicdashboards Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
query Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
queryhistory Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
quota Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
rendering Rendering: Adds PDF support behind feature toggle () 2024-02-08 13:09:34 +01:00
screenshot Rendering: Adds PDF support behind feature toggle () 2024-02-08 13:09:34 +01:00
search Add MFolderIDsServiceCount to count folderIDs in services pkg () 2024-01-25 11:10:35 +01:00
searchusers Chore: Remove public vars in setting package () 2024-01-23 12:36:22 +01:00
searchV2 Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
secrets Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
serviceaccounts RBAC Search: Replace userLogin filter by namespacedID filter () 2024-02-16 11:42:36 +01:00
shorturls Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
signingkeys Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
sqlstore RBAC: Migration to remove the scope from permissions where action is alert.instances:read () 2024-02-16 11:52:43 +00:00
ssosettings Auth: Validation fixes for SSO Settings () 2024-02-14 16:06:52 +01:00
star Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
stats Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
store Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
supportbundles Auth: Remove oAuthProviders from Social service () 2023-11-30 09:30:35 +01:00
tag Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
team Team/User: UID migrations () 2024-02-12 14:48:29 +01:00
temp_user Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
updatechecker Release: Deprecate latest.json and replace with api call to grafana.com () 2024-01-16 11:19:32 +00:00
user Password policy () 2024-02-16 04:58:05 -06:00
validations chore: move validations model into the validations service () 2023-01-23 15:10:14 -05:00