Skip to content

Conversation

@mhandl
Copy link

@mhandl mhandl commented Apr 6, 2025

  • Standardize AS stage naming with uppercase
  • Create midpoint system user and group based on base image
  • Set proper ownership of midpoint directory
  • Switch to non-privileged user for container execution

This change improves security by running the container as a non-privileged user instead of root.

  - Standardize AS stage naming with uppercase
  - Create midpoint system user and group based on base image
  - Set proper ownership of midpoint directory
  - Switch to non-privileged user for container execution

  This change improves security by running the container as a non-privileged user instead of root.
@mhandl
Copy link
Author

mhandl commented Apr 6, 2025

Tested with the latest Docker images for Alpine, Ubuntu, and Rocky Linux.

Note: Be aware that any MP_HOME persistent volumes created with previous MidPoint Docker images were created with privileged account permissions. Containers updated with new Docker images (using a non-privileged account) will not have write access to these persistent volumes. To fix the permissions, these volumes must be manually corrected, such as changing MP_HOME ownership to the account midpoint.

@cccfer
Copy link

cccfer commented Jun 3, 2025

Nice job ! Very interrested by this security improvement.

@virgo47
Copy link
Member

virgo47 commented Sep 18, 2025

please merge this

FYI: this one is coming directly in the MP repo in the not-so-distant future: https://github.com/Evolveum/midpoint/tree/feature/docker/tools/docker

@martin-lizner
Copy link
Collaborator

@virgo47 nice that you are including the tool right into mp project, but i guess for older mp versions we will have to work with this one, so please consider merging this PR :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants