Reconcile drifted proxy auth block on panda init#223
Open
samcm wants to merge 1 commit into
Open
Conversation
'panda init' does not overwrite an existing config.yaml without --force, so when the proxy switches OIDC issuers the local config stays pinned to the old issuer. 'panda auth login' resolves the issuer from that config before consulting the proxy, so re-running 'panda init' alone never recovers — the user keeps authenticating against the stale issuer. On init, re-discover the proxy's advertised auth settings and, when an existing config's proxy.auth has drifted, rewrite just issuer_url, client_id and mode in place (preserving all other config and comments). Only applied when discovery succeeds, so fallback guesses never clobber a working config.
Contributor
🐼 Smoke eval —
|
| question | result | tokens | tools |
|---|---|---|---|
forky_node_coverage |
✅ | 12,540 | 3 |
tracoor_node_coverage |
✅ | 12,956 | 3 |
mainnet_block_arrival_p50 |
✅ | 15,504 | 9 |
list_datasources |
✅ | 12,335 | 2 |
block_count_24h |
✅ | 17,186 | 16 |
missed_slots_24h |
✅ | 14,035 | 5 |
🔭 Langfuse traces (6 runs; ⚠️ = failed)
The report walks this branch's commits against the master baseline and the most recent release. A self-contained copy is in the run's eval-smoke-* artifact.
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.
panda initwon't overwrite an existingconfig.yamlwithout--force, so when the proxy switches OIDC issuers the local config stays pinned to the old issuer andpanda auth login(which resolves the issuer from config before consulting the proxy) keeps authenticating against the stale one — re-runningpanda initalone never recovers. This makes init re-discover the proxy's advertised auth and, when an existing config'sproxy.authhas drifted, rewrite onlyissuer_url/client_id/modein place (preserving all other config and comments), applied only when discovery succeeds so fallback guesses never clobber a working config.