cdk-ecr-deployment
cdk-ecr-deployment copied to clipboard
feat: Allow to use secret with key-value pairs
BREAKING CHANGE: API to define credentials changed
Fixes #179
Thanks for your PR, Is it ready for review?
I'll try to check this in actual environment still today that it works as expected. So trying to get it ready for review today.
Some issues that needs to be checked still with Golang, so might take a while to find time to focus on those.
@wchaws Now Lambda seemed to work as should, so I think this is ready to be reviewed. Also build works in Docker.
@wchaws Do you have had time to check this?
@wchaws how about this?
@wchaws Do you have had time to check this?
@Hi-Fi Sorry for the late reply. I was so busy for the last few months and didn't have time to review your PR until now.
Overall, your PR looks great except missing some unit test for main.go(I know it might be hard to test main.go, since main.go depends on SecretsManager).
@wchaws Do you have had time to check this?
@Hi-Fi Sorry for the late reply. I was so busy for the last few months and didn't have time to review your PR until now. Overall, your PR looks great except missing some unit test for
main.go(I know it might be hard to test main.go, sincemain.godepends on SecretsManager).
If remember correctly, I checked unit tests for that but it would require some refactoring to mock those secrets manager calls. But I can try to recheck those.
I think reflection is needed, and needs to be done also for S3 as currently main tests are skipped also due to that.
@wchaws I added testing for secretsmanager now. I didn't add mocking to existing tests that were skipped, even same approach could be used for those to mock out e.g. s3.
Hi @Hi-Fi, First, thanks for your contribution. But since this PR is blocking the sub-sequential release, I think I have to revert this commit. Besides that, I've been getting security alerts for quite some time now. Since our company mandates that these security vulnerabilities be solved, I think there are some issues with the current design. I will re-propose a new design to avoid receiving a lot of security vulnerabilities from go dependencies. The main idea is to download the skopeo cli tool directly instead of building go projects from scratch. I hope you can understand!
#222