StackStorm / StackStorm/st2

Ability to add a bearer token for authorization for st2client

Open
#6,221 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating st2client's request construction and the path used for all API requests. Review how authentication options are configured, then consider the issue's gcloud-derived bearer token example. Done should mean st2client can send the Authorization bearer header on every request and existing request behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.