#[non_exhaustive]pub struct DuckDbSecretInfo {
pub name: String,
pub secret_type: String,
pub provider: String,
pub persistent: bool,
pub storage: String,
pub scope: Vec<String>,
pub secret_string: String,
}Expand description
Metadata about one secret the user has configured in DuckDB.
Not a SecretEntry: DuckDB hands out no credential as such.
secret_string is DuckDB’s own rendering, with the fields the secret
type declares sensitive replaced by redacted — which can still leave
credentials in it (see list_duckdb_secrets). Debug therefore prints
its length, not its text.
Returned by list_duckdb_secrets.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe secret’s name, as given to CREATE SECRET.
secret_type: StringThe secret type — s3, http, azure, and so on.
provider: StringThe provider that supplied it (config, credential_chain, …).
persistent: boolWhether the secret is persisted rather than session-scoped.
storage: StringWhere a persistent secret is stored.
scope: Vec<String>The URI prefixes the secret applies to, e.g. s3://bucket/.
secret_string: StringDuckDB’s own rendering of the secret, with the fields its type
declares sensitive redacted. It can still contain credentials (an
http secret’s extra_http_headers up to DuckDB 1.5.x, for one), so
do not log it.
Trait Implementations§
Source§impl Clone for DuckDbSecretInfo
impl Clone for DuckDbSecretInfo
Source§fn clone(&self) -> DuckDbSecretInfo
fn clone(&self) -> DuckDbSecretInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more