Skip to content

Set explicit volume mount permissions#375

Open
ehelms wants to merge 1 commit intotheforeman:masterfrom
ehelms:set-volume-mounts
Open

Set explicit volume mount permissions#375
ehelms wants to merge 1 commit intotheforeman:masterfrom
ehelms:set-volume-mounts

Conversation

@ehelms
Copy link
Copy Markdown
Member

@ehelms ehelms commented Feb 15, 2026

Adds an Ansible lint rule to help ensure any future volume mounts that are added follow this rule.

@ehelms ehelms marked this pull request as draft February 15, 2026 13:46
@ehelms ehelms force-pushed the set-volume-mounts branch from 5845390 to 7eb30ae Compare March 4, 2026 22:07
sdnotify: healthy
network: host
volumes:
- "{{ postgresql_data_dir }}:/var/lib/pgsql/data:Z"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:rw:Z ?

pablomh added a commit to pablomh/foremanctl that referenced this pull request Apr 18, 2026
Two changes:

1. PostgreSQL socket: mount host socket dir at /tmp inside the container
   instead of /tmp/socket. The sclorg default unix_socket_directories
   already includes /tmp, so no config override is needed — eliminates
   the ALTER SYSTEM cycle and the socket-conf secret entirely. The sclorg
   entrypoint chown issue only affects /var/run/postgresql, not /tmp.

2. Per PR theforeman#375: add explicit :rw permission to data volume mounts
   (postgresql data, redis data, candlepin logs, pulp storage, foreman
   run volume). Makes read-write intent explicit rather than relying on
   Podman's default.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
pablomh added a commit to pablomh/foremanctl that referenced this pull request Apr 18, 2026
Two changes:

1. PostgreSQL socket: mount host socket dir at /tmp inside the container
   instead of /tmp/socket. The sclorg default unix_socket_directories
   already includes /tmp, so no config override is needed — eliminates
   the ALTER SYSTEM cycle and the socket-conf secret entirely. The sclorg
   entrypoint chown issue only affects /var/run/postgresql, not /tmp.

2. Per PR theforeman#375: add explicit :rw permission to data volume mounts
   (postgresql data, redis data, candlepin logs, pulp storage, foreman
   run volume). Makes read-write intent explicit rather than relying on
   Podman's default.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
pablomh added a commit to pablomh/foremanctl that referenced this pull request Apr 18, 2026
Two changes:

1. PostgreSQL socket: mount host socket dir at /tmp inside the container
   instead of /tmp/socket. The sclorg default unix_socket_directories
   already includes /tmp, so no config override is needed — eliminates
   the ALTER SYSTEM cycle and the socket-conf secret entirely. The sclorg
   entrypoint chown issue only affects /var/run/postgresql, not /tmp.

2. Per PR theforeman#375: add explicit :rw permission to data volume mounts
   (postgresql data, redis data, candlepin logs, pulp storage, foreman
   run volume). Makes read-write intent explicit rather than relying on
   Podman's default.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Adds an Ansible lint rule to help ensure any future volume mounts
that are added follow this rule.
@ehelms ehelms force-pushed the set-volume-mounts branch from 7eb30ae to 4dc137b Compare May 5, 2026 19:58
@ehelms ehelms marked this pull request as ready for review May 5, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants