Skip to content

CodeInterpreter authMode default is skipped in non-warm sandbox creation #397

Description

@avinxshKD

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:

  1. Create/build a CodeInterpreter object with authMode omitted/empty.
  2. Use the normal non-warm-pool sandbox path.
  3. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions