Open mtucker502 opened 1 year ago
Hi @betodealmeida , is there any update on this or a workaround to use a private key without password?
Issue is on line 373, since if password
doesn't exists (null
), it can't be encoded.
However serialization.load_pem_private_key
accepts password null values (Optional[bytes]
)
def load_pem_private_key(
data: bytes, password: typing.Optional[bytes], backend=None
) -> _PRIVATE_KEY_TYPES:
backend = _get_backend(backend)
return backend.load_pem_private_key(data, password)
Any update on this issue?
Tempted to close this as stale... and I swear this has been reported elsewhere, but giving a ping to @villebro as well, who might have run into this situation.
I hit this same issue this morning
The snowflake connector requires a passphrase.
How to reproduce the bug
Configure new database connection with the URI
snowflake://{user}:{password}@{account}.{region}/{database}
Add security extra:
Click Finish
See error
Expected results
The connection should work successfully.
Actual results
Error
An error occurred while creating databases: 'privatekey_pass'
appears.Environment
(please complete the following information):
Superset 0.0.0-dev
(Python 3.8.16
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
Here are other possible configurations and their errors:
Error:
An error occurred while creating databases: Password was given but private key is not encrypted.
Error:
ERROR: 'NoneType' object has no attribute 'encode'
Solution(s)
Add logic to accept private key as is if no passphrase is provided.