grafana / synthetic-monitoring-agent

Synthetic Monitoring Agent

Home Page:https://grafana.com/docs/grafana-cloud/how-do-i/synthetic-monitoring/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add OAuth2 support

mem opened this issue · comments

Recent versions of BBE have added support for OAuth2. You have to pass a secret that is used to contact a server which in turn provides a secret that can be used to access another server.

Do note that we need to make sure we are not asking for the secret every time we run a check. We need to leverage the fact that the provided token is valid over an extended period of time.

Tasks

  • Upgrade BBE (not required)
  • Add support for the new options in the proto files (#377)
  • Pass options to BBE (#377)
  • Add support for the new options in the API
  • Add support for the new options in the plugin
  • Update BBE / prometheus/common to cache token

We need to figure out if BBE will cache the token / pay attention to expiration. Because of the way BBE works, I don't see why it would out of the box.