forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: Add config message for MeshCA certificateProvider plugin.
This is a follow up from envoyproxy#11061 which added support for sending arbitrary certificateProvider plugin configuration. Signed-off-by: Easwar Swaminathan <easwars@google.com>
- Loading branch information
Showing
12 changed files
with
240 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
api/envoy/extensions/transport_sockets/tls/v3/meshca.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
syntax = "proto3"; | ||
|
||
package envoy.extensions.transport_sockets.tls.v3; | ||
|
||
import "envoy/config/core/v3/config_source.proto"; | ||
|
||
import "google/protobuf/duration.proto"; | ||
|
||
import "udpa/annotations/status.proto"; | ||
|
||
option java_package = "io.envoyproxy.envoy.extensions.transport_sockets.tls.v3"; | ||
option java_outer_classname = "MeshcaProto"; | ||
option java_multiple_files = true; | ||
option (udpa.annotations.file_status).package_version_status = ACTIVE; | ||
|
||
// [#protodoc-title: GoogleMeshCA Configuration] | ||
// GoogleMeshCaConfig contains all configuration parameters required by the | ||
// MeshCA CertificateProvider plugin implementation. | ||
// [#next-free-field: 7] | ||
message GoogleMeshCaConfig { | ||
// Type of key to be embedded in CSRs sent to the MeshCA. | ||
enum KeyType { | ||
KEY_TYPE_UNKNOWN = 0; | ||
KEY_TYPE_RSA = 1; | ||
} | ||
|
||
// GoogleMeshCA server endpoint to get CSRs signed via the *CreateCertificate* | ||
// unary call. This must have :ref:`api_type | ||
// <envoy_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC | ||
// <envoy_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. | ||
// STS based call credentials need to be supplied in :ref:`call_credentials | ||
// <envoy_api_field_config.core.v3.GrpcService.GoogleGrpc.call_credentials>`. | ||
// If :ref:`timeout envoy_api_field_config.core.v3.GrpcService.timeout` is | ||
// left unspecified, a default value of 10s will be used. | ||
config.core.v3.ApiConfigSource server = 1; | ||
|
||
// Certificate lifetime to request in CSRs sent to the MeshCA. | ||
// A default value of 24h will be used if left unspecified. | ||
google.protobuf.Duration certificate_lifetime = 2; | ||
|
||
// How long before certificate expiration to renew the certificate. | ||
// A default value of 12h will be used if left unspecified. | ||
google.protobuf.Duration renewal_grace_period = 3; | ||
|
||
// Type of key. | ||
// RSA keys will be used if left unspecified. | ||
KeyType key_type = 4; | ||
|
||
// Size of the key in bits. | ||
// 2048 bit keys will be used if left unspecified. | ||
uint32 key_size = 5; | ||
|
||
// GCE zone where the workload is located. | ||
// GCE/GKE Metadata Server will be contacted if left unspecified. | ||
string gce_compute_zone = 6; | ||
} |
60 changes: 60 additions & 0 deletions
60
api/envoy/extensions/transport_sockets/tls/v4alpha/meshca.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
syntax = "proto3"; | ||
|
||
package envoy.extensions.transport_sockets.tls.v4alpha; | ||
|
||
import "envoy/config/core/v4alpha/config_source.proto"; | ||
|
||
import "google/protobuf/duration.proto"; | ||
|
||
import "udpa/annotations/status.proto"; | ||
import "udpa/annotations/versioning.proto"; | ||
|
||
option java_package = "io.envoyproxy.envoy.extensions.transport_sockets.tls.v4alpha"; | ||
option java_outer_classname = "MeshcaProto"; | ||
option java_multiple_files = true; | ||
option (udpa.annotations.file_status).package_version_status = NEXT_MAJOR_VERSION_CANDIDATE; | ||
|
||
// [#protodoc-title: GoogleMeshCA Configuration] | ||
// GoogleMeshCaConfig contains all configuration parameters required by the | ||
// MeshCA CertificateProvider plugin implementation. | ||
// [#next-free-field: 7] | ||
message GoogleMeshCaConfig { | ||
option (udpa.annotations.versioning).previous_message_type = | ||
"envoy.extensions.transport_sockets.tls.v3.GoogleMeshCaConfig"; | ||
|
||
// Type of key to be embedded in CSRs sent to the MeshCA. | ||
enum KeyType { | ||
KEY_TYPE_UNKNOWN = 0; | ||
KEY_TYPE_RSA = 1; | ||
} | ||
|
||
// GoogleMeshCA server endpoint to get CSRs signed via the *CreateCertificate* | ||
// unary call. This must have :ref:`api_type | ||
// <envoy_api_field_config.core.v4alpha.ApiConfigSource.api_type>` :ref:`GRPC | ||
// <envoy_api_enum_value_config.core.v4alpha.ApiConfigSource.ApiType.GRPC>`. | ||
// STS based call credentials need to be supplied in :ref:`call_credentials | ||
// <envoy_api_field_config.core.v4alpha.GrpcService.GoogleGrpc.call_credentials>`. | ||
// If :ref:`timeout envoy_api_field_config.core.v3.GrpcService.timeout` is | ||
// left unspecified, a default value of 10s will be used. | ||
config.core.v4alpha.ApiConfigSource server = 1; | ||
|
||
// Certificate lifetime to request in CSRs sent to the MeshCA. | ||
// A default value of 24h will be used if left unspecified. | ||
google.protobuf.Duration certificate_lifetime = 2; | ||
|
||
// How long before certificate expiration to renew the certificate. | ||
// A default value of 12h will be used if left unspecified. | ||
google.protobuf.Duration renewal_grace_period = 3; | ||
|
||
// Type of key. | ||
// RSA keys will be used if left unspecified. | ||
KeyType key_type = 4; | ||
|
||
// Size of the key in bits. | ||
// 2048 bit keys will be used if left unspecified. | ||
uint32 key_size = 5; | ||
|
||
// GCE zone where the workload is located. | ||
// GCE/GKE Metadata Server will be contacted if left unspecified. | ||
string gce_compute_zone = 6; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
56 changes: 56 additions & 0 deletions
56
generated_api_shadow/envoy/extensions/transport_sockets/tls/v3/meshca.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
generated_api_shadow/envoy/extensions/transport_sockets/tls/v4alpha/meshca.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,6 +116,7 @@ GCM | |
GCOVR | ||
GCP | ||
GETting | ||
GKE | ||
GLB | ||
GOAWAY | ||
GRPC | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters