Repository navigation
fix(update): give existing Hive nodes a backup API host (#189649) - #634
Open
mayoalexander wants to merge 1 commit into
Open
mayoalexander wants to merge 1 commit into
mayoalexander wants to merge 1 commit into
Conversation
Production daemons had no fallback, so when freelabel.net stopped answering on 2026-10-14/15 every node failed cloud auth while heyiris.io was answering. Every daemon, old ones included, already reads `iris_api_url_fallback` from ~/.iris/config.json, so `iris update` now adds it (freelabel.net <-> heyiris.io). That covers customers' nodes without a daemon update, from the daemon's next restart. Only adds the key: never changes the primary, never overwrites a set fallback, never invents one for a custom or local host. Atomic write, file mode kept, silent on error. Runs on both paths (updated, and already on latest), after the stale-URL fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
Production Hive daemons had no fallback API host. When freelabel.net stopped answering on 2026-10-14/15, every node failed cloud auth while heyiris.io was answering. Every daemon, old ones included, already reads
iris_api_url_fallbackfrom~/.iris/config.json. So writing that key oniris updatecovers customers' nodes without a daemon update, from each daemon's next restart.What
node-api-fallback.ts:planApiFallback(pure) andensureApiFallback(atomic write that keeps the file mode, silent on any error). It pairs freelabel.net ↔ heyiris.io.iris updatecalls it on both paths (updated, and already on latest), after the existing stale-URL fix.The daemon side (new daemons pick the pair themselves) is FREELABEL/iris-daemon (wt/189649-api-fallback).
Tests
node-api-fallback.test.ts: 10 pass, including on-disk idempotency, file mode kept, and broken JSON left untouched.🤖 Generated with Claude Code