[PR #5235] feat: support _FILE variant for ACTUAL_OPENID_CLIENT_SECRET #95733

Closed
opened 2026-05-26 10:44:28 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/5235

State: closed
Merged: No


Fixes #5233

Adds support for a _FILE variant of ACTUAL_OPENID_CLIENT_SECRET for better Docker secret management. Reads secret value from file if the _FILE env var is set. This will overwrite other settings of the secret through config.json or the ACTUAL_OPENID_CLIENT_SECRET environment variable.

The function was written somewhat generically to allow further expansion, but as no other secrets are exposed through variables only ACTUAL_OPENID_CLIENT_SECRET was given a _FILE overwrite.

To test, simply append this line after the function is invoked.
console.log('[DEBUG] Loaded OIDC secret:', configSchema.get('openId.client_secret'));
Output should be the contents of the file.

Release Notes

Type: Enhancements
Username(s): tim_connect
PR Number: #5235
Summary:
This PR adds support for reading the OpenID client secret from a file using the ACTUAL_OPENID_CLIENT_SECRET_FILE environment variable. This enables better handling of secrets in Docker and Kubernetes environments.

If both ACTUAL_OPENID_CLIENT_SECRET and ACTUAL_OPENID_CLIENT_SECRET_FILE are set, the _FILE variant takes precedence.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/5235 **State:** closed **Merged:** No --- Fixes #5233 Adds support for a _FILE variant of ACTUAL_OPENID_CLIENT_SECRET for better Docker secret management. Reads secret value from file if the _FILE env var is set. This will overwrite other settings of the secret through config.json or the ACTUAL_OPENID_CLIENT_SECRET environment variable. The function was written somewhat generically to allow further expansion, but as no other secrets are exposed through variables only ACTUAL_OPENID_CLIENT_SECRET was given a _FILE overwrite. To test, simply append this line after the function is invoked. ```console.log('[DEBUG] Loaded OIDC secret:', configSchema.get('openId.client_secret'));``` Output should be the contents of the file. ## Release Notes Type: Enhancements Username(s): tim_connect PR Number: #5235 Summary: This PR adds support for reading the OpenID client secret from a file using the `ACTUAL_OPENID_CLIENT_SECRET_FILE` environment variable. This enables better handling of secrets in Docker and Kubernetes environments. If both `ACTUAL_OPENID_CLIENT_SECRET` and `ACTUAL_OPENID_CLIENT_SECRET_FILE` are set, the `_FILE` variant takes precedence.
GiteaMirror added the pull-request label 2026-05-26 10:44:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#95733