Skip to content

Centralise DSH configuration values #2446

@cptanalatriste

Description

@cptanalatriste

✅ Checklist

  • I have searched open and closed issues for duplicates.
  • This is a request for a new feature in the Data Safe Haven or an upgrade to an existing feature.
  • The feature is still missing in the latest version.
  • I have read through the documentation.
  • This isn't an open-ended question (open a discussion if it is).

🍓 Suggested change

There are some DSH configuration values that are spread over multiple files, instead of being centralised in a single component. For example, the caddy container image, name, CPU requirements, memory requirements, and mount path have the same values on the modules gitea_server.py, hedgedoc_server.py, remote_desktop.py, and software_repositories.py.

Changing any of this values ----let's say, for example, that we discover Caddy requires more memory than 0.5GB-- would require editing all these files. We request to centralise these values in a single component (maybe a constants.py module)? To ease maintenance.

🚂 How could this be done?

We can have a central constants.py module, or multiple modules per concern (like caddy_constants.py).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew functionality that should be added to the Safe Haven

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions