-
Notifications
You must be signed in to change notification settings - Fork 163
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
Bug: Malformed condition causes module type registration to hang #660
Comments
Recommend trying the CloudFormation Linter in VSCode to see some of these errors inline while authoring templates along with autocompletion and documentation links:
Hasn't been released to PyPI yet, but #644 should call these out during module validation |
I appreciate the advice on utilizing CloudFormation Linter to avoid this issue, but I would still like to understand why a malformed template would cause the Thinking from a security perspective, I could imagine an attack where someone calls register type with a no-op module that undoes everything provisioned, deletes all previous versions, then locks the resource name by calling |
Hey @travbale, thank you for reporting this! I tried to reproduce using your fragment in JSON and got a failure right away:
|
I will attempt to reproduce myself and if I am able to will share more detailed steps. Will report back with my findings and thank you for taking a look. |
Hey @travbale any updates on the steps to reproduce? It may have been a temporary issue in one of our services or something that was already fixed. So, if we can't reproduce it now, I would close this issue. |
Yep happy to close. I have not been able to make it happen since. |
I tried making a simple module which had a typo in the condition section. When I ran validate it passed but when I went to submit the module the registration hung for a few hours before failing.
Template Fragment that triggers the Error (in YAML for readability actual template was in JSON)
During registration the process hangs. Inspecting the registration token via
describe-type-registration
yields the following:It seems that this template has caused the
VALIDATION_STAGE
to hang in some manner.This locks out updating the module for several hours until it fails.
The text was updated successfully, but these errors were encountered: