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

fix: validate that NCIDs are well-formed GUIDs #2359

Merged
merged 4 commits into from
Nov 8, 2023
Merged

Conversation

rbtr
Copy link
Contributor

@rbtr rbtr commented Nov 7, 2023

Reason for Change:

Validate that the input requests are for valid NCIDs, otherwise don't attempt to process them.

Issue Fixed:

Requirements:

Notes:

@rbtr rbtr requested a review from a team as a code owner November 7, 2023 00:51
@rbtr rbtr requested a review from tamilmani1989 November 7, 2023 00:51
thatmattlong
thatmattlong previously approved these changes Nov 7, 2023
@rbtr rbtr requested a review from msvik November 7, 2023 01:04
@rbtr rbtr enabled auto-merge (squash) November 7, 2023 01:04
@rbtr rbtr self-assigned this Nov 7, 2023
@rbtr rbtr added cns Related to CNS. fix Fixes something. release/latest Change affects latest release train needs-backport Change needs to be backported to previous release trains release/1.4 Change affects v1.4 release train labels Nov 7, 2023
cns/restserver/api_test.go Show resolved Hide resolved
cns/restserver/api.go Show resolved Hide resolved
cns/NetworkContainerContract_test.go Outdated Show resolved Hide resolved
cns/restserver/util.go Show resolved Hide resolved
rbtr added 3 commits November 7, 2023 17:13
Signed-off-by: Evan Baker <[email protected]>
Signed-off-by: Evan Baker <[email protected]>
@rbtr rbtr force-pushed the fix/validate-ncid-guid branch from 3f0f746 to f93797d Compare November 7, 2023 17:14
Copy link
Member

@tamilmani1989 tamilmani1989 left a comment

Choose a reason for hiding this comment

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

lgtm

@rbtr rbtr disabled auto-merge November 7, 2023 22:28
@rbtr rbtr enabled auto-merge (squash) November 7, 2023 22:29
@rbtr rbtr merged commit b3faa2f into master Nov 8, 2023
86 checks passed
@rbtr rbtr deleted the fix/validate-ncid-guid branch November 8, 2023 00:24
rbtr added a commit that referenced this pull request Nov 8, 2023
* fix: validate that NCIDs are well-formed GUIDs

Signed-off-by: Evan Baker <[email protected]>

* fix tests

Signed-off-by: Evan Baker <[email protected]>

* add logs and test

Signed-off-by: Evan Baker <[email protected]>

---------

Signed-off-by: Evan Baker <[email protected]>
rbtr added a commit that referenced this pull request Nov 8, 2023
* fix: validate that NCIDs are well-formed GUIDs

Signed-off-by: Evan Baker <[email protected]>

* fix tests

Signed-off-by: Evan Baker <[email protected]>

* add logs and test

Signed-off-by: Evan Baker <[email protected]>

---------

Signed-off-by: Evan Baker <[email protected]>
rbtr added a commit that referenced this pull request Nov 8, 2023
* fix: validate that NCIDs are well-formed GUIDs



* fix tests



* add logs and test



---------

Signed-off-by: Evan Baker <[email protected]>
@rbtr rbtr removed the needs-backport Change needs to be backported to previous release trains label Dec 19, 2023
matmerr pushed a commit that referenced this pull request Jan 17, 2024
* fix: validate that NCIDs are well-formed GUIDs

Signed-off-by: Evan Baker <[email protected]>

* fix tests

Signed-off-by: Evan Baker <[email protected]>

* add logs and test

Signed-off-by: Evan Baker <[email protected]>

---------

Signed-off-by: Evan Baker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cns Related to CNS. fix Fixes something. release/latest Change affects latest release train release/1.4 Change affects v1.4 release train
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants