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

cert issuer #472

Merged
merged 4 commits into from
May 2, 2024
Merged

cert issuer #472

merged 4 commits into from
May 2, 2024

Conversation

share2kanna
Copy link
Collaborator

Tested agent closet issuer and registering to cert-manager for further issue of certificates.

@share2kanna share2kanna requested a review from vramk23 April 29, 2024 16:44
}, nil
}

func generateIntermediateCACert(rootKey *rsa.PrivateKey, rootCertTemplate *x509.Certificate) (*Key, *Cert, error) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

intermediate certificate not required, use root directly for cluster issuer registration to cert-manager.

@@ -278,7 +278,7 @@ func (p *PluginActivities) PluginDeployPreActionMTLSActivity(ctx context.Context
}

pluginInitConfigmapName := req.PluginName + pluginConfigmapNameTemplate
err = captenSDKClient.CreateCertificates(req.PluginName, req.DefaultNamespace, "capten-issuer", pluginInitConfigmapName, p.k8sClient)
err = captenSDKClient.CreateCertificates(req.PluginName, req.DefaultNamespace, "agent-ca-issuer", pluginInitConfigmapName, p.k8sClient)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

agent-cluster-issuer name can be moved to config-map so that hardcoding can be removed.

@vramk23 vramk23 merged commit d96d6cb into main May 2, 2024
18 of 20 checks passed
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