fix(e2e): include MINIMAX_API_KEY in CREATE payload for byok MiniMax slugs (7c657011) #2649
Reference in New Issue
Block a user
Delete Branch "fix/7c657011-byok-staging-create-payload"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes delegation 7c657011.
Controlplane now validates BYOK model credentials at create-time (POST /workspaces) and returns MISSING_BYOK_CREDENTIAL if the vendor key is absent from the create payload for a BYOK model slug (MiniMax-M2.x). test_staging_full_saas.sh was stripping MINIMAX_API_KEY into DEFERRED_SECRETS_JSON and only writing it after the byok opt-in, which ran AFTER the create — so the create itself failed.
Repro on main SHA
15872306:Both failed with MISSING_BYOK_CREDENTIAL at POST /workspaces.
Fix: remove MINIMAX_API_KEY from BYOK_STRIP_KEYS. For the MiniMax arm this keeps the key in CREATE_SECRETS_JSON (so create-time validation passes) and leaves DEFERRED_SECRETS_JSON="" (so the deferred-write loop is a clean no-op). Matches the recent controlplane change "atomic byok create — payload vendor key satisfies the gate AND the vendor-key guard" (commit
871a156e, #2640).Non-MiniMax arms (anthropic, google, openai-hermes, platform) are unchanged: they never set MINIMAX_API_KEY in SECRETS_JSON, so removing it from the strip list is a no-op for them. MINIMAX_CN_API_KEY (separate slug path, not the failing arm) remains strip-listed.
Verify: re-run continuous-synth-e2e + staging-smoke. Both should now reach the byok-routing assertion (job 476956 / 476924).
Minimal change, single-file, no controlplane change needed.
APPROVED: 5-axis review complete on head
b5009993f9. Correctness: the change is scoped to the BYOK split list intests/e2e/test_staging_full_saas.shand only removesMINIMAX_API_KEYfromBYOK_STRIP_KEYS, letting MiniMax BYOK creates carry the vendor key inCREATE_SECRETS_JSON; non-MiniMax arms andMINIMAX_CN_API_KEYremain untouched. Robustness/tests:CI / all-requiredis green and the script comment documents the create-time gate regression. Security: no new secret exposure beyond preserving the existing MiniMax key in the create payload for the BYOK path that now requires it. Performance: no impact. Maintainability: the exception is documented at the exact split point.