Skip to content

Reconcile drifted proxy auth block on panda init#223

Open
samcm wants to merge 1 commit into
masterfrom
fix-init-reconcile-stale-auth
Open

Reconcile drifted proxy auth block on panda init#223
samcm wants to merge 1 commit into
masterfrom
fix-init-reconcile-stale-auth

Conversation

@samcm

@samcm samcm commented Jun 16, 2026

Copy link
Copy Markdown
Member

panda init won't overwrite an existing config.yaml without --force, so when the proxy switches OIDC issuers the local config stays pinned to the old issuer and panda auth login (which resolves the issuer from config before consulting the proxy) keeps authenticating against the stale one — re-running panda init alone never recovers. This makes init re-discover the proxy's advertised auth and, when an existing config's proxy.auth has drifted, rewrite only issuer_url/client_id/mode in place (preserving all other config and comments), applied only when discovery succeeds so fallback guesses never clobber a working config.

'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.
@github-actions

Copy link
Copy Markdown
Contributor

🐼 Smoke eval — e5c335c: ✅ 6/6 pass

📊 Interactive report — tokens p50 13,496 · tokens/solve 14,093.

Reference points: v0.33.0 100% · master@5c28223 100%.

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.

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.

1 participant