fix(multitenancy): CU-86akb83pw: Reduce agent distributed_interval from 60 to 10 sec - #137
Merged
Merged
Conversation
…om 60 to 10 sec Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
oleksandrd-flamingo
force-pushed
the
fix/openframe-agent-options
branch
from
September 3, 2026 15:04
7806aad to
45946f1
Compare
oleksandrd-flamingo
enabled auto-merge (squash)
September 3, 2026 15:07
aliaska-varieva
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CU-86akb83pw
Under multitenancy tenants served no agent options, so hosts fell back to osquery's defaults —
distributed_interval60s instead of 10s, making live queries and refetch slow. Two causes: upstream auto-applies its GitOps starter library afterPOST /setupand its template declares noagent_options, so the declarative apply nulls what setup just wrote; andOpenframeDefaultAppConfig()dropped agent options entirely after CU-86ah5x16c (a servedlogger_tls_endpointbroke log delivery, so the whole block was nulled).Changes
logger_tls_endpoint,*_plugin,*_tls_*_endpoint) — those only override orbit's command-line wiring; intervals, attempts,pack_delimiterand decorators are kept. Trimming at the source covers all consumers of the defaults: tenant seeding inEnsureOpenframeTeamID, the missing-row read fallback, and the instance-row migration.Both gated on
FLEET_OPENFRAME_MULTI_TENANCY_ENABLED, so non-multitenant deployments keep upstream behavior byte for byte. Agent config reads are team-pinned, so a host is served its tenant's (trimmed) row;POST /setupstill writes upstream's untrimmed defaults to the unpinned instance row (id = 1), read only by crons and boot.Existing instances are deliberately left untouched: rows wiped before this change keep serving no agent options until re-applied per tenant.
Tests: trim + defaults unit tests, MySQL-backed tenant-seeding assertions (
MYSQL_TEST=1, green).No API changes
Backward compatible in both rollout directions
🤖 Generated with Claude Code