openclaw - 💡(How to fix) Fix [Feature]: Non-interactive onboarding support for trusted-proxy gateway auth [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#73638Fetched 2026-04-29 06:17:07
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
subscribed ×4commented ×1cross-referenced ×1

The `onboard` command cannot configure `trusted-proxy` gateway auth non-interactively, blocking automated and scripted deployments behind a reverse proxy.

Root Cause

The `onboard` command cannot configure `trusted-proxy` gateway auth non-interactively, blocking automated and scripted deployments behind a reverse proxy.

RAW_BUFFERClick to expand / collapse

Summary

The `onboard` command cannot configure `trusted-proxy` gateway auth non-interactively, blocking automated and scripted deployments behind a reverse proxy.

Problem to solve

The `onboard` command supports non-interactive setup for `token` and `password` gateway auth via flags like `--gateway-auth`, `--gateway-token`, and `--gateway-password`. However, `trusted-proxy` auth has no equivalent — it cannot even be selected via `--gateway-auth trusted-proxy`.

Users deploying OpenClaw behind a reverse proxy (nginx, Caddy, Traefik, etc.) in Docker, Kubernetes, or any scripted provisioning flow must either fall back to interactive setup or manually edit the config file after the fact. The manual edit path is itself unreliable: the config schema is not stable, so writing trusted-proxy fields directly into the config file risks silently breaking across upgrades. This makes `onboard --non-interactive` the only viable automation path — and it doesn't support this auth mode.

Alternatives considered

  • Manual post-setup config edit: Requires knowing the exact schema, is fragile, and breaks automation repeatability.
  • Interactive mode only: Not viable for Docker/CI deployments where stdin is not a TTY.
  • Plugin: Trusted-proxy auth is a core security primitive tied to the gateway; it's already implemented at runtime — the gap is only the onboarding CLI surface.

Impact

  • Affected users/systems: Operators deploying OpenClaw behind a reverse proxy in scripted/automated environments.
  • Severity: Blocks workflow — there is no non-interactive path to a working trusted-proxy configuration.
  • Frequency: Every new deployment using trusted-proxy auth.
  • Consequence: Operators must manually edit config post-setup or run interactively, defeating `--non-interactive`.

Evidence/examples

Trusted-proxy auth is fully functional at runtime (`gateway.auth.mode: trusted-proxy` exists in the config schema). The `token` and `password` modes demonstrate what non-interactive parity looks like. The only gap is the CLI onboarding surface.

extent analysis

TL;DR

Add a --gateway-auth trusted-proxy flag to the onboard command to enable non-interactive setup for trusted-proxy gateway auth.

Guidance

  • Investigate the onboard command's code to determine why --gateway-auth trusted-proxy is not currently supported.
  • Consider adding a new flag, such as --trusted-proxy, to specifically enable trusted-proxy auth in non-interactive mode.
  • Review the config schema to ensure that the trusted-proxy fields are stable and can be safely written to the config file.
  • Test the updated onboard command with the new flag to verify that it correctly configures trusted-proxy auth in non-interactive mode.

Example

onboard --non-interactive --gateway-auth trusted-proxy

This example assumes that the --gateway-auth trusted-proxy flag is added to the onboard command.

Notes

The solution may require updates to the onboard command's code and the config schema. Additionally, the trusted-proxy fields in the config file should be reviewed to ensure they are stable and compatible with future upgrades.

Recommendation

Apply a workaround by adding a new flag to the onboard command, such as --trusted-proxy, to enable non-interactive setup for trusted-proxy gateway auth. This allows for automated deployments behind a reverse proxy without requiring manual config edits.

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…

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 [Feature]: Non-interactive onboarding support for trusted-proxy gateway auth [1 comments, 2 participants]