mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 00:46:43 +00:00
agent/structs: hide some fields from JSON
This commit is contained in:
parent
63d674d07d
commit
4210003c86
@ -35,8 +35,8 @@ type CARoot struct {
|
|||||||
// SigningCert is the PEM-encoded signing certificate and SigningKey
|
// SigningCert is the PEM-encoded signing certificate and SigningKey
|
||||||
// is the PEM-encoded private key for the signing certificate. These
|
// is the PEM-encoded private key for the signing certificate. These
|
||||||
// may actually be empty if the CA plugin in use manages these for us.
|
// may actually be empty if the CA plugin in use manages these for us.
|
||||||
SigningCert string
|
SigningCert string `json:",omitempty"`
|
||||||
SigningKey string
|
SigningKey string `json:",omitempty"`
|
||||||
|
|
||||||
// Active is true if this is the current active CA. This must only
|
// Active is true if this is the current active CA. This must only
|
||||||
// be true for exactly one CA. For any method that modifies roots in the
|
// be true for exactly one CA. For any method that modifies roots in the
|
||||||
@ -77,7 +77,7 @@ type IssuedCert struct {
|
|||||||
// key for that cert, respectively. This should not be stored in the
|
// key for that cert, respectively. This should not be stored in the
|
||||||
// state store, but is present in the sign API response.
|
// state store, but is present in the sign API response.
|
||||||
CertPEM string `json:",omitempty"`
|
CertPEM string `json:",omitempty"`
|
||||||
PrivateKeyPEM string
|
PrivateKeyPEM string `json:",omitempty"`
|
||||||
|
|
||||||
// Service is the name of the service for which the cert was issued.
|
// Service is the name of the service for which the cert was issued.
|
||||||
// ServiceURI is the cert URI value.
|
// ServiceURI is the cert URI value.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user