bcgov / bcgov/nr-rfc-admin

Secret Management

Open
#47 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently we are embedding secrets required by different github actions into the repositories. When the actions run the secrets are loaded to the environment, where the scripts can then access and use them.

As we start to expand and have the use for more secrets we should move the storage of the secrets to a service like vault. There are two options in terms of which vault to use. There is a vault that comes with our openshift namespace, however should also have a conversation with one team to find out about whether the vault service they provide could provide us with more configuration options.

This ticket will provide the following documentation:

* how to populate a secret into vault
* how to access secrets in vault
* how we will cycle the vault tokens

The ticket will also migrate how we use secrets in all the other RFC repositories:
* [snowpack processing](https://github.com/bcgov/nr-rfc-processing)
* [climate observations](https://github.com/bcgov/nr-rfc-climate-obs)
* [climate forecasts](https://github.com/bcgov/nr-rfc-grib-copy)
* [snowpack frontend](https://github.com/bcgov/nr-rfc-snowfrontend)
* [discharge observations](https://github.com/bcgov/nr-rfc-dischargeobs)
* [r-analysis-demo](https://github.com/bcgov/nr-rfc-reanalysis/settings/secrets/actions)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the GitHub Actions secret usage across the linked RFC repositories and compare the two vault options described in the issue. Document how to populate and access secrets and cycle vault tokens, then migrate each repository's secret handling and verify its actions still run.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, github-actions
Domain
devops, documentation, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.