Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/api/utils/configAllowlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@
* can be read or written via the API.
*/

export const SAFE_CONFIG_KEYS = new Set(['ai', 'welcome', 'spam', 'moderation', 'triage']);
export const SAFE_CONFIG_KEYS = new Set([
'ai',
'welcome',
'spam',
'moderation',
'triage',
'starboard',
'permissions',
'memory',
]);

export const READABLE_CONFIG_KEYS = [...SAFE_CONFIG_KEYS, 'logging', 'memory', 'permissions'];
export const READABLE_CONFIG_KEYS = [...SAFE_CONFIG_KEYS, 'logging'];

/**
* Dot-notation paths to config values that contain secrets (e.g. API keys).
Expand Down
Loading
Loading