Skip to content
Snippets Groups Projects
Commit 37cc8323 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Merge branch '993-remove-default-passwords-in-values-yaml' into 'main'

Resolve "Remove default passwords in values.yaml"

Closes #993

See merge request !296
parents 100dd801 167feecc
No related branches found
No related tags found
1 merge request!296Resolve "Remove default passwords in values.yaml"
Pipeline #31565 passed with stages
in 9 minutes and 49 seconds
...@@ -67,7 +67,8 @@ install-helmrelease: ...@@ -67,7 +67,8 @@ install-helmrelease:
>> values-ci.yaml >> values-ci.yaml
- cat values-ci.yaml - cat values-ci.yaml
- time kubectl delete --wait=true namespace "nc$CI_MERGE_REQUEST_IID" || true - time kubectl delete --wait=true namespace "nc$CI_MERGE_REQUEST_IID" || true
- time helm --debug install --timeout 20m --create-namespace -n nc$CI_MERGE_REQUEST_IID --wait "nc$CI_MERGE_REQUEST_IID" . -f values-ci.yaml - passgen() { < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c20; }
- time helm --debug install --timeout 20m --create-namespace -n nc$CI_MERGE_REQUEST_IID --wait "nc$CI_MERGE_REQUEST_IID" . -f values-ci.yaml --set nextcloud.nextcloud.password=$(passgen),nextcloud.mariadb.auth.password=$(passgen),nextcloud.mariadb.auth.rootPassword=$(passgen),redis.auth.password=$(passgen),onlyoffice.jwtSecret=$(passgen),rabbitmq.auth.password=$(passgen),rabbitmq.auth.erlangCookie=$(passgen),global.onlyofficeDb.password=$(passgen)
environment: environment:
name: helmrelease/nc$CI_MERGE_REQUEST_IID name: helmrelease/nc$CI_MERGE_REQUEST_IID
url: https://files-nc$CI_MERGE_REQUEST_IID.gitlab.stackspin.net url: https://files-nc$CI_MERGE_REQUEST_IID.gitlab.stackspin.net
......
# Changelog # Changelog
## [0.14.1] - 2022-10-20
* Remove default passwords in values.yaml and values-local.yaml.example
## [0.14.0] - 2022-10-18 ## [0.14.0] - 2022-10-18
* Fix helm test when you try to use ssoLogin * Fix helm test when you try to use ssoLogin
......
...@@ -18,15 +18,17 @@ correctly. See `values-local.yaml.example` for an example of domain ...@@ -18,15 +18,17 @@ correctly. See `values-local.yaml.example` for an example of domain
configurations you might want to do. These instructions assume you copy configurations you might want to do. These instructions assume you copy
`values-local.yaml.example` to `values-local.yaml` and edit it. `values-local.yaml.example` to `values-local.yaml` and edit it.
**NOTE:** It is very important that you overwrite the following password and **NOTE:** It is very important that you uncomment and set the following password and
secrets variables manually when you run helm install: secrets variables manually when you run helm install:
- `nextcloud.nextcloud.password` - `nextcloud.nextcloud.password`
- `nextcloud.mariadb.db.password` - `nextcloud.mariadb.auth.password`
- `nextcloud.mariadb.rootUser.password` - `nextcloud.mariadb.auth.rootPassword`
- `redis.auth.password`
- `onlyoffice.jwtSecret` - `onlyoffice.jwtSecret`
- `onlyoffice.database.password` - `rabbitmq.auth.password`
- `rabbitmq.rabbitmq.password` - `rabbitmq.auth.erlangCookie`
- `global.onlyofficeDb.password`
### Install from the remote repo ### Install from the remote repo
......
nextcloud: nextcloud:
nextcloud: nextcloud:
host: "files.your.domain" host: "files.your.domain"
password: CHANGE_ME # password: CHANGE_ME
ingress: ingress:
enabled: true enabled: true
...@@ -18,9 +18,9 @@ nextcloud: ...@@ -18,9 +18,9 @@ nextcloud:
# Configure MariaDB chart # Configure MariaDB chart
mariadb: mariadb:
auth: auth: {}
password: CHANGE_ME # password: CHANGE_ME
rootPassword: CHANGE_ME # rootPassword: CHANGE_ME
architecture: standalone architecture: standalone
# Enable persistence # Enable persistence
# primary: # primary:
...@@ -29,9 +29,9 @@ nextcloud: ...@@ -29,9 +29,9 @@ nextcloud:
# enabled: true # enabled: true
# size: 512Mi # size: 512Mi
redis: redis:
auth: auth: {}
# Shared redis password for Nextcloud and OnlyOffice # Shared redis password for Nextcloud and OnlyOffice
password: CHANGE_ME # password: CHANGE_ME
# Creates a kubernetes cronJob object that runs nextcloud's cron.php # Creates a kubernetes cronJob object that runs nextcloud's cron.php
# every 5 minutes (*/5 * * * *) # every 5 minutes (*/5 * * * *)
...@@ -43,12 +43,12 @@ nextcloud: ...@@ -43,12 +43,12 @@ nextcloud:
# size: 2Gi # size: 2Gi
global: global:
onlyofficeDb: onlyofficeDb: {}
password: CHANGE_ME # password: CHANGE_ME
onlyoffice: onlyoffice:
server_name: "office.your.domain" server_name: "office.your.domain"
jwtSecret: CHANGE_ME # jwtSecret: CHANGE_ME
ingress: ingress:
enabled: true enabled: true
annotations: annotations:
...@@ -62,8 +62,8 @@ onlyoffice: ...@@ -62,8 +62,8 @@ onlyoffice:
secretName: office-cert secretName: office-cert
rabbitmq: rabbitmq:
auth: auth: {}
password: CHANGE_ME # password: CHANGE_ME
# apps controls which apps will be installed and enabled in nextcloud # apps controls which apps will be installed and enabled in nextcloud
# apps: # apps:
......
...@@ -67,7 +67,7 @@ global: ...@@ -67,7 +67,7 @@ global:
name: onlyoffice name: onlyoffice
port: 3306 port: 3306
user: onlyoffice user: onlyoffice
# password: # password: password
onlyoffice: onlyoffice:
...@@ -75,7 +75,7 @@ onlyoffice: ...@@ -75,7 +75,7 @@ onlyoffice:
replicaCount: 1 replicaCount: 1
jwtSecret: secret # jwtSecret: secret
# Enable font generation during startup. # Enable font generation during startup.
# This takes a long time and is not needed if you don't provide custom # This takes a long time and is not needed if you don't provide custom
...@@ -193,9 +193,9 @@ onlyoffice: ...@@ -193,9 +193,9 @@ onlyoffice:
failureThreshold: 120 failureThreshold: 120
rabbitmq: rabbitmq:
auth: auth: {}
password: password # password: password
erlangCookie: stub # erlangCookie: stub
sociallogin: sociallogin:
update_profile_on_login: 1 update_profile_on_login: 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment