Skip to content

Make internal configuration variables readonly to prevent users from overwriting them #649

@mishaschwartz

Description

@mishaschwartz

Originally discussed in #647 (comment)

Should we make variables introduced in various default.env files that are meant for internal use only and should not be overwritten in a local environment file readonly?

Right now we handle this by not advertising these variables in env.local.example and don't refer to them in the user facing documentation (or explicitly mention that they should not be overwritten).

Some things to consider:

  • is there ever a use-case for allowing users to overwrite these variables when they really know what they're doing?
  • is it better to introduce a mechanism to warn the user if they're overwriting an internal variable instead?

For example, here are some variables that are for internal use only:

  • COMPOSE_DIR
  • ALL_CONF_DIRS
  • BIRDHOUSE_ALLOW_UNSECURE_HTTP (in proxy)
  • BIRDHOUSE_AUTODEPLOY_EXTRA_REPOS_AS_DOCKER_VOLUMES (in scheduler-job-autodeploy)
  • GEOSERVER_SKIP_AUTH_PROXY_INCLUDE (in geoserver)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions