volcano-sh / volcano-sh/agentcube
CodeInterpreter authMode default is skipped in non-warm sandbox creation
@avinxshKD is already working on this.
Since Jun 22, 2026.
- Dominant language
- Go
- Stars
- 167
- Forks
- 88
- Avg merge
- 44m
- Merged PRs (30d)
- 1
Description
authMode is documented/defaulted as picod, but the non-warm-pool CodeInterpreter path only enables auth when the field is exactly "picod".
That means an empty authMode can skip the public key check and skip PICOD_AUTH_PUBLIC_KEY injection. The warm-pool path handles this differently: anything except "none" gets the key.
Steps:
- Create/build a CodeInterpreter object with authMode omitted/empty.
- Use the normal non-warm-pool sandbox path.
- Check generated pod env.
Expected:
Empty authMode behaves like picod, and PICOD_AUTH_PUBLIC_KEY is injected.
Actual:
The direct sandbox path treats empty authMode as not picod and does not inject the key.
Fix should probably normalize authMode in one helper and use it in both warm-pool and direct sandbox paths.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.