Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Fix secrets generate issues when the type is aws-ssm #499

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

ZeljkoBenovic
Copy link
Contributor

Description

This PR fixes some issues that were overlooked in CLI refactor.
It fixes the issue with secrets generate command when the type is aws-ssm.
Removes some required flags, as they already have default values.
Fixes the Extra: field in SecretsManagerConfig , which was initialized with nil.

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have added the relevant labels
  • I have updated the official documentation
  • I have added sufficient documentation in code

Testing

  • I have tested this code with the official test suite
  • I have tested this code manually

Manual tests

Generate secretsManagerConfig.json file by running
go run . secrets generate --type aws-ssm --extra region=eu-central-1,ssm-parameter-path=/polygon-edge/nodes --name node1
and use the file to store init secrets in AWS SSM
go run . secrets init --config secretsManagerConfig.json

Confirmed working by inspecting AWS SSM in web console.

* removed mandatory flags from secrets cmd ( only name required )
* fixed Extra field issue
* added timeout 2min. to linter
Copy link
Contributor

@zivkovicmilos zivkovicmilos left a comment

Choose a reason for hiding this comment

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

Looks great 💯

Left a minor comment 🙏

@zivkovicmilos zivkovicmilos added the bug fix Functionality that fixes a bug label Apr 13, 2022
@ZeljkoBenovic ZeljkoBenovic merged commit a61e392 into develop Apr 14, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2022
@zivkovicmilos zivkovicmilos deleted the fix/aws-ssm branch April 15, 2022 21:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fix Functionality that fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants