mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 18:28:26 +00:00
feat(secrets): allow opt-in symlink exec command paths
This commit is contained in:
committed by
Peter Steinberger
parent
06290b49b2
commit
f46b9c996f
@@ -90,6 +90,12 @@ function isSecretProviderConfigShape(value: unknown): value is SecretProviderCon
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
if (value.allowInsecurePath !== undefined && typeof value.allowInsecurePath !== "boolean") {
|
||||
return false;
|
||||
}
|
||||
if (value.allowSymlinkCommand !== undefined && typeof value.allowSymlinkCommand !== "boolean") {
|
||||
return false;
|
||||
}
|
||||
if (value.env !== undefined) {
|
||||
if (!isObjectRecord(value.env)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user