[ 
https://issues.apache.org/jira/browse/AIRFLOW-2421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16815379#comment-16815379
 ] 

ASF subversion and git services commented on AIRFLOW-2421:
----------------------------------------------------------

Commit 8ed8346c18d705ac60d435e1cfb67131c5b18ff8 in airflow's branch 
refs/heads/master from OmerJog
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=8ed8346 ]

[AIRFLOW-2421] HTTPHook verifies HTTPS certificats by default (#4855)

Change the default value of verify from False to True


> HTTPHook and SimpleHTTPOperator do not verify certificates by default
> ---------------------------------------------------------------------
>
>                 Key: AIRFLOW-2421
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2421
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: hooks, security
>    Affects Versions: 1.8.0
>            Reporter: David Adrian
>            Priority: Major
>             Fix For: 2.0.0
>
>
> To verify HTTPS certificates when using anything built with an HTTP hook, you 
> have to explicitly pass the undocumented {{extra_options = \{"verify": True} 
> }}. The offending line is at 
> https://github.com/apache/incubator-airflow/blob/master/airflow/hooks/http_hook.py#L103.
> {code}
> response = session.send(
>     <snip>
>     verify=extra_options.get("verify", False),
>     <snip>
> )
> {code}
> Not only is this the opposite default of what is expected, the necessary 
> requirements to verify certificates (e.g certifi), are already installed as 
> part of Airflow. I haven't dug through all of the code yet, but I'm concerned 
> that any other connections, operators or hooks built using HTTP hook don't 
> pass this option in.
> Instead, the HTTP hook should default to {{verify=True}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to