Skip to content

Add OAuth 2.0 Config#2560

Merged
roidelapluie merged 3 commits into
prometheus:masterfrom
LeviHarrison:oauth2-docs
Apr 29, 2021
Merged

Add OAuth 2.0 Config#2560
roidelapluie merged 3 commits into
prometheus:masterfrom
LeviHarrison:oauth2-docs

Conversation

@LeviHarrison

Copy link
Copy Markdown
Contributor

This PR upgrades the common version so that OAuth 2.0 is supported and properly documents the config.

cc @roidelapluie

Signed-off-by: Levi Harrison <git@leviharrison.dev>
Signed-off-by: Levi Harrison <git@leviharrison.dev>
Signed-off-by: Levi Harrison <git@leviharrison.dev>
Comment thread docs/configuration.md
Comment on lines +379 to +383
### `oauth2`

OAuth 2.0 authentication using the client credentials grant type.
Alertmanager fetches an access token from the specified endpoint with
the given client access and secret keys.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I realize that in Prometheus I put oauth2 after tls_config, but given that oauth2 goes along with the other authentication methods and is therefore first, and decided to put it ahead of tls_config here like it's supposed to. That being said, it does make the ordering inconsistent.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

tls_config also contains authentication.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I guess, although the order in common has OAuth 2.0 first anyways. I'm probably making too big of a deal out of this though.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In prometheus we could reorder everything because the order is messy overall.

In common we could split some of them into separated files.

@roidelapluie roidelapluie merged commit f4b176f into prometheus:master Apr 29, 2021
@LeviHarrison LeviHarrison deleted the oauth2-docs branch April 29, 2021 11:34
paulfantom added a commit to paulfantom/alertmanager that referenced this pull request Jul 23, 2021
v0.22.2

* tag 'v0.22.2': (181 commits)
  Release 0.22.2
  Include pending silences for future muting decisions
  Release 0.22.1
  Default the isEqual flag to true in alertmanager
  Add test to expose issue prometheus#2426
  Release alertmanager 0.22
  Relase 0.22.0-rc.2
  API: Only pass cluster peer if empty
  fixed small typo
  Release 0.22.0-rc.1
  Fix panic when HA is disabled
  Update matcher examples
  Add prometheus#2276 to release notes
  Release 0.22.0-rc.0
  Lift moratorium on AlertManager receivers with long-term maintenance plan (prometheus#2561)
  Add OAuth 2.0 Config (prometheus#2560)
  Add missing EOL
  Fix flapping acceptance test
  Unlock at specific points instead of deferring
  Dispatch: Make sure mutex gets unlocked on call to Stop
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants