Skip to content

Commit

Permalink
Merge pull request #338 from RADAR-base/fix-default-minio-pass
Browse files Browse the repository at this point in the history
Fix default password used during development for minio
  • Loading branch information
pvannierop authored Dec 13, 2024
2 parents a0e27d9 + c0c8a57 commit 4c7f0a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/generate-secrets
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ nginx_auth_password=$(generate_secret)
secret="thehyve:$(echo $nginx_auth_password | openssl passwd -apr1 -stdin)" insert_secret ".kube_prometheus_stack.nginx_auth"
comment="username: thehyve, password: $nginx_auth_password" yq -i ".kube_prometheus_stack.nginx_auth line_comment |= strenv(comment)" etc/secrets.yaml

# Generate secrets for all remaining fields with value 'secret'.
replacements=$(yq e '.. | select(. == "secret") | [(path | "."+join("."))] | join(" ")' etc/secrets.yaml);
# Generate secrets for all remaining fields with value 'secret' or 'secret-secret' (if the component has a min length requirement).
replacements=$(yq e '.. | select(. == "secret" or "secret-secret") | [(path | "."+join("."))] | join(" ")' etc/secrets.yaml);
for key in $replacements; do
insert_secret $key
done
7 changes: 4 additions & 3 deletions etc/base-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,10 @@ radar_integration:

# --------------------------------------------------------- 20-s3-connector.yaml ---------------------------------------------------------
# The access keys and secret keys of object storage services should match.
# If AWS S3 is used as a storage medium instead of minio, then fill in those.
s3_access_key: secret
s3_secret_key: secret
# If AWS S3 is used as a storage medium instead of minio, then enter the AWS-provided secrets here.
# For minio the secrets must consist of at least 8 characters.
s3_access_key: secret-secret
s3_secret_key: secret-secret

# --------------------------------------------------------- 20-upload.yaml ---------------------------------------------------------
radar_upload_postgres_password: secret
Expand Down

0 comments on commit 4c7f0a4

Please sign in to comment.