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

csi: check for empty arguments on CSI endpoint #8027

Merged
merged 1 commit into from
May 20, 2020
Merged

Conversation

tgross
Copy link
Member

@tgross tgross commented May 20, 2020

Fixes #8026

Some of the CSI RPC endpoints were missing validation that the ID or the Volume definition was present. This could result in nonsense CSIVolume structs being written to raft during registration. This changeset corrects that bug and adds validation checks to present nicer error messages to operators in some other cases.

Some of the CSI RPC endpoints were missing validation that the ID or
the Volume definition was present. This could result in nonsense
`CSIVolume` structs being written to raft during registration. This
changeset corrects that bug and adds validation checks to present
nicer error messages to operators in some other cases.
@tgross tgross requested review from langmartin and jrasell May 20, 2020 12:49
@tgross tgross added this to the 0.11.3 milestone May 20, 2020
Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

LGTM

@tgross tgross merged commit 47588bd into master May 20, 2020
@tgross tgross deleted the csi_args_empty_checks branch May 20, 2020 14:22
tgross added a commit that referenced this pull request May 27, 2020
Some of the CSI RPC endpoints were missing validation that the ID or
the Volume definition was present. This could result in nonsense
`CSIVolume` structs being written to raft during registration. This
changeset corrects that bug and adds validation checks to present
nicer error messages to operators in some other cases.
@tgross
Copy link
Member Author

tgross commented May 27, 2020

cherry-picked to 0.11.3 branch as 72f500a

@github-actions
Copy link

github-actions bot commented Jan 5, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] CSI volume endpoint returns 200 OK when payload is nonsensical
3 participants