Skip to content

Commit

Permalink
changing an env var name to have better consistancy (#73)
Browse files Browse the repository at this point in the history
* changing an env var name to have better consistancy

* Sentence change

---------

Co-authored-by: Pierre  Pernot <[email protected]@192165103.ip.ecodatacenter.tech>
Co-authored-by: Pierre  Pernot <[email protected]@Pierres-MacBook-Pro.local>
  • Loading branch information
3 people authored Dec 11, 2023
1 parent a161957 commit fed1894
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:

# Parameters we get from Github secret storage:
deployment_client_secret: ${{secrets.DEPLOYMENT_CLIENT_SECRET }}
schedules_client_secret: ${{ secrets.SCHEDULE_CLIENT_SECRET }}
schedules_client_secret: ${{ secrets.SCHEDULES_CLIENT_SECRET }}
function_secrets: ${{ secrets[steps.extract_secrets.outputs.extra_secrets_name] }}

# Individual parameters per function we read from:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Each workflow consists of a series of sequentially executed steps. As an input t
**All client secrets *must* be stored as GitHub secrets.**
All secrets should be organized in github environments, and the following should be defined:
* `DEPLOYMENT_CLIENT_SECRET` should contain the client secret for the service account used at runtime when running on a schedule.
* `SCHEDULE_CLIENT_SECRET` should contain the client secret for the service account used at runtime when running on a schedule.
* `SCHEDULES_CLIENT_SECRET` should contain the client secret for the service account used at runtime when running on a schedule.
* **Super-pro-tip:** By having multiple environments you can support more than one target CDF project!

Adding extra secrets to specific functions:
Expand Down Expand Up @@ -282,7 +282,7 @@ The function configuration files for my_cognite_function would be:
* `my_cognite_function/function_config_???.yaml` This is a configuration file that is applicable for the function for the ??? environments. Typically at least `data_set_id` would reside here.

If same key is found in different configuration files, the last read will be applied. The GitHub action reads these configurations in the order specified here.
Access configuration is stored as secrets in GitHub under `DEPLOYMENT_CLIENT_ID`, `DEPLOYMENT_CLIENT_SECRET`, `SCHEDULE_CLIENT_ID` and `SCHEDULE_CLIENT_SECRET`.
Client secrets are stored as secrets in GitHub under `DEPLOYMENT_CLIENT_SECRET` and `SCHEDULES_CLIENT_SECRET`.

## Continuous Deployment

Expand Down

0 comments on commit fed1894

Please sign in to comment.