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

Update aggregator signer name to match ckao #8324

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/asset/tls/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,18 @@ func (c *AggregatorSignerCertKey) Dependencies() []asset.Asset {
// Generate generates the root-ca key and cert pair.
func (c *AggregatorSignerCertKey) Generate(parents asset.Parents) error {
cfg := &CertCfg{
Subject: pkix.Name{CommonName: "aggregator-signer", OrganizationalUnit: []string{"openshift"}},
Subject: pkix.Name{CommonName: "aggregator-client-signer", OrganizationalUnit: []string{"openshift"}},
KeyUsages: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
Validity: ValidityOneDay,
IsCA: true,
}

return c.SelfSignedCertKey.Generate(cfg, "aggregator-signer")
return c.SelfSignedCertKey.Generate(cfg, "aggregator-client-signer")
}

// Name returns the human-friendly name of the asset.
func (c *AggregatorSignerCertKey) Name() string {
return "Certificate (aggregator-signer)"
return "Certificate (aggregator-client-signer)"
}

// AggregatorCABundle is the asset the generates the aggregator-ca-bundle,
Expand Down