StackStorm / st2

StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, incident responses, troubleshooting, deployments, and more for DevOps and SREs. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html
https://stackstorm.com/
Apache License 2.0
6.09k stars 746 forks source link

Ability to add a bearer token for authorization for st2client #6221

Open cwilson21 opened 4 months ago

cwilson21 commented 4 months ago

With the introduction of Stackstorm-k8s, comes features of systems like Google with IAP. I want to be able to use st2client with IAP , to do this there needs to be the ability to add a header to all requests , an Authorization header with a bearer token that can be retrieved via gcloud commands.

Authorization: Bearer $token

It would be super nice if this is something that someone might be able to add, I am going to look into doing so however.

cwilson21 commented 4 months ago

This might be a moot thing, I tried doing this only to realize that st2auth transforms said header and tries to use it for authorization to Stackstorm, which would not allow for this to work anyway.