Skip to content
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

jenkins_job - added validate_certs parameter, setting the PYTHONHTTPSVERIFY env var #1977

Merged
merged 4 commits into from
Mar 11, 2021
Merged

Conversation

russoz
Copy link
Collaborator

@russoz russoz commented Mar 7, 2021

SUMMARY

Adds a validate_certs parameter, with default to True, that can be used to disable the validation of SSL/TLS certificates when contacting the Jenkins server. Under the hood this translates into setting the environment variable PYTHONHTTPSVERIFY=0 as described in #255 .

Fixes: #255

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/modules/web_infrastructure/jenkins_job.py

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added affects_2.10 community_review feature This issue/PR relates to a feature request module module needs_triage plugins plugin (any type) web_infrastructure labels Mar 7, 2021
@Andersson007
Copy link
Contributor

@russoz does this PR allow to change the default behavior, so nothing will break down for current users?

@russoz
Copy link
Collaborator Author

russoz commented Mar 9, 2021

@Andersson007 yep, default behaviour remains the same (that would be the default validate_certs: yes).

@felixfontein felixfontein added backport-2 check-before-release PR will be looked at again shortly before release and merged if possible. labels Mar 11, 2021
@felixfontein felixfontein merged commit 7452a53 into ansible-collections:main Mar 11, 2021
patchback bot pushed a commit that referenced this pull request Mar 11, 2021
…VERIFY env var (#1977)

* added validate_certs parameter, setting the PYTHONHTTPSVERIFY env var

* added changelog fragment

* Update plugins/modules/web_infrastructure/jenkins_job.py

Co-authored-by: Felix Fontein <[email protected]>

* Update plugins/modules/web_infrastructure/jenkins_job.py

Co-authored-by: Felix Fontein <[email protected]>

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 7452a53)
@felixfontein
Copy link
Collaborator

@russoz thanks for this contribution!
@Andersson007 thanks for reviewing!

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Mar 11, 2021
@russoz russoz deleted the 255-jenkins-job-ssl branch March 11, 2021 22:53
felixfontein pushed a commit that referenced this pull request Mar 12, 2021
…VERIFY env var (#1977) (#1996)

* added validate_certs parameter, setting the PYTHONHTTPSVERIFY env var

* added changelog fragment

* Update plugins/modules/web_infrastructure/jenkins_job.py

Co-authored-by: Felix Fontein <[email protected]>

* Update plugins/modules/web_infrastructure/jenkins_job.py

Co-authored-by: Felix Fontein <[email protected]>

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 7452a53)

Co-authored-by: Alexei Znamensky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_review feature This issue/PR relates to a feature request has_issue module module plugins plugin (any type) web_infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document setting PYTHONHTTPSVERIFY to 0 for disabling SSL validation in the jenkins_job module
4 participants