Skip to content

refactor: dont start supervisor when migrating db - #220

Merged
es3n1n merged 1 commit into
mainfrom
es3n1n/dont-start-supervisor
Aug 19, 2026
Merged

refactor: dont start supervisor when migrating db#220
es3n1n merged 1 commit into
mainfrom
es3n1n/dont-start-supervisor

Conversation

@es3n1n

@es3n1n es3n1n commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

resolves #180


Open in Devin Review

@es3n1n es3n1n self-assigned this Aug 19, 2026
@es3n1n
es3n1n requested a review from jktrn as a code owner August 19, 2026 15:37
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rctf with  Cloudflare Pages  Cloudflare Pages

Latest commit: 92b40f4
Status: ✅  Deploy successful!
Preview URL: https://4270490a.rctf-new.pages.dev
Branch Preview URL: https://es3n1n-dont-start-supervisor.rctf-new.pages.dev

View logs

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 1 additional finding in Devin Review.

Open in Devin Review

Comment on lines +16 to +33
run: ({ args }) => {
let value: unknown = config
for (const key of args.path.split('.')) {
if (value === null || typeof value !== 'object') {
value = undefined
break
}
value = (value as Record<string, unknown>)[key]
}

if (value === undefined) {
console.error(`No config value at '${args.path}'`)
process.exit(1)
}

const output = typeof value === 'string' ? value : JSON.stringify(value)
process.stdout.write(`${output}\n`)
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟨 New CLI command can print secret configuration values to stdout

The new config get command prints any resolved configuration value at an arbitrary dot path, including secret material such as tokenKey, database/redis passwords, provider API keys, and CTFtime client secrets (apps/cli/src/commands/config/get.ts:16-32). Anyone able to run the CLI (e.g. docker exec rctf-rctf-1 rctf config get tokenKey) or a script that logs its output can trivially dump signing keys and credentials.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well yeah that's intended. i don't think this gives any decent primitives if you exploited something though, because instead of calling the cli you can just directly read configs/envs

@es3n1n
es3n1n merged commit 1f12636 into main Aug 19, 2026
19 checks passed
@es3n1n
es3n1n deleted the es3n1n/dont-start-supervisor branch August 19, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

don't start supervisor in some cases

1 participant