Skip to main content

Crate faucet_common_snowflake

Crate faucet_common_snowflake 

Source
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 the Authorization header value the Snowflake SQL REST API expects (JWT for KeyPair, Snowflake Token=... for OAuth).
  • snowflake_token_type — the matching X-Snowflake-Authorization-Token-Type header value (KEYPAIR_JWT for KeyPair, OAUTH for OAuth).

SnowflakeAuth derives Serialize, Deserialize, and JsonSchema so it round-trips through YAML/JSON configs and CLI introspection. Its Debug impl masks credentials as "***".

Enums§

SnowflakeAuth
Authentication method for Snowflake.

Functions§

authorization_header
Build the Authorization header value for a Snowflake SQL REST API request.
credential_to_auth
Map a faucet_core::Credential yielded by a shared faucet_core::AuthProvider onto SnowflakeAuth.
snowflake_token_type
The X-Snowflake-Authorization-Token-Type header value that pairs with the Authorization header produced by authorization_header.