Expand description
§faucet-common-snowflake
Shared configuration types and helpers for the
faucet-stream
Snowflake source and sink connectors.
SnowflakeAuth— JWT key-pair or OAuth bearer authentication.authorization_header— produces theAuthorizationheader value the Snowflake SQL REST API expects (JWT forKeyPair,Snowflake Token=...forOAuth).snowflake_token_type— the matchingX-Snowflake-Authorization-Token-Typeheader value (KEYPAIR_JWTforKeyPair,OAUTHforOAuth).
SnowflakeAuth derives Serialize, Deserialize, and JsonSchema so it
round-trips through YAML/JSON configs and CLI introspection. Its Debug
impl masks credentials as "***".
Enums§
- Snowflake
Auth - Authentication method for Snowflake.
Functions§
- authorization_
header - Build the
Authorizationheader value for a Snowflake SQL REST API request. - credential_
to_ auth - Map a
faucet_core::Credentialyielded by a sharedfaucet_core::AuthProviderontoSnowflakeAuth. - snowflake_
token_ type - The
X-Snowflake-Authorization-Token-Typeheader value that pairs with theAuthorizationheader produced byauthorization_header.