openclaw - 💡(How to fix) Fix BUG: Gateway startup aborts on stale SecretRef in non-default auth profile [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#75814Fetched 2026-05-02 05:29:38
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
2
Author
Timeline (top)
subscribed ×3commented ×1labeled ×1referenced ×1

In OpenClaw 2026.4.29, gateway startup can abort if a generated model auth profile contains a stale SecretRef provider reference, even when that provider/model is not the default routing path. A single unresolved auth-profile SecretRef caused the gateway service to repeatedly fail startup instead of degrading only the affected provider/profile.

Error Message

Observed startup error pattern:

[secrets] [SECRETS_RELOADER_DEGRADED] SecretProviderResolutionError: Secret provider "<old-provider>" is not configured (ref: exec:<old-provider>:<key-id>). Gateway failed to start: Error: Startup failed: required secrets are unavailable. SecretProviderResolutionError: Secret provider "<old-provider>" is not configured (ref: exec:<old-provider>:<key-id>).

After updating the generated auth profile to reference the new provider, secrets audit reported unresolved=0 and the gateway reached ready.

Root Cause

Gateway startup failed repeatedly with a required-secrets startup error because the generated auth profile still referenced a removed SecretRef provider. The default model route was unrelated and still had valid credentials, but the whole gateway service stopped until the generated auth profile was manually updated.

Code Example

Observed startup error pattern:

[secrets] [SECRETS_RELOADER_DEGRADED] SecretProviderResolutionError: Secret provider "<old-provider>" is not configured (ref: exec:<old-provider>:<key-id>).
Gateway failed to start: Error: Startup failed: required secrets are unavailable. SecretProviderResolutionError: Secret provider "<old-provider>" is not configured (ref: exec:<old-provider>:<key-id>).

After updating the generated auth profile to reference the new provider, secrets audit reported unresolved=0 and the gateway reached ready.
RAW_BUFFERClick to expand / collapse

Bug type

Crash (process/app exits or hangs)

Beta release blocker

No

Summary

In OpenClaw 2026.4.29, gateway startup can abort if a generated model auth profile contains a stale SecretRef provider reference, even when that provider/model is not the default routing path. A single unresolved auth-profile SecretRef caused the gateway service to repeatedly fail startup instead of degrading only the affected provider/profile.

Steps to reproduce

  1. Configure a model auth profile with an API-key SecretRef provider.
  2. Rename or remove that SecretRef provider from the main config.
  3. Leave the generated auth profile pointing at the old provider name.
  4. Restart the gateway.

Expected behavior

Gateway startup should remain available and mark only the affected auth profile/provider as unavailable, or produce a targeted degraded credential warning. Unrelated models, channels, and the control UI should not be taken offline by a stale SecretRef in a non-default model auth profile.

Actual behavior

Gateway startup failed repeatedly with a required-secrets startup error because the generated auth profile still referenced a removed SecretRef provider. The default model route was unrelated and still had valid credentials, but the whole gateway service stopped until the generated auth profile was manually updated.

OpenClaw version

2026.4.29

Operating system

Ubuntu 26.04 LTS

Install method

systemd gateway service

Model

Default model route was not the failing provider; failure came from an unrelated generated auth profile.

Provider / routing chain

SecretRef-backed model auth profile in agents/*/agent/auth-profiles.json; stale provider reference after provider rename/removal.

Additional provider/model setup details

SecretRef-backed API-key auth profile. Provider names, key IDs, paths, and account details intentionally redacted.

Logs, screenshots, and evidence

Observed startup error pattern:

[secrets] [SECRETS_RELOADER_DEGRADED] SecretProviderResolutionError: Secret provider "<old-provider>" is not configured (ref: exec:<old-provider>:<key-id>).
Gateway failed to start: Error: Startup failed: required secrets are unavailable. SecretProviderResolutionError: Secret provider "<old-provider>" is not configured (ref: exec:<old-provider>:<key-id>).

After updating the generated auth profile to reference the new provider, secrets audit reported unresolved=0 and the gateway reached ready.

Impact and severity

High reliability impact: one stale SecretRef in a non-default generated model auth profile can take down the entire gateway, including the control UI and unrelated channel/runtime access.

Additional information

This may be related to startup resolving auth-profile SecretRefs as globally required credential state. The safer behavior would be fail-closed for the affected provider/profile while keeping the gateway online when the unresolved SecretRef is not required for the selected/default model route.

extent analysis

TL;DR

Update the generated auth profile to reference the new provider name instead of the stale SecretRef provider reference to prevent gateway startup failures.

Guidance

  • Verify that the generated auth profile is updated to reference the correct provider name after renaming or removing a SecretRef provider.
  • Check the agents/*/agent/auth-profiles.json file for any stale provider references and update them accordingly.
  • Consider implementing a fail-closed behavior for affected providers/profiles instead of taking down the entire gateway service.
  • Review the startup resolving auth-profile SecretRefs to ensure they are not marked as globally required credential state.

Example

No code snippet is provided as it is not explicitly supported by the issue.

Notes

The issue seems to be related to the startup resolving auth-profile SecretRefs as globally required credential state, which may not be the intended behavior. The safer approach would be to fail-closed for the affected provider/profile while keeping the gateway online.

Recommendation

Apply a workaround by updating the generated auth profile to reference the new provider name, as this will prevent the gateway startup failures until a more permanent fix is implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Gateway startup should remain available and mark only the affected auth profile/provider as unavailable, or produce a targeted degraded credential warning. Unrelated models, channels, and the control UI should not be taken offline by a stale SecretRef in a non-default model auth profile.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix BUG: Gateway startup aborts on stale SecretRef in non-default auth profile [1 comments, 2 participants]