Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

chore(docs): fix the paths for vault secrets. #17

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ jobs:
permissions:
packages: write
runs-on: ubuntu-22.04
env:
project_name: super
app_name: app-super
environment: development
secret_path_env: dev # this path is different from the path in the broker
steps:
- uses: actions/checkout@v3
- name: Broker
Expand All @@ -93,9 +98,9 @@ jobs:
with:
broker_jwt: ${{ secrets.BROKER_JWT }}
provision_role_id: ${{ secrets.PROVISION_ROLE }}
project_name: super
app_name: app-super
environment: development
project_name: ${{ env.project_name }}
app_name: ${{ env.app_name }}
environment: ${{ env.environment }}
- name: Import Secrets
id: secrets
uses: hashicorp/vault-action@v2.5.0
Expand All @@ -104,8 +109,8 @@ jobs:
token: ${{ steps.broker.outputs.vault_token }}
exportEnv: 'false'
secrets: |
apps/data/${environment}/${project_name}/${app_name}/super_secrets username | SECRET_USER;
apps/data/${environment}/${project_name}/${app_name}/super_secrets password | SECRET_PWD;
apps/data/${{ env.secret_path_env }}/${{ env.project_name }}/${{ env.app_name }}/super_secrets username | SECRET_USER;
apps/data/${{ env.secret_path_env }}/${{ env.project_name }}/${{ env.app_name }}/super_secrets password | SECRET_PWD;

```

Expand Down
Loading