Skip to content

Commit e0215e7

Browse files
authored
Merge pull request smallstep#1167 from smallstep/linked-ra-renewal
Add support for linked RA renewals
2 parents ca6f451 + 07c56f5 commit e0215e7

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

authority/linkedca.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,20 @@ func (c *linkedCaClient) GetCertificateData(serial string) (*db.CertificateData,
265265
ID: p.Id, Name: p.Name, Type: p.Type.String(),
266266
}
267267
}
268+
269+
var raInfo *provisioner.RAInfo
270+
if p := resp.RaProvisioner; p != nil && p.Provisioner != nil {
271+
raInfo = &provisioner.RAInfo{
272+
AuthorityID: p.AuthorityId,
273+
ProvisionerID: p.Provisioner.Id,
274+
ProvisionerType: p.Provisioner.Type.String(),
275+
ProvisionerName: p.Provisioner.Name,
276+
}
277+
}
278+
268279
return &db.CertificateData{
269280
Provisioner: pd,
281+
RaInfo: raInfo,
270282
}, nil
271283
}
272284

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ require (
4444
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352
4545
go.step.sm/cli-utils v0.7.5
4646
go.step.sm/crypto v0.23.1
47-
go.step.sm/linkedca v0.19.0-rc.4
47+
go.step.sm/linkedca v0.19.0
4848
golang.org/x/crypto v0.0.0-20221005025214-4161e89ecf1b
4949
golang.org/x/net v0.1.0
5050
golang.org/x/sys v0.1.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,8 @@ go.step.sm/cli-utils v0.7.5/go.mod h1:taSsY8haLmXoXM3ZkywIyRmVij/4Aj0fQbNTlJvv71
687687
go.step.sm/crypto v0.9.0/go.mod h1:+CYG05Mek1YDqi5WK0ERc6cOpKly2i/a5aZmU1sfGj0=
688688
go.step.sm/crypto v0.23.1 h1:Yr9vlzjGqIKVi88KcpZtEcNTcpDkt1nVR7tumW4h+CU=
689689
go.step.sm/crypto v0.23.1/go.mod h1:djAhDYpNAuWF2LkzbCVcf0JDy1UWgrxR3eQ7pQ8EQ/w=
690-
go.step.sm/linkedca v0.19.0-rc.4 h1:kaBW+xHkRRgMNDa4gWiIj7gBq5yjbJKGlTWYYo5z2KQ=
691-
go.step.sm/linkedca v0.19.0-rc.4/go.mod h1:b7vWPrHfYLEOTSUZitFEcztVCpTc+ileIN85CwEAluM=
690+
go.step.sm/linkedca v0.19.0 h1:xuagkR35wrJI2gnu6FAM+q3VmjwsHScvGcJsfZ0GdsI=
691+
go.step.sm/linkedca v0.19.0/go.mod h1:b7vWPrHfYLEOTSUZitFEcztVCpTc+ileIN85CwEAluM=
692692
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
693693
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
694694
go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=

0 commit comments

Comments
 (0)