Skip to content

[BUG] Inconsistent Configuration Prefix breaks ACLs #667

@hozza

Description

@hozza

Describe the bug

Need some clarity on what syntax is needed for configuration. Prefix with "TINYAUTH_" or not?

To Reproduce
Steps to reproduce the behavior:

The container expects "APP_URL" and the current docs say "APP_URL" also, but the example compose and env file suggest "TINYAUTH_APP_URL".

Maybe it changed at some point and not updated in some places?

https://github.com/steveiliop56/tinyauth/blob/36b1594fb8e9ebaaf6ff5cff29983d9ac87bdc0e/docker-compose.example.yml#L23

Along with all configs in the env example:
https://github.com/steveiliop56/tinyauth/blob/36b1594fb8e9ebaaf6ff5cff29983d9ac87bdc0e/.env.example#L4

Also uses the prefix in the Docker file: https://github.com/steveiliop56/tinyauth/blob/36b1594fb8e9ebaaf6ff5cff29983d9ac87bdc0e/Dockerfile#L60

This applies to all configs, APP_URL is an easy example.

More importantly, this may also apply to the not documented non-label ACL config approach (could we also add docs for this on the config docs page?). The PR 422 suggests ACL's can be set by environment vars with the "TINYAUTH_" prefix but maybe they don't need this prefix? (I can't get them to work with labels/socket disabled).

Expected behavior
A clear and concise description of what you expected to happen.

Either the docs and app are looking for the wrong environment vars or the example configuration files are wrong or outdated? Maybe some parts of the app like the env based ACL's need to be updated also?

Device (please complete the following information):

  • OS: Linux Debian (via podman or docker in a container)
  • Tinyauth v4 / latest

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions