UNCLASSIFIED

Commit 299f2dc4 authored by Ryan Garcia's avatar Ryan Garcia
Browse files

Merge branch 'minio-4-upgrade' into 'main'

MM Minio 4 upgrade

See merge request !50
parents 36c78e49 0c6046b3
Pipeline #410092 passed with stages
in 6 minutes and 15 seconds
...@@ -18,6 +18,13 @@ monitoring: ...@@ -18,6 +18,13 @@ monitoring:
enabled: false enabled: false
namespace: monitoring namespace: monitoring
networkPolicies:
enabled: false
ingressLabels:
app: istio-ingressgateway
istio: ingressgateway
controlPlaneCidr: 0.0.0.0/0
sso: sso:
enabled: false enabled: false
client_id: platform1_a8604cc9-f5e9-4656-802d-d05624370245_bb8-mattermost client_id: platform1_a8604cc9-f5e9-4656-802d-d05624370245_bb8-mattermost
...@@ -28,8 +35,8 @@ sso: ...@@ -28,8 +35,8 @@ sso:
# Repo and image tag # Repo and image tag
image: image:
name: registry.dso.mil/platform-one/big-bang/apps/collaboration-tools/mattermost/mattermost name: registry1.dso.mil/ironbank/opensource/mattermost/mattermost
tag: 5.34.2 tag: 5.37.0
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
global: global:
...@@ -95,14 +102,28 @@ existingSecretEnvs: {} ...@@ -95,14 +102,28 @@ existingSecretEnvs: {}
# key: DB_CONNECTION_CHECK_URL # key: DB_CONNECTION_CHECK_URL
# name: "mysecretname" # name: "mysecretname"
volumes: {}
# - name: ca-cert
# secret:
# secretName: ca-secret
# defaultMode: 0644
volumeMounts: {}
# - name: ca-cert
# mountPath: /etc/ssl/certs
# readOnly: true
minio: minio:
install: false install: false
bucketCreationImage: "registry1.dso.mil/ironbank/opensource/minio/mc:RELEASE.2021-06-13T17-48-22Z"
# Override the minio service name for easier connection setup
service:
nameOverride: "minio.mattermost.svc.cluster.local"
tenants: tenants:
secrets: secrets:
name: "mattermost-objstore-creds" name: "mattermost-objstore-creds"
accessKey: "minio" accessKey: "minio"
secretKey: "minio#123" # default key, change this! secretKey: "minio123" # default key, change this!
postgresql: postgresql:
install: false install: false
...@@ -167,3 +188,5 @@ elasticsearch: ...@@ -167,3 +188,5 @@ elasticsearch:
enablesearching: true enablesearching: true
# When true, Elasticsearch will be used for all autocompletion queries on users and channels using the latest index. Autocompletion results may be incomplete until a bulk index of the existing users and channels database is finished. When false, database autocomplete is used. # When true, Elasticsearch will be used for all autocompletion queries on users and channels using the latest index. Autocompletion results may be incomplete until a bulk index of the existing users and channels database is finished. When false, database autocomplete is used.
enableautocomplete: true enableautocomplete: true
openshift: false
...@@ -20,7 +20,7 @@ Under the mappers tab, create a new mapper: ...@@ -20,7 +20,7 @@ Under the mappers tab, create a new mapper:
- claim JSON type - long - claim JSON type - long
- add to userinfo - on - add to userinfo - on
Create another mapper: Create username mapper:
- name - username - name - username
- mapper type - user property - mapper type - user property
- property - username - property - username
...@@ -29,6 +29,15 @@ Create another mapper: ...@@ -29,6 +29,15 @@ Create another mapper:
- add to userinfo - on - add to userinfo - on
- all other sliders off - all other sliders off
Create email mapper:
- name - email
- mapper type - user property
- property - email
- token claim name - email
- claim JSON type - string
- add to userinfo - on
- all other sliders off
Add mattermostid to existing user: Add mattermostid to existing user:
- Login to keycloak Admin Console with the master realm user - Login to keycloak Admin Console with the master realm user
- Go to your realm - Go to your realm
...@@ -68,3 +77,27 @@ helm upgrade -i mattermost chart -n mattermost --create-namespace -f my-values.y ...@@ -68,3 +77,27 @@ helm upgrade -i mattermost chart -n mattermost --create-namespace -f my-values.y
Role based authentication can be configured as long as you are on an enterprise version. Role based authentication can be configured as long as you are on an enterprise version.
Follow the steps in [this tutorial](https://docs.mattermost.com/deployment/advanced-permissions.html) to customize the permissions given to users. In general permissions can be edited under the "System Console -> User Management -> Permissions". Users should be created by default under the "Member" group, except for the first user to sign up or login. Follow the steps in [this tutorial](https://docs.mattermost.com/deployment/advanced-permissions.html) to customize the permissions given to users. In general permissions can be edited under the "System Console -> User Management -> Permissions". Users should be created by default under the "Member" group, except for the first user to sign up or login.
## OIDC Custom CA
Mattermost can be configured to point to specific files to trust with an OIDC auth connection, here is an example when using Big Bang to deploy mattermost, assuming you are populating a secret named "ca-cert" in the same namespace, with a key of cert.pem and value of a single PEM encoded certificate (an easy way to make this secret is included below as well):
```yaml
addons:
mattermost:
values:
volumes:
- name: ca-cert
secret:
secretName: ca-secret
defaultMode: 0644
volumeMounts:
- name: ca-cert
mountPath: /etc/ssl/certs
readOnly: true
```
For secret creation with this example and a pem file at `/path/to/cert.pem`:
```bash
kubectl create secret generic ca-secret --from-file=cert.pem=/path/to/cert.pem -n mattermost
```
mattermostoperator: mattermostoperator:
git: "https://repo1.dso.mil/platform-one/big-bang/apps/collaboration-tools/mattermost-operator.git" git: "https://repo1.dso.mil/platform-one/big-bang/apps/collaboration-tools/mattermost-operator.git"
namespace: "mattermost-operator" namespace: "mattermost-operator"
branch: "1.13.0-bb.2" branch: "1.14.0-bb.2"
miniooperator: miniooperator:
git: "https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio-operator.git" git: "https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio-operator.git"
namespace: "minio-operator" namespace: "minio-operator"
branch: "4.0.4-bb.1" branch: "4.1.2-bb.1"
minio: minio:
install: true install: true
upgradeTenants:
enabled: true
postgresql: postgresql:
install: true install: true
networkPolicies:
enabled: true
bbtests: bbtests:
enabled: true
cypress: cypress:
artifacts: true artifacts: true
envs: envs:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment