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

Refactor consul_session to support authentication with tokens #6755

Merged

Conversation

valeriopoggi
Copy link
Contributor

SUMMARY

Split from #6715 as per PR comments. This was originally part of #5320 by @Hakon.

Refactor consul_session module to use requests and the HTTP API due to an issue in a 3rd party lib.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

consul_session

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug integration tests/integration module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests labels Jun 20, 2023
@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Jun 20, 2023
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-7 Automatically create a backport for the stable-7 branch labels Jun 21, 2023
@valeriopoggi valeriopoggi marked this pull request as draft June 21, 2023 07:55
@ansibullbot ansibullbot added the WIP Work in progress label Jun 21, 2023
@valeriopoggi valeriopoggi marked this pull request as ready for review June 21, 2023 18:31
@ansibullbot ansibullbot removed WIP Work in progress needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Jun 21, 2023
valeriopoggi pushed a commit to valeriopoggi/community.general that referenced this pull request Jun 22, 2023
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a changelog fragment? I think this is more a new feature than a bugfix since it's basically rewriting the module. Please use a minor_changes section in the changelog fragment.

plugins/modules/consul_session.py Show resolved Hide resolved
…sts-lib-instead-of-consul.yml

Co-authored-by: Felix Fontein <felix@fontein.de>
@ansibullbot ansibullbot added needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR and removed needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Jun 28, 2023
@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot added merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels Jun 29, 2023
@ansibullbot ansibullbot removed merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels Jun 29, 2023
@felixfontein
Copy link
Collaborator

If nobody objects (and assuming that CI passes), I'll merge this by the end of this week.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Jul 7, 2023
@felixfontein felixfontein merged commit 242258e into ansible-collections:main Jul 7, 2023
176 checks passed
@patchback
Copy link

patchback bot commented Jul 7, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/242258eb53f680572b20413e8c888a8db9beb8c8/pr-6755

Backported as #6879

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jul 7, 2023
* Split into separate PR

* Refactor test, add author to inactive maintainers

* Add changelog fragment and correct requirements section on module documentation

* Add changelog fragment and correct requirements section on module documentation

* Update changelogs/fragments/6755-refactor-consul-session-to-use-requests-lib-instead-of-consul.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Valerio Poggi <vrpoggigmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 242258e)
@felixfontein
Copy link
Collaborator

@valeriopoggi @Hakon thank you very much for your contribution!
@mattclay thanks for weighting in!

felixfontein pushed a commit that referenced this pull request Jul 7, 2023
…port authentication with tokens (#6879)

Refactor consul_session to support authentication with tokens (#6755)

* Split into separate PR

* Refactor test, add author to inactive maintainers

* Add changelog fragment and correct requirements section on module documentation

* Add changelog fragment and correct requirements section on module documentation

* Update changelogs/fragments/6755-refactor-consul-session-to-use-requests-lib-instead-of-consul.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Valerio Poggi <vrpoggigmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 242258e)

Co-authored-by: Valerio Poggi <106782233+valeriopoggi@users.noreply.github.com>
@valeriopoggi valeriopoggi deleted the update-consul-session branch July 12, 2023 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7 Automatically create a backport for the stable-7 branch bug This issue/PR relates to a bug integration tests/integration module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants