You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Maria Rebelka (JIRA)" <ji...@apache.org> on 2019/01/06 12:19:00 UTC

[jira] [Created] (AIRFLOW-3639) Jenkins Operator does not set up "Authorization" header correctly

Maria Rebelka created AIRFLOW-3639:
--------------------------------------

             Summary: Jenkins Operator does not set up "Authorization" header correctly
                 Key: AIRFLOW-3639
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3639
             Project: Apache Airflow
          Issue Type: Bug
          Components: contrib, operators
    Affects Versions: 1.10.1
            Reporter: Maria Rebelka
            Assignee: Maria Rebelka


When working with Jenkins with security enabled, auth header is missing and Jenkins rejects the request.

In Jenkins operator, function jenkins_request_with_headers creates request manually, and authentication mechanism against Jenkins server never initialised, resulting jenkins_server.auth being 'None'.


{code:python}
if jenkins_server.auth:
            req.add_header('Authorization', jenkins_server.auth)
{code}




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