Skip to content

Bug: Chart has expectations that should be overriden (running as root) #78

@samip5

Description

@samip5

The chart or more exactly volume-permissions init-container has the expectation that it runs as root.

This needs a way to not have such an expectation without the ability to disable it.

Running with the following securityContext:

  securityContext:
      runAsNonRoot: true
      runAsUser: 568
      runAsGroup: 65534
      fsGroup: 65534
      fsGroupChangePolicy: OnRootMismatch
'/deployed-configs/map-gen-settings.json' -> '/factorio/configs/map-gen-settings.json'
'/deployed-configs/map-settings.json' -> '/factorio/configs/map-settings.json'
'/deployed-configs/server-adminlist.json' -> '/factorio/configs/server-adminlist.json'
'/deployed-configs/server-banlist.json' -> '/factorio/configs/server-banlist.json'
'/deployed-configs/server-settings.json' -> '/factorio/configs/server-settings.json'
'/deployed-configs/server-whitelist.json' -> '/factorio/configs/server-whitelist.json'
'/rcon-pw/rconpw' -> '/factorio/configs/rconpw'
chmod: changing permissions of '/factorio/configs': Operation not permitted
chmod: changing permissions of '/factorio/configs/map-gen-settings.json': Operation not permitted
chmod: changing permissions of '/factorio/configs/map-settings.json': Operation not permitted
chmod: changing permissions of '/factorio/configs/rconpw': Operation not permitted
chmod: changing permissions of '/factorio/configs/server-adminlist.json': Operation not permitted
chmod: changing permissions of '/factorio/configs/server-banlist.json': Operation not permitted
failed to change mode of '/factorio/configs' from 2777 (rwxrwsrwx) to 2777 (rwxrwsrwx)
chmod: changing permissions of '/factorio/configs/server-whitelist.json': Operation not permitted
failed to change mode of '/factorio/configs/map-gen-settings.json' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
failed to change mode of '/factorio/configs/map-settings.json' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
failed to change mode of '/factorio/configs/rconpw' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
failed to change mode of '/factorio/configs/server-adminlist.json' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
failed to change mode of '/factorio/configs/server-banlist.json' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
failed to change mode of '/factorio/configs/server-whitelist.json' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
mode of '/factorio/configs/server-settings.json' changed from 0644 (rw-r--r--) to 0777 (rwxrwxrwx)

This results in the init-container exiting with non-successful status and thus the pod will not start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions