-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat: add azure auth workload_identity #7998
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
feat: add azure auth workload_identity #7998
Conversation
|
Hmm the new options are for remote write configurations not scrape configurations? |
95eb44b to
1b66005
Compare
|
#7815 (comment) also applies here. |
c3e6bce to
54ebcc7
Compare
54ebcc7 to
ce50e53
Compare
3d634c1 to
9f26e0e
Compare
03cf7c6 to
0c8dc81
Compare
|
We also need to implement the feature in the ThanosRuler controller. |
9f9b712 to
202f4b9
Compare
| if spec.AzureAD.ManagedIdentity == nil && spec.AzureAD.OAuth == nil && spec.AzureAD.SDK == nil { | ||
| return fmt.Errorf("must provide Azure Managed Identity or Azure OAuth or Azure SDK in the Azure AD config") | ||
| if spec.AzureAD.ManagedIdentity == nil && spec.AzureAD.OAuth == nil && spec.AzureAD.SDK == nil && spec.AzureAD.WorkloadIdentity == nil { | ||
| return fmt.Errorf("must provide Azure Managed Identity, Azure OAuth, Azure SDK, or Azure Workload Identity in the Azure AD config") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could become a CEL expression (as a follow-up).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok then, just to clarify, to open a follow up pr with the cel validations then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, will work on this as follow up
d678b82 to
79907f3
Compare
pkg/prometheus/testdata/RemoteWriteConfigAzureADWorkloadIdentity_v3.7.0.golden
Show resolved
Hide resolved
simonpasquier
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but the tests need to be fixed.
Signed-off-by: Hélia Barroso <[email protected]>
Co-authored-by: Simon Pasquier <[email protected]>
Co-authored-by: Simon Pasquier <[email protected]>
Signed-off-by: Hélia Barroso <[email protected]>
Signed-off-by: Hélia Barroso <[email protected]>
Signed-off-by: Hélia Barroso <[email protected]>
Signed-off-by: Hélia Barroso <[email protected]>
Signed-off-by: Hélia Barroso <[email protected]>
Signed-off-by: Hélia Barroso <[email protected]>
1ed4736 to
e9c0e32
Compare
Description
Add support for workload_identity in azure auth, as part of the new prometheus version 3.7
prometheus/prometheus#16788
Type of change
What type of changes does your code introduce to the Prometheus operator? Put an
xin the box that apply.CHANGE(fix or feature that would cause existing functionality to not work as expected)FEATURE(non-breaking change which adds functionality)BUGFIX(non-breaking change which fixes an issue)ENHANCEMENT(non-breaking change which improves existing functionality)NONE(if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)Verification
Please check the Prometheus-Operator testing guidelines for recommendations about automated tests.
Changelog entry
Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.