Skip to content

Make readOnlyRootFilesystem true #1096

Open

Description

@DiamondJoseph

It is Helm best practice to set readOnlyRootFilesystem as true, which means that the container filesystem is readOnly and only mounts may be editable, and those mounts are explicitly marked as such- this prevents unknown behaviour when the container image is modified.

This is blocked by dodal importing ophyd.sim which creates SynAxis devices as a side effect. This should either be modified within ophyd.sim (which may be problematic as many facilities depend on ophyd.sim for testing) or may be resolved by dodal no longer importing ophyd.sim, which currently requires the final devices are remade in ophyd-async

Acceptance Criteria

  • The helm values securityContext has readOnlyRootFilesystem by default

Activity

  1. DiamondJoseph commented on Jul 8, 2025

    @DiamondJoseph
    ContributorAuthor

    I've just been talking myself in knots about whether this would stop the /venv/ from being scratch installable, but so long as the initContainer does not get readOnlyRootFilesystem the main container should have /venv/ mounted from the version exported by the above.

  2. abbiemery commented on Feb 25, 2026

    @abbiemery
    Contributor

    Might be worth revisiting now that ophyd.sim is not used

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions