Skip to content

Implement security policy validator for real#393

Merged
nicksardo merged 1 commit intokubernetes:masterfrom
MrHohn:security-policy-checkresponse
Jul 11, 2018
Merged

Implement security policy validator for real#393
nicksardo merged 1 commit intokubernetes:masterfrom
MrHohn:security-policy-checkresponse

Conversation

@MrHohn
Copy link
Copy Markdown
Member

@MrHohn MrHohn commented Jul 11, 2018

This PR teaches security policy validator to actually check for response's status code.
/assign @rramkumar1 @bowei

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 11, 2018
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: "unrecognized"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks, fixed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What was the purpose for this change?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

During the test I found we are saving the same pointer for path.Backend in this for loop because path is defined in the init statement.

Ref https://golang.org/ref/spec#For_statements: "Variables declared by the init statement are re-used in each iteration."

@MrHohn MrHohn force-pushed the security-policy-checkresponse branch from 50dbb92 to 9f87dd1 Compare July 11, 2018 22:24
@rramkumar1
Copy link
Copy Markdown
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 11, 2018
@nicksardo nicksardo merged commit 2facce1 into kubernetes:master Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants