mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 16:36:22 +02:00
update allowed cmds
This commit is contained in:
parent
150f23ab90
commit
d4717c9015
1 changed files with 12 additions and 1 deletions
|
|
@ -4,7 +4,18 @@ import { WorkDir } from "./config.js";
|
|||
|
||||
export const SECURITY_CONFIG_PATH = path.join(WorkDir, "config", "security.json");
|
||||
|
||||
const DEFAULT_ALLOW_LIST = ["ls", "pwd", "cat", "echo", "whoami"];
|
||||
const DEFAULT_ALLOW_LIST = [
|
||||
"cat",
|
||||
"curl",
|
||||
"date",
|
||||
"echo",
|
||||
"grep",
|
||||
"jq",
|
||||
"ls",
|
||||
"pwd",
|
||||
"yq",
|
||||
"whoami"
|
||||
]
|
||||
|
||||
let cachedAllowList: string[] | null = null;
|
||||
let cachedMtimeMs: number | null = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue