Skip to content

Commit

Permalink
added mollie secrets for mongoose (#492)
Browse files Browse the repository at this point in the history
* added mollie secrets for mongoose

* added requested changes from Tobias and Silas

* Updated .env file for radio and renamed koala mollie token variable

* fixed forgotten mollie var rename in staging

* changed mollie.com to mollie.nl in koala env

---------

Co-authored-by: Job Vonk <[email protected]>
  • Loading branch information
SamStaijen and stickyPiston authored Jan 6, 2025
1 parent 84c23ee commit ee76fb1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ansible/group_vars/production/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ secret_backup_aws:
secret_key: "{{ vault_secret_backup_aws.secret_key }}"

# To change, regenerate the token in Mollie's web interface.
secret_mollie_token: "{{ vault_secret_mollie_token }}"
secret_mollie_token_koala: "{{ vault_secret_mollie_token_koala }}"
secret_mollie_token_mongoose: "{{ vault_secret_mollie_token_mongoose }}"

secret_pretix:
# To change, generate a new password and set it in the Mailgun interface:
Expand Down
3 changes: 2 additions & 1 deletion ansible/group_vars/staging/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ secret_backup_aws:
secret_key: "{{ vault_secret_backup_aws.secret_key }}"

# To change, regenerate the token in Mollie's web interface.
secret_mollie_token: "{{ vault_secret_mollie_token }}"
secret_mollie_token_koala: "{{ vault_secret_mollie_token_koala }}"
secret_mollie_token_mongoose: "{{ vault_secret_mollie_token_mongoose }}"

secret_pretix:
# To change, generate a new password and set it in the Mailgun interface:
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/koala/templates/.env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ KOALA_DOMAIN=https://koala.{{ canonical_hostname }}

# Mollie
MOLLIE_DOMAIN=https://api.mollie.nl
MOLLIE_TOKEN={{ secret_mollie_token }}
MOLLIE_VERSION=v1
MOLLIE_TOKEN={{ secret_mollie_token_koala }}
MOLLIE_VERSION=v2

# Other
RAILS_ENV={{ koala_env.environment }}
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/mongoose/templates/.env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ OIDC_OP_TOKEN_ENDPOINT=https://koala.{{ canonical_hostname }}/api/oauth/token
OIDC_OP_USER_ENDPOINT=https://koala.{{ canonical_hostname }}/oauth/userinfo
OIDC_OP_JWKS_ENDPOINT=https://koala.{{ canonical_hostname }}/oauth/discovery/keys

MOLLIE_API_KEY={{ secret_mollie_token }}
MOLLIE_API_KEY={{ secret_mollie_token_mongoose }}

0 comments on commit ee76fb1

Please sign in to comment.