Constantino Schillebeeckx
10/07/2024, 9:36 PMfrom pydantic.v1 import SecretStr
as an input arg type to my flow I"m getting:
pydantic.errors.PydanticUserError: The `__modify_schema__` method is not supported in Pydantic v2. Use `__get_pydantic_json_schema__` instead in class `SecretStr`.
Looks like this use case was called out here, but never implemented. Should I file a bug?Nate
10/07/2024, 10:04 PMConstantino Schillebeeckx
10/07/2024, 10:04 PMConstantino Schillebeeckx
10/07/2024, 10:05 PMNate
10/07/2024, 10:06 PMSecretStr
doesn't actually hide anything (except visually in the UI), so practically speaking you can likely replace that param type with str
or the name of a Secret
block to unblock yourselfConstantino Schillebeeckx
10/07/2024, 10:08 PMNate
10/07/2024, 10:09 PMSecretStr
is just a python type, it doesnt stop the secret from going over the wire raw) and instead store your secret in a Secret
block that is actually encrypted and then you never have to worry about it being in the UI, and just pass the name of that block as the param
but that said, I will look into this typing issueConstantino Schillebeeckx
10/07/2024, 10:10 PMNate
10/07/2024, 10:11 PMConstantino Schillebeeckx
10/07/2024, 10:11 PMNate
10/07/2024, 10:11 PMConstantino Schillebeeckx
10/07/2024, 10:12 PMNate
10/07/2024, 10:13 PMAwsCredentials
empty, as it will scoop the details as boto would if your runtime is already authedConstantino Schillebeeckx
10/07/2024, 10:15 PMNate
10/07/2024, 10:15 PMConstantino Schillebeeckx
10/07/2024, 10:16 PMSecretStr
Constantino Schillebeeckx
10/07/2024, 10:21 PMSecretStr
Nate
10/07/2024, 10:27 PMSecretStr
from the v1
backport in the first place? (if you have v2 installed)Constantino Schillebeeckx
10/07/2024, 10:33 PMJobTaskSettings
is a pydantic v1 object (source)
⢠therefore databricks_token must also be a v1 objectConstantino Schillebeeckx
10/07/2024, 10:34 PMNate
10/07/2024, 11:59 PMdbricks_flow.with_options(validate_parameters=False)(**kwargs)
right?Constantino Schillebeeckx
10/08/2024, 12:02 AMNate
10/08/2024, 1:05 AMv1.SecretStr
in 2.xConstantino Schillebeeckx
10/08/2024, 1:16 PM