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

Keymanager 'disk' implementation #167

Merged

Conversation

maxlambrecht
Copy link
Contributor

Pull request check list

  • Proper tests/regressions included?
  • Documentation updated?

Affected functionality
Add a new KeyManager option for managing Keys in the Galadriel Server. This options adds the possibility of restarting the Galadriel Server without affecting the onboarded Harvesters, as the Server will be able to continue validating the issued JWT tokens.

Description of change
Implementation of a KeyManager that stores keys in disk.

Which issue this pull requests fixes

Signed-off-by: Max Lambrecht <[email protected]>
Signed-off-by: Max Lambrecht <[email protected]>
Signed-off-by: Max Lambrecht <[email protected]>
Signed-off-by: Max Lambrecht <[email protected]>
Signed-off-by: Max Lambrecht <[email protected]>
@maxlambrecht maxlambrecht force-pushed the keymanager-disk-implementation branch from 64e61cc to 2db4cb4 Compare May 19, 2023 23:31
Signed-off-by: Max Lambrecht <[email protected]>
Signed-off-by: Max Lambrecht <[email protected]>
Signed-off-by: Max Lambrecht <[email protected]>
Signed-off-by: Max Lambrecht <[email protected]>
Copy link
Collaborator

@mgbcaio mgbcaio left a comment

Choose a reason for hiding this comment

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

just 2 nit comments, for now. looks good to me.

return nil
}

// SaveKeysToDisk saves the keys in the key manager to disk.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// SaveKeysToDisk saves the keys in the key manager to disk.
// saveKeysToDisk saves the keys in the key manager to disk.

Comment on lines 11 to 12
// KeyManager provides a common interface for managing keys.
// Memory provides a common interface for managing keys.
type KeyManager interface {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Change interface name to match the new comment ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, the comment is wrong.

Signed-off-by: Max Lambrecht <[email protected]>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@maxlambrecht maxlambrecht merged commit cdc6986 into HewlettPackard:main May 21, 2023
@maxlambrecht maxlambrecht deleted the keymanager-disk-implementation branch May 21, 2023 18:37
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

Successfully merging this pull request may close these issues.

2 participants