mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 23:38:27 +00:00
Security: default gateway auth bootstrap and explicit mode none (#20686)
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: be1b73182c
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
This commit is contained in:
committed by
GitHub
parent
a2e846f649
commit
c5698caca3
@@ -410,7 +410,12 @@ export const OpenClawSchema = z
|
||||
auth: z
|
||||
.object({
|
||||
mode: z
|
||||
.union([z.literal("token"), z.literal("password"), z.literal("trusted-proxy")])
|
||||
.union([
|
||||
z.literal("none"),
|
||||
z.literal("token"),
|
||||
z.literal("password"),
|
||||
z.literal("trusted-proxy"),
|
||||
])
|
||||
.optional(),
|
||||
token: z.string().optional().register(sensitive),
|
||||
password: z.string().optional().register(sensitive),
|
||||
|
||||
Reference in New Issue
Block a user