You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched Google & GitHub for similar requests and couldn't find anything
I have read and followed the docs and still think this feature is missing
Description
Hi. Is it possible for PostgresDsn to partially behave as a SecretStr for password part? Otherwise I have to pick SecretStr instead. I guess RedisDsn is the same.
This looks like a simple feature, but a few questions arise:
Should this be a separate type, for example SecretXXXDsn, or should it be implemented as a constraint?
Which method should return the "revealed" content, similar to SecretStr – maybe secret_encoded_string, or should we stick with encoded_string?
Should the build and/or __init__ methods also accept a SecretStr as an additional input in that case?
Should only the password be masked with asterisks, or the host(s), or the entire URI, ?
Initial Checks
Description
Hi. Is it possible for PostgresDsn to partially behave as a SecretStr for password part? Otherwise I have to pick SecretStr instead. I guess RedisDsn is the same.
Affected Components
.model_dump()
and.model_dump_json()
model_construct()
, pickling, private attributes, ORM modeThe text was updated successfully, but these errors were encountered: