Prebuilt snowflake config cannot use key-pair authentication

Author: RyutoYodaCreated Sep 21, 2026Updated Sep 29, 2026
Labelstype: questionpriority: p1

internal/prebuiltconfigs/tools/snowflake.yaml hardcodes password: ${SNOWFLAKE_PASSWORD}, so --prebuilt snowflake can only ever use password authentication.

With key-pair authentication added in #4088, a user who has a private key but no password cannot use the prebuilt config: the source requires exactly one of password, privateKey or privateKeyPath, and YAML has no way to pick a branch based on which environment variables are set.

I do not think this can be solved in the YAML alone. Some options:

  1. Treat an unset ${...} as absent, so a config may list both password and privateKeyPath and only the one that resolves is used. This is a change in environment-variable substitution semantics and affects every prebuilt config, not just Snowflake.
  2. Ship a second prebuilt config (e.g. snowflake-keypair).
  3. Leave the prebuilt config on password authentication and document that key-pair users need their own tools file.

Happy to send a PR once there is a preferred direction — option 1 is the nicest for users but is the one with the widest blast radius, so it needs a maintainer's call first.