Skip to content

Commit 796c7fc

Browse files
committed
fix: do not make internal secrets immutable
1 parent 44bfedd commit 796c7fc

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66

77
- Document Helm deployed RBAC permissions and remove unnecessary permissions ([#767]).
88

9+
### Fixed
10+
11+
- Do not make internal secrets immutable. Immutable secrets are cached and (accidental) deletes can render the cluster unusable ([#769]).
12+
913
- [#767]: https://github.com/stackabletech/airflow-operator/pull/767
14+
- [#769]: https://github.com/stackabletech/airflow-operator/pull/769
1015

1116
## [26.3.0] - 2026-03-16
1217

rust/operator-binary/src/crd/internal_secret.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ pub async fn create_random_secret(
7373
internal_secret.insert(secret_key.to_string(), get_random_base64(secret_byte_size)?);
7474

7575
let secret = Secret {
76-
immutable: Some(true),
76+
// This secret used to be immutable but immutable secrets cannot be modified
77+
// as they are heavily cached by Kubernetes.
78+
// Different pods with different secrets will render the cluster unusable.
79+
immutable: Some(false),
7780
metadata: ObjectMetaBuilder::new()
7881
.name(secret_name)
7982
.namespace_opt(airflow.namespace())

0 commit comments

Comments
 (0)