Skip to content

Commit 3fe6ae8

Browse files
JP FieldingSupportSDM
JP Fielding
authored andcommitted
Add remote identity fields to ssh cert driver
GitOrigin-RevId: 0265d4eac0ec1d701cb1e45cdc559003349d0044
1 parent 891ac6f commit 3fe6ae8

File tree

3 files changed

+55
-9
lines changed

3 files changed

+55
-9
lines changed

internal/v1/drivers.pb.go

+47-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models.go

+4
Original file line numberDiff line numberDiff line change
@@ -6437,6 +6437,10 @@ type SSHCert struct {
64376437
PortForwarding bool `json:"portForwarding"`
64386438

64396439
PortOverride int32 `json:"portOverride"`
6440+
6441+
RemoteIdentityGroupID string `json:"remoteIdentityGroupId"`
6442+
6443+
RemoteIdentityHealthcheckUsername string `json:"remoteIdentityHealthcheckUsername"`
64406444
// ID of the secret store containing credentials for this resource, if any.
64416445
SecretStoreID string `json:"secretStoreId"`
64426446
// Tags is a map of key, value pairs.

plumbing.go

+4
Original file line numberDiff line numberDiff line change
@@ -7713,6 +7713,8 @@ func convertSSHCertToPorcelain(plumbing *proto.SSHCert) (*SSHCert, error) {
77137713
porcelain.Port = plumbing.Port
77147714
porcelain.PortForwarding = plumbing.PortForwarding
77157715
porcelain.PortOverride = plumbing.PortOverride
7716+
porcelain.RemoteIdentityGroupID = plumbing.RemoteIdentityGroupId
7717+
porcelain.RemoteIdentityHealthcheckUsername = plumbing.RemoteIdentityHealthcheckUsername
77167718
porcelain.SecretStoreID = plumbing.SecretStoreId
77177719
if v, err := convertTagsToPorcelain(plumbing.Tags); err != nil {
77187720
return nil, fmt.Errorf("error converting field Tags: %v", err)
@@ -7738,6 +7740,8 @@ func convertSSHCertToPlumbing(porcelain *SSHCert) *proto.SSHCert {
77387740
plumbing.Port = (porcelain.Port)
77397741
plumbing.PortForwarding = (porcelain.PortForwarding)
77407742
plumbing.PortOverride = (porcelain.PortOverride)
7743+
plumbing.RemoteIdentityGroupId = (porcelain.RemoteIdentityGroupID)
7744+
plumbing.RemoteIdentityHealthcheckUsername = (porcelain.RemoteIdentityHealthcheckUsername)
77417745
plumbing.SecretStoreId = (porcelain.SecretStoreID)
77427746
plumbing.Tags = convertTagsToPlumbing(porcelain.Tags)
77437747
plumbing.Username = (porcelain.Username)

0 commit comments

Comments
 (0)