-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix an issue that crashes Airflow Webserver when passed invalid private key path to Snowflake #32016
Conversation
Needs conflict resolving. |
) | ||
if private_key_file_path.stat().st_size > 4096: | ||
raise ValueError( | ||
"File size of private_key_file is too big." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"File size of private_key_file is too big." | |
"The private_key_file size is too big. Please keep it less than 4 KB" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also add a note in the docs about the size limitation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What documentation do you suggest putting it to? The limitations is applied to the connection settings. I coulad add a note to the operator docs.
conflicts :( |
Co-authored-by: xrmr <17521278+xrmr@users.noreply.github.com>
Needs conflict resolving @bjankie1 |
Passing path on an excessively large file or path to a system device crashes Webserver. This fix validates the path against such situations.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.