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

Missing input validation on security groups #705

Closed
rosenhouse opened this issue Oct 26, 2016 · 2 comments
Closed

Missing input validation on security groups #705

rosenhouse opened this issue Oct 26, 2016 · 2 comments

Comments

@rosenhouse
Copy link
Contributor

Thanks for submitting an issue to cloud_controller_ng. We are always trying to improve! To help us, please fill out the following template.

Issue

It is possible for an admin to create and bind a security group that is syntactically invalid.

Context

If a destination field is empty, no error is thrown. The rule gets applied to applications, and Diego components then log errors and refuse to start the app.

Steps to Reproduce

Create a file containing this JSON

    [
        {
            "destination": "10.10.5.68",
            "ports": "60002",
            "protocol": "tcp"
        },
        {
            "destination": "",
            "ports": "8080",
            "protocol": "tcp"
        }
    ]

Then run

cf create-security-group bad-group /tmp/bad-sec-group.json

Observe that the command succeeds:

Creating security group bad-group as admin
OK

Expected result

I expect an error, perhaps from the CLI, but definitely from the CC API.

cc: @jaydunk

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/133208349

The labels on this github issue will be updated when the story is started.

luan pushed a commit that referenced this issue Dec 7, 2016
[GH #705]
[Finishes #133208349]

Signed-off-by: Luan Santos <lsantos@pivotal.io>
@SocalNick
Copy link
Contributor

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

No branches or pull requests

3 participants