Skip to content

refactor: add option to store configuration in a secret#296

Merged
bo0tzz merged 2 commits into
immich-app:mainfrom
YotamKorah:refactor/config-as-secret
Dec 16, 2025
Merged

refactor: add option to store configuration in a secret#296
bo0tzz merged 2 commits into
immich-app:mainfrom
YotamKorah:refactor/config-as-secret

Conversation

@YotamKorah
Copy link
Copy Markdown
Contributor

Hello,
I love this project and have been using it a lot. I wanted to contribute a bit and thought this small commit is a good place to start.

This pull request adds support for optionally storing the Immich configuration in a Kubernetes Secret instead of a ConfigMap, improving security for sensitive configurations. The change is controlled by a new storeConfigInSecret value. The chart version has also been bumped to reflect this enhancement.

Support for storing configuration in a Secret:

  • Added logic in immich-config.yml to create either a Secret or ConfigMap based on the immich.storeConfigInSecret value, including handling of type and data fields accordingly. [1] [2]
  • Updated server.yaml to mount the configuration as either a secret or configMap, depending on the same value.
  • Introduced the storeConfigInSecret option in values.yaml with a default of false and documentation.
  • Default functionality is to still create a configMap for backwards compatibility, However I recommend enabling this feature by default in a future release.

Chart version update:

  • Bumped the chart version from 0.10.3 to 0.10.4 in Chart.yaml to reflect the new feature.

@bo0tzz
Copy link
Copy Markdown
Member

bo0tzz commented Dec 2, 2025

Perhaps it should just be called configurationKind? That could simplify the templating too.
Please remove the version bump, I'll do that separately.

@YotamKorah YotamKorah force-pushed the refactor/config-as-secret branch from 18f794d to c8c733c Compare December 2, 2025 14:46
@YotamKorah
Copy link
Copy Markdown
Contributor Author

OK I updated as you suggested and added a check to verify that configurationKind is valid

@YotamKorah YotamKorah requested a review from bo0tzz December 2, 2025 20:44
@YotamKorah
Copy link
Copy Markdown
Contributor Author

Sorry, clicked request review by mistake

@YotamKorah
Copy link
Copy Markdown
Contributor Author

Hi, any chance we could merge this PR please?

@bo0tzz bo0tzz merged commit bd63635 into immich-app:main Dec 16, 2025
6 checks passed
renovate Bot added a commit to sdwilsh/ansible-playbooks that referenced this pull request Mar 28, 2026
##### [\`0.11.0\`](https://github.com/immich-app/immich-charts/releases/tag/immich-0.11.0)

A chart to power Immich (immich.app) running on kubernetes

#### What's Changed

- chore(deps): update dependency tilt to v0.36.0 by [@renovate](https://github.com/renovate)\[bot] in [#294](immich-app/immich-charts#294)
- chore: group helm updates by [@bo0tzz](https://github.com/bo0tzz) in [#298](immich-app/immich-charts#298)
- chore(deps): update dependency kubectl to v1.34.2 by [@renovate](https://github.com/renovate)\[bot] in [#293](immich-app/immich-charts#293)
- chore(deps): update github-actions by [@renovate](https://github.com/renovate)\[bot] in [#288](immich-app/immich-charts#288)
- chore(deps): update helm release common to v4.5.0 by [@renovate](https://github.com/renovate)\[bot] in [#305](immich-app/immich-charts#305)
- chore(deps): update docker.io/valkey/valkey:9.0-alpine docker digest to [`1be4944`](immich-app/immich-charts@1be4944) by [@renovate](https://github.com/renovate)\[bot] in [#300](immich-app/immich-charts#300)
- refactor: add option to store configuration in a secret by [@YotamKorah](https://github.com/YotamKorah) in [#296](immich-app/immich-charts#296)
- chore(deps): update dependency kubectl to v1.34.3 by [@renovate](https://github.com/renovate)\[bot] in [#304](immich-app/immich-charts#304)
- chore(deps): update actions/create-github-app-token action to v2.2.1 - autoclosed by [@renovate](https://github.com/renovate)\[bot] in [#303](immich-app/immich-charts#303)
- chore(deps): update helm to v4 (major) by [@renovate](https://github.com/renovate)\[bot] in [#302](immich-app/immich-charts#302)
- chore(deps): update github-actions by [@renovate](https://github.com/renovate)\[bot] in [#315](immich-app/immich-charts#315)
- chore(deps): update docker.io/valkey/valkey docker tag to v9.1 by [@renovate](https://github.com/renovate)\[bot] in [#325](immich-app/immich-charts#325)
- chore(deps): update int128/diff-action to v2 (major) by [@bo0tzz](https://github.com/bo0tzz) in [#329](immich-app/immich-charts#329)
- chore: deprecate http repo by [@bo0tzz](https://github.com/bo0tzz) in [#326](immich-app/immich-charts#326)
- fix(service): Add service appProtocol websocket to allow health and version check by [@jjpebesma](https://github.com/jjpebesma) in [#323](immich-app/immich-charts#323)
- chore(deps): update helm to v4.1.3 by [@renovate](https://github.com/renovate)\[bot] in [#301](immich-app/immich-charts#301)
- chore(deps): update dependency kubectl to v1.35.3 by [@renovate](https://github.com/renovate)\[bot] in [#311](immich-app/immich-charts#311)
- feat(config): add option to use an existing config not managed by the chart by [@YotamKorah](https://github.com/YotamKorah) in [#307](immich-app/immich-charts#307)
- chore(deps): update helm release common to v4.6.2 by [@renovate](https://github.com/renovate)\[bot] in [#316](immich-app/immich-charts#316)
- chore(deps): update github-actions (major) by [@renovate](https://github.com/renovate)\[bot] in [#297](immich-app/immich-charts#297)
- chore(deps): update dependency kind to v0.31.0 by [@renovate](https://github.com/renovate)\[bot] in [#310](immich-app/immich-charts#310)
- chore(deps): update dependency tilt to v0.37.0 by [@renovate](https://github.com/renovate)\[bot] in [#320](immich-app/immich-charts#320)
- chore(deps): update github-actions by [@renovate](https://github.com/renovate)\[bot] in [#324](immich-app/immich-charts#324)
- chore(deps): bump Immich version to v2.6.3 by [@bo0tzz](https://github.com/bo0tzz) in [#327](immich-app/immich-charts#327)
- chore: release 0.11.0 by [@bo0tzz](https://github.com/bo0tzz) in [#328](immich-app/immich-charts#328)

#### New Contributors

- [@YotamKorah](https://github.com/YotamKorah) made their first contribution in [#296](immich-app/immich-charts#296)
- [@jjpebesma](https://github.com/jjpebesma) made their first contribution in [#323](immich-app/immich-charts#323)

**Full Changelog**: <immich-app/immich-charts@immich-0.10.3...immich-0.11.0>
sdwilsh pushed a commit to sdwilsh/ansible-playbooks that referenced this pull request Mar 28, 2026
##### [\`0.11.0\`](https://github.com/immich-app/immich-charts/releases/tag/immich-0.11.0)

A chart to power Immich (immich.app) running on kubernetes

#### What's Changed

- chore(deps): update dependency tilt to v0.36.0 by [@renovate](https://github.com/renovate)\[bot] in [#294](immich-app/immich-charts#294)
- chore: group helm updates by [@bo0tzz](https://github.com/bo0tzz) in [#298](immich-app/immich-charts#298)
- chore(deps): update dependency kubectl to v1.34.2 by [@renovate](https://github.com/renovate)\[bot] in [#293](immich-app/immich-charts#293)
- chore(deps): update github-actions by [@renovate](https://github.com/renovate)\[bot] in [#288](immich-app/immich-charts#288)
- chore(deps): update helm release common to v4.5.0 by [@renovate](https://github.com/renovate)\[bot] in [#305](immich-app/immich-charts#305)
- chore(deps): update docker.io/valkey/valkey:9.0-alpine docker digest to [`1be4944`](immich-app/immich-charts@1be4944) by [@renovate](https://github.com/renovate)\[bot] in [#300](immich-app/immich-charts#300)
- refactor: add option to store configuration in a secret by [@YotamKorah](https://github.com/YotamKorah) in [#296](immich-app/immich-charts#296)
- chore(deps): update dependency kubectl to v1.34.3 by [@renovate](https://github.com/renovate)\[bot] in [#304](immich-app/immich-charts#304)
- chore(deps): update actions/create-github-app-token action to v2.2.1 - autoclosed by [@renovate](https://github.com/renovate)\[bot] in [#303](immich-app/immich-charts#303)
- chore(deps): update helm to v4 (major) by [@renovate](https://github.com/renovate)\[bot] in [#302](immich-app/immich-charts#302)
- chore(deps): update github-actions by [@renovate](https://github.com/renovate)\[bot] in [#315](immich-app/immich-charts#315)
- chore(deps): update docker.io/valkey/valkey docker tag to v9.1 by [@renovate](https://github.com/renovate)\[bot] in [#325](immich-app/immich-charts#325)
- chore(deps): update int128/diff-action to v2 (major) by [@bo0tzz](https://github.com/bo0tzz) in [#329](immich-app/immich-charts#329)
- chore: deprecate http repo by [@bo0tzz](https://github.com/bo0tzz) in [#326](immich-app/immich-charts#326)
- fix(service): Add service appProtocol websocket to allow health and version check by [@jjpebesma](https://github.com/jjpebesma) in [#323](immich-app/immich-charts#323)
- chore(deps): update helm to v4.1.3 by [@renovate](https://github.com/renovate)\[bot] in [#301](immich-app/immich-charts#301)
- chore(deps): update dependency kubectl to v1.35.3 by [@renovate](https://github.com/renovate)\[bot] in [#311](immich-app/immich-charts#311)
- feat(config): add option to use an existing config not managed by the chart by [@YotamKorah](https://github.com/YotamKorah) in [#307](immich-app/immich-charts#307)
- chore(deps): update helm release common to v4.6.2 by [@renovate](https://github.com/renovate)\[bot] in [#316](immich-app/immich-charts#316)
- chore(deps): update github-actions (major) by [@renovate](https://github.com/renovate)\[bot] in [#297](immich-app/immich-charts#297)
- chore(deps): update dependency kind to v0.31.0 by [@renovate](https://github.com/renovate)\[bot] in [#310](immich-app/immich-charts#310)
- chore(deps): update dependency tilt to v0.37.0 by [@renovate](https://github.com/renovate)\[bot] in [#320](immich-app/immich-charts#320)
- chore(deps): update github-actions by [@renovate](https://github.com/renovate)\[bot] in [#324](immich-app/immich-charts#324)
- chore(deps): bump Immich version to v2.6.3 by [@bo0tzz](https://github.com/bo0tzz) in [#327](immich-app/immich-charts#327)
- chore: release 0.11.0 by [@bo0tzz](https://github.com/bo0tzz) in [#328](immich-app/immich-charts#328)

#### New Contributors

- [@YotamKorah](https://github.com/YotamKorah) made their first contribution in [#296](immich-app/immich-charts#296)
- [@jjpebesma](https://github.com/jjpebesma) made their first contribution in [#323](immich-app/immich-charts#323)

**Full Changelog**: <immich-app/immich-charts@immich-0.10.3...immich-0.11.0>
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.

2 participants