Skip to content

Support gradual rollout flag for realtime updates - #328

Merged
hansott merged 1 commit into
mainfrom
feature/realtime-updates-gradual-rollout
Aug 3, 2026
Merged

Support gradual rollout flag for realtime updates#328
hansott merged 1 commit into
mainfrom
feature/realtime-updates-gradual-rollout

Conversation

@Mishenevd

@Mishenevd Mishenevd commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Backend can now enable realtime updates per-account via an enabledFeatures list on the config response, ahead of AIKIDO_FEATURE_SSE being set locally. SSE starts if either is true.

Mirrors the change already merged in firewall-node and firewall-ruby. Feature name is realtime_updates, matching the backend.

APIResponse keeps an 11-arg constructor defaulting enabledFeatures to empty, so the ~25 existing call sites in tests are untouched.

Testing:

  • Unit tests on ServiceConfiguration/ServiceConfigStore: defaults to false, true when present, false again once removed, false for an unrelated feature name

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 23.07692% with 10 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...aikido/agent_api/storage/ServiceConfiguration.java 0.00% 4 Missing ⚠️
...aikido/agent_api/background/BackgroundProcess.java 0.00% 3 Missing ⚠️
...v/aikido/agent_api/storage/ServiceConfigStore.java 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Mishenevd
Mishenevd force-pushed the feature/realtime-updates-gradual-rollout branch from 8c0b116 to 1b77360 Compare August 3, 2026 09:50
@aikido-pr-checks

aikido-pr-checks Bot commented Aug 3, 2026

Copy link
Copy Markdown

Summary by Aikido

Security Issues: 0 Quality Issues: 0 Resolved Issues: 0

⚡ Enhancements

  • Stored enabledFeatures in ServiceConfiguration and updated config parsing logic
  • Added ServiceConfiguration.isRealtimeUpdatesEnabled check to expose feature state
  • Made BackgroundProcess start SSE when flag or server-enabled feature was present
  • Extended APIResponse with enabledFeatures and added backward-compatible constructor

More info

Comment thread agent_api/src/main/java/dev/aikido/agent_api/background/BackgroundProcess.java Outdated
Backend can now enable realtime config updates per-account via an
enabledFeatures list on the config response, ahead of the agent
having AIKIDO_FEATURE_SSE set locally. SSE starts if either is true.
@Mishenevd
Mishenevd force-pushed the feature/realtime-updates-gradual-rollout branch from 1b77360 to e6ed6ee Compare August 3, 2026 14:42
@hansott
hansott merged commit 565bb74 into main Aug 3, 2026
271 of 273 checks passed
@hansott
hansott deleted the feature/realtime-updates-gradual-rollout branch August 3, 2026 15:13
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