Skip to content

refactor(api): remove bootstrapAPIKeys from CR spec#1189

Merged
keynslug merged 1 commit intomain-3.xfrom
fix/api/drop-bootstrap-apikeys
Apr 24, 2026
Merged

refactor(api): remove bootstrapAPIKeys from CR spec#1189
keynslug merged 1 commit intomain-3.xfrom
fix/api/drop-bootstrap-apikeys

Conversation

@keynslug
Copy link
Copy Markdown
Contributor

Summary

This PR removes bootstrapAPIKeys from the spec, effectively removing ability to provision EMQX Dashboard API keys through bootstrap file.

This mechanism is not fully compatible with K8s operational model that dictates that system state must eventually reflect specification: depending on EMQX version, changing this field either does not do anything or cause creating of new API keys on any change without retiring pre-existing ones. The plan is to replace this mechanism by a dedicated CRD in the future.

This commit removes `bootstrapAPIKeys` from the spec, effectively
removing ability to provision EMQX Dashboard API keys through
bootstrap file.

This mechanism is not fully compatible with K8s operational model
that dictates that system state must eventually reflect specification:
depending on EMQX version, changing this field either does not do
anything or cause creating of new API keys on any change without
retiring pre-existing ones. The plan is to replace this mechanism by
a dedicated CRD in the future.
@keynslug keynslug marked this pull request as ready for review April 23, 2026 16:53
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 76.12%. Comparing base (8806d49) to head (09bed15).
⚠️ Report is 12 commits behind head on main-3.x.

Files with missing lines Patch % Lines
internal/controller/add_bootstrap_resource.go 83.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           main-3.x    #1189      +/-   ##
============================================
+ Coverage     76.03%   76.12%   +0.09%     
============================================
  Files            48       48              
  Lines          3998     3967      -31     
============================================
- Hits           3040     3020      -20     
+ Misses          799      793       -6     
+ Partials        159      154       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@keynslug keynslug merged commit 654a92c into main-3.x Apr 24, 2026
14 checks passed
@keynslug keynslug deleted the fix/api/drop-bootstrap-apikeys branch April 24, 2026 07:35
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.

3 participants