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

fix: remove leading / from SSM parameter names in policy ARNs #1146

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

Kqirk
Copy link
Contributor

@Kqirk Kqirk commented Jul 10, 2024

Description

Using SSM parameter hierarchies (as described in https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-hierarchies.html) results in an error. See #1128

Several workarounds exist, but using trimprefix makes them superfluous. Having a / as first character results in the above mentioned error.

Verification

Checked the ARN of parameter /test/test. It showed up as arn:aws:ssm:eu-central-1:123456789012:parameter/test/test in the console. So no // at first place.

Copy link
Contributor

Hey @Kqirk! 👋

Thank you for your contribution to the project. Please refer to the contribution rules for a quick overview of the process.

Make sure that this PR clearly explains:

  • the problem being solved
  • the best way a reviewer and you can test your changes

With submitting this PR you confirm that you hold the rights of the code added and agree that it will published under this LICENSE.

The following ChatOps commands are supported:

  • /help: notifies a maintainer to help you out

Simply add a comment with the command in the first line. If you need to pass more information, separate it with a blank line from the command.

This message was generated automatically. You are welcome to improve it.

@Kqirk Kqirk force-pushed the add-support-ssm-hierarchy branch from ce09ee5 to f9ea0dd Compare July 10, 2024 04:16
@Kqirk Kqirk changed the title feat: Add support for parameter store hierarchy feat: add support for parameter store hierarchy Jul 10, 2024
@Kqirk Kqirk changed the title feat: add support for parameter store hierarchy fix: add support for parameter store hierarchy Jul 10, 2024
@kayman-mk kayman-mk changed the title fix: add support for parameter store hierarchy fix: remove leading / from SSM parameter names in policy ARNs Jul 22, 2024
Copy link
Collaborator

@kayman-mk kayman-mk left a comment

Choose a reason for hiding this comment

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

Thanks for adding this fix to the project and getting rid of all the workarounds.

@kayman-mk kayman-mk merged commit beea51d into cattle-ops:main Jul 22, 2024
19 checks passed
kayman-mk pushed a commit that referenced this pull request Jul 24, 2024
🤖 I have created a release *beep* *boop*
---


##
[7.9.0](7.8.0...7.9.0)
(2024-07-22)


### Features

* add support for configuring runner worker root device name
([#1140](#1140))
([a1f8266](a1f8266))


### Bug Fixes

* increase timeout for EC2 termination lambda
([#1156](#1156))
([2bf6d3d](2bf6d3d))
* remove leading `/` from SSM parameter names in policy ARNs
([#1146](#1146))
([beea51d](beea51d))
* use existing Runner package for Amazon Linux 2023 as default
([#1155](#1155))
([c001183](c001183))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: cattle-ops-releaser-2[bot] <134548870+cattle-ops-releaser-2[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants