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

Security group rule description not validated #1471

Closed
j-boivie opened this issue Apr 15, 2020 · 1 comment · Fixed by #1476
Closed

Security group rule description not validated #1471

j-boivie opened this issue Apr 15, 2020 · 1 comment · Fixed by #1476
Labels
good first issue Good for newcomers

Comments

@j-boivie
Copy link

cfn-lint version: cfn-lint 0.29.5

I came across a small problem similar to the issue described in #173. Security group rule descriptions have some constraints on characters/length allowed (docs) and it seems like these are not being checked by cfn-lint.

The following snippet will be accepted by cfn-lint but cause an issue during deployment:

LbSecurityGroup:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: Load Balancer SG
      VpcId: !Ref VPC
      SecurityGroupIngress:
        - Description: -> doesn't work
          CidrIp: 0.0.0.0/0
          FromPort: 80
          ToPort: 80

Which would result in this:
Invalid rule description. Valid descriptions are strings less than 256 characters from the following set: a-zA-Z0-9. _-:/()#,@[]+=&;{}!$*

Unsure if this also applies when using Ingress rule resource AWS::EC2::SecurityGroupIngress as there is no similar constraint in the docs.

Thanks!

@PatMyron PatMyron added the good first issue Good for newcomers label Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants