Skip to content

feat(mariadb): default-on reconnectOnAuthError for replica auth self-heal (0.1.28) - #70

Merged
xcompass merged 1 commit into
masterfrom
feat/replica-reconnect-on-auth-error
Jul 19, 2026
Merged

feat(mariadb): default-on reconnectOnAuthError for replica auth self-heal (0.1.28)#70
xcompass merged 1 commit into
masterfrom
feat/replica-reconnect-on-auth-error

Conversation

@xcompass

Copy link
Copy Markdown
Member

Summary

Adds opt-in replica auth self-heal support to the mariadb chart, defaulted on, to pair with the operator's new reconnectOnAuthError feature (ubc/mariadb-operator#4).

When a replica's IO thread is stuck on repl auth error 1045 (Access denied for user 'repl') past errorDurationThreshold, the operator re-issues CHANGE MASTER with the current secret — a lightweight re-sync (no backup rebuild) that only touches an already-broken replica.

Changes (mariadb chart, 0.1.270.1.28)

  • templates/mariadb.yaml: render spec.replication.replica.recovery when either recovery.enabled or recovery.reconnectOnAuthError is set (was enabled-only), emit the real enabled value (was hardcoded true), and add reconnectOnAuthError.
  • values.yaml: add secondary.replica.recovery.reconnectOnAuthError: true (default-on).

Behavior

Verified

  • helm template … --set architecture=replication → correct recovery block.
  • Standalone render → no recovery block.
  • helm lint clean.

Follow-up (sequential — after this merges & publishes)

The hotcrp chart's Chart.lock pins mariadb at 0.1.27, so it can only re-resolve the version: "*" db dependency to 0.1.28 after 0.1.28 is published. Once this merges:

  1. helm dependency update hotcrp (re-resolves lock → mariadb 0.1.28) + bump hotcrp chart version, publish.
  2. Bump the hotcrp appset revision in devops/configuration → ArgoCD sync → hotcrp MariaDB CRs gain the flag.

Every other replicated DB on this chart picks it up automatically on its next chart republish (default-on + version: "*").

https://claude.ai/code/session_01BCHp8v87idhtUwTJ5XJ5qu

…heal

Render spec.replication.replica.recovery when either recovery.enabled OR
recovery.reconnectOnAuthError is set (previously enabled-only), emit the actual
enabled value, and add reconnectOnAuthError (default true). Lets a replica stuck
on repl auth error 1045 self-heal via the operator without enabling the heavy
backup-rebuild recovery. Requires the operator's reconnectOnAuthError build.
Bump 0.1.27 -> 0.1.28.
@xcompass
xcompass merged commit 1ce2322 into master Jul 19, 2026
4 checks passed
@xcompass
xcompass deleted the feat/replica-reconnect-on-auth-error branch July 19, 2026 01:06
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