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

[PR #1333/5097a76d backport][stable-4] secretsmanager_secret - Support adding JSON #1342

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Jul 10, 2022

This is a backport of PR #1333 as merged into main (5097a76).

SUMMARY

fixes: #656

Amazon supports passing JSON in as the secret as a mechanism for storing and retreiving more complex structures.

While in theory it's possible to pass JSON in as a string to secretsmanager_secret. However, because Ansible often does funky things with when templated strings are passed to a parameter (#656) it's non-trivial to pass JSON into secretsmanager_secret.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

secretsmanager_secret

ADDITIONAL INFORMATION

Backstory:

If Ansible sees {{ }} within a string it'll trigger the safe_eval handlers, automatically converting the JSON into a complex structure of lists/dicts, which is then converted to the python string representation of the complex structures - the python string representation is not valid JSON and breaks the AWS integration.

secretsmanager_secret - Support adding JSON

SUMMARY
fixes: #656
Amazon supports passing JSON in as the secret as a mechanism for storing and retreiving more complex structures.
While in theory it's possible to pass JSON in as a string to secretsmanager_secret.  However, because Ansible often does funky things with when templated strings are passed to a parameter (#656) it's non-trivial to pass JSON into secretsmanager_secret.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
secretsmanager_secret
ADDITIONAL INFORMATION
Backstory:
If Ansible sees {{ }} within a string it'll trigger the safe_eval handlers, automatically converting the JSON into a complex structure of lists/dicts, which is then converted to the python string representation of the complex structures - the python string representation is not valid JSON and breaks the AWS integration.

Reviewed-by: Joseph Torcasso <None>
(cherry picked from commit 5097a76)
@ansibullbot
Copy link

@ansibullbot ansibullbot added community_review feature This issue/PR relates to a feature request integration tests/integration module module needs_triage new_contributor Help guide this first time contributor new_module New module new_plugin New plugin plugins plugin (any type) tests tests labels Jul 10, 2022
@github-actions
Copy link

github-actions bot commented Jul 10, 2022

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 15s
✔️ build-ansible-collection SUCCESS in 5m 04s
✔️ ansible-test-sanity-docker-devel SUCCESS in 10m 46s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 12m 08s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 11m 07s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 10m 17s
✔️ ansible-test-units-community-aws-python38 SUCCESS in 6m 58s
✔️ ansible-test-units-community-aws-python39 SUCCESS in 6m 13s
✔️ ansible-test-splitter SUCCESS in 2m 29s
✔️ integration-community.aws-1 SUCCESS in 6m 01s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Jul 10, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 3m 50s
✔️ build-ansible-collection SUCCESS in 5m 46s
✔️ ansible-test-sanity-docker-devel SUCCESS in 9m 09s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 14m 28s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 9m 48s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 11m 20s
✔️ ansible-test-units-community-aws-python38 SUCCESS in 6m 02s
✔️ ansible-test-units-community-aws-python39 SUCCESS in 5m 43s
✔️ ansible-test-splitter SUCCESS in 2m 31s
✔️ integration-community.aws-1 SUCCESS in 6m 06s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit e4c02c9 into stable-4 Jul 10, 2022
@softwarefactory-project-zuul softwarefactory-project-zuul bot deleted the patchback/backports/stable-4/5097a76d9f18545172e394f3b846171e893926ad/pr-1333 branch July 10, 2022 08:56
abikouo pushed a commit to abikouo/community.aws that referenced this pull request Oct 24, 2023
[6.0.0] Bump botocore requirements

SUMMARY
In line with our botocore version policy bump the minimum requirements

Starting with the 2.0.0 releases of amazon.aws and community.aws, it is generally the collection's policy to
support the versions of botocore and boto3 that were released 12 months prior to the most recent major
collection release, following semantic versioning (for example, 2.0.0, 3.0.0).

ISSUE TYPE

Feature Pull Request

COMPONENT NAME
plugins/module_utils/botocore.py
requirements.txt
ADDITIONAL INFORMATION
Based on a target release date for 6.0.0 of late April I've bumped this to botocore 1.25.0
boto3 - 1.22.0 - "Mon Apr 25 18:07:20 2022 +0000"
botocore - 1.25.0 - "Mon Apr 25 18:07:02 2022 +0000"

Reviewed-by: Alina Buzachis
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 integration tests/integration mergeit Merge the PR (SoftwareFactory) module module needs_triage new_contributor Help guide this first time contributor new_module New module new_plugin New plugin plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants