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

[AlertManager] Handling CMK AccessDenied errors #5542

Merged
merged 3 commits into from
Sep 5, 2023

Conversation

alanprot
Copy link
Member

What this PR does:
This is a continuation of #5420

Handling access denied errors when cortex lose the access to the CMK (causing access denied on the objstorage).

In those cases AM will crash and fail to start as shown below:

  ts=2023-08-31T19:21:28.327076006Z caller=cortex.go:444 level=error msg="module failed" module=alertmanager err="invalid service state: Failed, expected: Running, failure: failed to load alertmanager configurations for owned users: failed to fetch alertmanager config for user REDACTED: User: REDACTED is not authorized to perform: kms:Decrypt on the resource associated with this ciphertext because the resource does not exist in this Region, no resource-based policies allow access, or a resource-based policy explicitly denies access"

This change is handling the access denied errors the same way AM handler the NotFoundErrors (ignoring)

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Alan Protasio <alanprot@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
@alanprot alanprot requested a review from yeya24 September 5, 2023 17:01
@alanprot alanprot merged commit 7b9db50 into cortexproject:master Sep 5, 2023
14 checks passed
@alanprot alanprot deleted the am/cmk branch September 5, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants