mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 15:23:43 +00:00
Gateway: add SecretRef support for gateway.auth.token with auth-mode guardrails (#35094)
This commit is contained in:
@@ -202,6 +202,18 @@ function collectGatewayAssignments(params: {
|
||||
defaults: params.defaults,
|
||||
});
|
||||
if (auth) {
|
||||
collectSecretInputAssignment({
|
||||
value: auth.token,
|
||||
path: "gateway.auth.token",
|
||||
expected: "string",
|
||||
defaults: params.defaults,
|
||||
context: params.context,
|
||||
active: gatewaySurfaceStates["gateway.auth.token"].active,
|
||||
inactiveReason: gatewaySurfaceStates["gateway.auth.token"].reason,
|
||||
apply: (value) => {
|
||||
auth.token = value;
|
||||
},
|
||||
});
|
||||
collectSecretInputAssignment({
|
||||
value: auth.password,
|
||||
path: "gateway.auth.password",
|
||||
|
||||
Reference in New Issue
Block a user