cloud-gov / cg-deploy-prometheus

Other
4 stars 3 forks source link

Possible support access coming from Concourse ? #216

Open ChrisMcGowan opened 6 months ago

ChrisMcGowan commented 6 months ago

Check/verify if the new Concourse Viewer access gives Prometheus/Grafana access

ChrisMcGowan commented 6 months ago

So prometheus is setup to allow any opsuaa authed user to access - we need to scope down that access.

  1. In opsuaa add a new group called prometheus-support with comment Support members access to prometheus here: https://github.com/cloud-gov/cg-deploy-opslogin/blob/05e96ba9245149e0cb41ac5a96a2eb4d9bec2736/manifest.yml#L318
  2. Under scope add prometheus-support, concourse.pages, and concourse.admin here: https://github.com/cloud-gov/cg-deploy-opslogin/blob/05e96ba9245149e0cb41ac5a96a2eb4d9bec2736/manifest.yml#L440-L449
  3. Deploy opsuaa
  4. In deploy-prometheus add the scope prometheus-support , concourse.pages, and concourse.admin here: https://github.com/cloud-gov/cg-deploy-prometheus/blob/803e0b099335d84bcf64edac07a6cc8bc50e3c3c/bosh/manifest.yml#L313
  5. Deploy prometheus
  6. In cg-scripts modify make-pages-ops-admin to addd user to group prometheus-support : https://github.com/cloud-gov/cg-scripts/blob/main/make-pages-ops-admin.sh#L42
  7. Take the make-ops-viewer script in cg-scripts and make a new script file called make-prometheus-support and replace here https://github.com/cloud-gov/cg-scripts/blob/main/make-ops-viewer.sh#L42 with prometheus-support. Remember to run chmod +x on the script before commit to the repo

For testing all this, you can do the following to make sure all the pieces work manually:

ChrisMcGowan commented 5 months ago

This work is on-hold until this ticket is done: https://github.com/cloud-gov/oauth2-proxy-boshrelease/issues/17

@rcgottlieb