-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[team edition] incorrect default securityContext #410
Comments
Looks related to #120 |
I believe there are two ways to accomplish what I want:
|
Tweaking the Here is the additional configuration that needs to be added to resolve this issue: securityContext:
fsGroup: 2000
fsGroupChangePolicy: "OnRootMismatch" |
clouedoc
changed the title
[team edition] Default plugins cannot install
[team edition] incorrect default securityContext
Jul 13, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am encountering permission issues when trying to install a plugin from the
/marketplace
Additionally, default plugins couldn't install themselves.
Impact
This causes 30min of unnecessary debugging to new users of the team edition.
Root cause
The volumes are mounted with incorrect permissions; thus, the app cannot execute the operations necessary to installing a plugin (mkdir, copy).
Troubleshooting details
Logs
Reproduction Helm configuration
Permissions inside the container
config
anddata
are owned byroot:root
instead ofmattermost:mattermost
client/plugins
is owned byroot:root
instead ofmattermost:mattermost
Fixing existing deployments
Adding the following lines to the
values.yaml
mounts the volumes with the correct permissions:Using
extraInitContainers
as detailed in #120 also seems to be a viable option.Fixing future deployments
The
securityContext
above should be used by default in the Helm chart.The text was updated successfully, but these errors were encountered: