-
Notifications
You must be signed in to change notification settings - Fork 56
Add TLS settings to all connection settings #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a174175
7849fe0
15fdbc0
41ad8fb
05f2846
2b15b10
bc3845c
e8c6c76
df8b65c
1fd13b4
bc5eb2d
40329c1
349fa55
1af8ba5
3500ba3
09377dd
3946b01
ab67942
4d86017
0f7ceb9
a2918c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -114,15 +114,19 @@ Status: [Beta] | |
| - [OpAMPConnectionSettings.headers](#opampconnectionsettingsheaders) | ||
| - [OpAMPConnectionSettings.certificate](#opampconnectionsettingscertificate) | ||
| - [OpAMPConnectionSettings.heartbeat_interval_seconds](#opampconnectionsettingsheartbeat_interval_seconds) | ||
| - [OpAMPConnectionSettings.tls](#opampconnectionsettingstls) | ||
| + [TelemetryConnectionSettings](#telemetryconnectionsettings) | ||
| - [TelemetryConnectionSettings.destination_endpoint](#telemetryconnectionsettingsdestination_endpoint) | ||
| - [TelemetryConnectionSettings.headers](#telemetryconnectionsettingsheaders) | ||
| - [TelemetryConnectionSettings.certificate](#telemetryconnectionsettingscertificate) | ||
| - [TelemetryConnectionSettings.tls](#telemetryconnectionsettingstls) | ||
| + [OtherConnectionSettings](#otherconnectionsettings) | ||
| - [OtherConnectionSettings.destination_endpoint](#otherconnectionsettingsdestination_endpoint) | ||
| - [OtherConnectionSettings.headers](#otherconnectionsettingsheaders) | ||
| - [OtherConnectionSettings.certificate](#otherconnectionsettingscertificate) | ||
| - [OtherConnectionSettings.other_settings](#otherconnectionsettingsother_settings) | ||
| - [OtherConnectionSettings.tls](#otherconnectionsettingstls) | ||
| + [TLSConnectionSettings Message](#tlsconnectionsettings-message) | ||
| + [Headers Message](#headers-message) | ||
| + [TLSCertificate Message](#tlscertificate-message) | ||
| - [TLSCertificate.cert](#tlscertificatecert) | ||
|
|
@@ -1904,6 +1908,7 @@ message OpAMPConnectionSettings { | |
| Headers headers = 2; | ||
| TLSCertificate certificate = 3; | ||
| uint64 heartbeat_interval_seconds = 4; | ||
| TLSConnectionSettings tls = 5; | ||
| } | ||
| ``` | ||
|
|
||
|
|
@@ -1979,6 +1984,12 @@ The flow for negotiating a heartbeat is described as so: | |
|
|
||
| The Agent can decide not to send heartbeats by not setting the ReportsHeartbeat capability. The Server can decide to not receive heartbeats by responding with a value of `0` seconds in the OpAMPConnectionSettings.heartbeat_interval_seconds field. | ||
|
|
||
| ##### OpAMPConnectionSettings.tls | ||
|
|
||
| Status: [Development] | ||
|
|
||
| Optional OpAMP specific TLS settings. | ||
|
|
||
| #### TelemetryConnectionSettings | ||
|
|
||
| The TelemetryConnectionSettings message is a collection of fields which comprise an | ||
|
|
@@ -1990,6 +2001,7 @@ message TelemetryConnectionSettings { | |
| string destination_endpoint = 1; | ||
| Headers headers = 2; | ||
| TLSCertificate certificate = 3; | ||
| TLSConnectionSettings tls = 4; | ||
| } | ||
| ``` | ||
|
|
||
|
|
@@ -2016,6 +2028,12 @@ for this connection. | |
| This field is optional: if omitted the client SHOULD NOT use a client-side certificate. | ||
| This field can be used to perform a client certificate revocation/rotation. | ||
|
|
||
| ##### TelemetryConnectionSettings.tls | ||
|
|
||
| Status: [Development] | ||
|
|
||
| Optional telemetry specific TLS settings. | ||
|
|
||
| #### OtherConnectionSettings | ||
|
|
||
| The OtherConnectionSettings message is a collection of fields which comprise an | ||
|
|
@@ -2045,6 +2063,7 @@ message OtherConnectionSettings { | |
| Headers headers = 2; | ||
| TLSCertificate certificate = 3; | ||
| map<string, string> other_settings = 4; | ||
| TLSConnectionSettings tls = 5; | ||
| } | ||
| ``` | ||
|
|
||
|
|
@@ -2074,9 +2093,35 @@ This field can be used to perform a client certificate revocation/rotation. | |
| Other connection settings. These are Agent-specific and are up to the Agent | ||
| interpret. | ||
|
|
||
| #### Headers Message | ||
| ##### OtherConnectionSettings.tls | ||
|
|
||
| Status: [Development] | ||
|
|
||
| Optional connection specific TLS settings. | ||
|
|
||
| #### TLSConnectionSettings Message | ||
|
|
||
| Status: [Development] | ||
|
|
||
| The message carries optional TLS settings that are used to configure a client's | ||
| connection. If the Agent is able to validate the connection settings, the Agent | ||
| SHOULD forget any previous TLS settings. If this message is not included, the | ||
| client SHOULD use the agent's default TLS settings for the connection. | ||
|
Comment on lines
+2106
to
+2109
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tigrannajaryan @andykellr, I've added a description on how TLS settings should function, and have changed the demo (open-telemetry/opamp-go#338) to reflect this. The goal is that when |
||
|
|
||
| ```protobuf | ||
| message TLSConnectionSettings { | ||
| string ca_pem_contents = 1; | ||
| bool include_system_ca_certs_pool = 2; | ||
| bool insecure_skip_verify = 3; | ||
| string min_version = 4; | ||
| string max_version = 5; | ||
| repeated string cipher_suites = 6; | ||
| } | ||
| ``` | ||
|
|
||
| #### Headers Message | ||
|
|
||
| ```protobuf | ||
| message Headers { | ||
| repeated Header headers = 1; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.