mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-12 19:55:19 +02:00
added read commands to allowlist
This commit is contained in:
parent
3f81b771b2
commit
8351d15e63
1 changed files with 25 additions and 2 deletions
|
|
@ -6,15 +6,38 @@ import { WorkDir } from "./config.js";
|
|||
export const SECURITY_CONFIG_PATH = path.join(WorkDir, "config", "security.json");
|
||||
|
||||
const DEFAULT_ALLOW_LIST = [
|
||||
"awk",
|
||||
"basename",
|
||||
"cat",
|
||||
"cut",
|
||||
"date",
|
||||
"df",
|
||||
"diff",
|
||||
"dirname",
|
||||
"du",
|
||||
"echo",
|
||||
"env",
|
||||
"file",
|
||||
"find",
|
||||
"grep",
|
||||
"head",
|
||||
"hostname",
|
||||
"jq",
|
||||
"ls",
|
||||
"printenv",
|
||||
"pwd",
|
||||
"yq",
|
||||
"whoami"
|
||||
"readlink",
|
||||
"realpath",
|
||||
"sort",
|
||||
"stat",
|
||||
"tail",
|
||||
"tree",
|
||||
"uname",
|
||||
"uniq",
|
||||
"wc",
|
||||
"which",
|
||||
"whoami",
|
||||
"yq"
|
||||
]
|
||||
|
||||
let cachedAllowList: string[] | null = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue