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

clusterlink deploy peer: Remove CA private keys requirement #567

Merged
merged 1 commit into from
May 8, 2024

Conversation

orozery
Copy link
Collaborator

@orozery orozery commented May 8, 2024

This PR fixes the clusterlink deploy peer command which unnecessarily required reading the fabric and peer private keys.

Fixes #565

This commit fixes the clusterlink deploy peer command which
unnecessarily required reading the fabric and peer private keys.

Fixes clusterlink-net#565
Signed-off-by: Or Ozeri <oro@il.ibm.com>
var rawFabricKey []byte
if withKey {
// Read key
rawFabricKey, err = os.ReadFile(filepath.Join(dir, config.PrivateKeyFileName))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure if OS.ReadFile can return nil without an error, if it can maybe it is better to propagate also the boolean "withkey" to handle this case.

@orozery orozery merged commit 9beed8d into clusterlink-net:main May 8, 2024
9 checks passed
@kfirtoledo kfirtoledo added the bugfix bug fix label May 9, 2024
@orozery orozery deleted the fabric-key-bug branch May 28, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: fabric key file needed for cluster deployment
2 participants