Skip to content

Accept only exact "true" for PORTAINER_INSECURE#20

Merged
nopoz merged 1 commit into
mainfrom
simplify-insecure-flag
Jun 13, 2026
Merged

Accept only exact "true" for PORTAINER_INSECURE#20
nopoz merged 1 commit into
mainfrom
simplify-insecure-flag

Conversation

@nopoz

@nopoz nopoz commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #19. The flag accepted true/1/yes; collapse to a single canonical true. One value matches the docker-compose YAML boolean convention and keeps the opt-in unambiguous (no implied case-insensitivity or alias set to document).

Changes

  • load_config: case ... true|1|yes -> [[ ... == "true" ]].
  • README env table: true/1/yes -> true.

Compose comment, config sample, and the cmd_test error message already used true, so they are unchanged.

Testing

  • shellcheck clean; bash -n ok.
  • Verified only exact true enables; True/1/yes/false/unset stay off.

Drop the 1/yes aliases. A single canonical value matches the YAML
boolean convention and keeps the opt-in unambiguous.
@nopoz nopoz merged commit 4ed2e65 into main Jun 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant