-
Notifications
You must be signed in to change notification settings - Fork 174
ROX-8790: Create gRPC endpoint to generate Scanner certificate #219
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
f9dbf7b
Initial code for central service to generate local scanner certificates
e19fc2e
fix style issues
1d5fda9
Add unit test for LocalScannerService
c3b0959
Simplify IssueLocalScannerCerts
71d7f13
remove redundant field
2a087bd
Infer cluster id from request context
7a35476
Reorder func to have entry point on top, and aux funcs dowmn
ff0aee4
Memoize CAForSigning
d1b7d62
fix code style
3e23314
Number proto message fields starting in 1
b1d908e
Properly infer cluster id from request context
225f4db
Replace new gRPC service with new messages in SensorService.Communicate
2057450
fix checkstyle
1e09c1f
fix typo and error message
bbde9a3
protect IssueLocalScannerCerts with feature flag LocalImageScanning
c3c97b3
enable IssueLocalScannerCerts feature flag for tests
6951eb8
Return a failure message on local certificate issue error
b88111d
Add test for processIssueLocalScannerCertsRequest
83e208c
Skip tests when feature flag dependency is disabled
8921d85
Use features.LocalImageScanning always directly
4fe13ce
Quote namespace in error log
1f5bd75
Use assertion methods directly insted of through s.Assert()
1a1b1fd
Make sure the result of handleMessage is always checked
7bfbd6c
Add format to proto field names for certs and keys
a2b5cef
get namespace from sensor hello insteadof request parameter
a771af3
Avoid redundancies and generalize proto messages
40a6fa0
Add request id for pairing responses with their requests
b1703fe
Use Len assertion instead of Equal of `len`
2e3b639
Use require to avoid panic later on in test
06e8eaa
use proper list comparison instead of a loop and len check
98bb61b
use subtest for all test tables
7356d0e
use require instead of assert to prevent potential test panic
af418a3
Make test resilient to eventual parallel test support in suites
df63203
improve readability of certificate creation code
8139ea7
Revert "Make test resilient to eventual parallel test support in suites"
747e03b
explicitly return named return values
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.