os-climate / data-platform-demo

Apache License 2.0
3 stars 7 forks source link

Support automatic JWT generation for pipeline or other batch workloads #52

Open erikerlandson opened 2 years ago

erikerlandson commented 2 years ago

One use case we will need is the ability to automatically reprovision JWT tokens with finite lifetime, for use by pipelines.

erikerlandson commented 2 years ago

talk reference from OSS: https://sched.co/146gO

HumairAK commented 2 years ago

Might be able to leverage: https://dexidp.io/docs/id-tokens/#refresh-tokens

@redmikhail also pointed out: https://github.com/observatorium/token-refresher

FYI: current auth service used to get jwt for trino: https://github.com/HumairAK/dex-auth-service

HeatherAck commented 1 year ago

Cannot run test cases via GitHub actions. Need the JWT tokens automated for testing purposes. (see line 40 of https://github.com/os-climate/ITR/blob/develop/test/test_vault_providers.py for example). connector between ITR tool and Data Commons. Running as dash; github actions - pytest - need service account created. maybe use oauth or osc-ingest tools with additional parameters. github actions to get environment variables - that lasts for X period of time.

HeatherAck commented 1 year ago

this is one aspect of creating a production data pipeline. Need to have a service account to provide automation functionality (system currently only supports manual)

HeatherAck commented 1 year ago

@ryanaslett look at vault as potential solution

HeatherAck commented 1 year ago

@redmikhail to look at length of time to store credentials

HeatherAck commented 1 year ago

@redmikhail to review the week of 15-May

HeatherAck commented 1 year ago

for more info: https://github.com/os-climate/ITR/blob/develop/test/test_vault_providers.py - Need a profile for ArgoCD service account to run the test case. Needs different users with different permissions based on access permissions/rights.