Skip to content

Commit

Permalink
Merge branch 'main' of ssh://github.com/algamaes/moc-sdk-for-go into …
Browse files Browse the repository at this point in the history
…algamaes/add_guest_agent_profile
  • Loading branch information
dhavalpopat committed Aug 10, 2023
2 parents 8faebe9 + 81a9dbc commit db87a4c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ require (
github.com/Azure/go-autorest/autorest v0.9.0
github.com/Azure/go-autorest/autorest/date v0.2.0
github.com/google/uuid v1.3.0
github.com/microsoft/moc v0.11.0-alpha.14
github.com/microsoft/moc v0.11.0-alpha.15
google.golang.org/grpc v1.54.0
k8s.io/klog v1.0.0
)

require (
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/golang-jwt/jwt/v4 v4.2.0 // indirect
github.com/golang/protobuf v1.5.3
github.com/kr/pretty v0.3.0 // indirect
google.golang.org/protobuf v1.31.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA=
github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA=
github.com/microsoft/moc v0.11.0-alpha.14 h1:hq9/EbXbGEIOMiPngu5qciezLkalV0du5V9QVWMLkwM=
github.com/microsoft/moc v0.11.0-alpha.14/go.mod h1:oWva5QnxchPzA+W9v5INDHjUksw/UKJPuNHnIwEpyEw=
github.com/microsoft/moc v0.11.0-alpha.15 h1:o10UoD26jWXzJBaPYrJaPZhEVFq6mj/zBPcWEK0z0SM=
github.com/microsoft/moc v0.11.0-alpha.15/go.mod h1:oWva5QnxchPzA+W9v5INDHjUksw/UKJPuNHnIwEpyEw=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
Expand Down
5 changes: 5 additions & 0 deletions services/security/certificate/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ package certificate
import (
"net"

"github.com/golang/protobuf/ptypes/wrappers"

"github.com/microsoft/moc-sdk-for-go/services/security"
"github.com/microsoft/moc/pkg/certs"
"github.com/microsoft/moc/pkg/errors"
Expand Down Expand Up @@ -100,5 +102,8 @@ func GetMocCSR(csr *security.CertificateRequest) (*wssdcloudsecurity.Certificate
if csr.CaName != nil {
request.CaName = *csr.CaName
}
if csr.IsCA != nil {
request.IsCA = &wrappers.BoolValue{Value: *csr.IsCA}
}
return request, string(key), nil
}
2 changes: 2 additions & 0 deletions services/security/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ type CertificateRequest struct {
PrivateKey *string `json:"privatekey,omitempty"`
// OldCertificate Certificate contents of x509 certificate string to be renewed encoded in base64
OldCertificate *string `json:"oldcert,omitempty"`
// IsCA - If the certificate to be signed is CA
IsCA *bool `json:"isCA,omitempty"`
// Attributes - The certificate attributes.
Attributes *CertificateRequestAttributes `json:"attributes,omitempty"`
// Tags - Application-specific metadata in the form of key-value pairs
Expand Down

0 comments on commit db87a4c

Please sign in to comment.