You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add TLS configuration support to Go SDK (#1138)
* feat: support custom tls config in Go
Signed-off-by: Mark Phelps <[email protected]>
* chore: simplify tls logic
Signed-off-by: Mark Phelps <[email protected]>
* chore: refactor to just use std lib tls.Config
Signed-off-by: Mark Phelps <[email protected]>
* chore: nil check
Signed-off-by: Mark Phelps <[email protected]>
* chore: mv tls.go into config.go
Signed-off-by: Mark Phelps <[email protected]>
* chore: skip verify for invalid auth test
Signed-off-by: Mark Phelps <[email protected]>
* chore: Update flipt-client-go/config.go
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Mark Phelps <[email protected]>
* chore: rename tlsconfig to be go like
Signed-off-by: Mark Phelps <[email protected]>
* chore: simplify logic
Signed-off-by: Mark Phelps <[email protected]>
* chore: add docs on order of operations
Signed-off-by: Mark Phelps <[email protected]>
---------
Signed-off-by: Mark Phelps <[email protected]>
Co-authored-by: Copilot <[email protected]>
Copy file name to clipboardExpand all lines: flipt-client-go/README.md
+129Lines changed: 129 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,7 @@ The `NewClient` constructor accepts a variadic number of `Option` functions that
125
125
-`WithReference`: The [reference](https://docs.flipt.io/guides/user/using-references) to use when fetching flag state. If not provided, reference will not be used.
126
126
-`WithFetchMode`: The fetch mode to use when fetching flag state. If not provided, the client will default to polling.
127
127
-`WithErrorStrategy`: The error strategy to use when fetching flag state. If not provided, the client will default to `Fail`. See the [Error Strategies](#error-strategies) section for more information.
128
+
-`WithTLSConfig`: The TLS configuration for connecting to servers with custom certificates. See [TLS Configuration](#tls-configuration). Note: if used with `WithHTTPClient`, this should be called after setting the HTTP client.
128
129
129
130
### Authentication
130
131
@@ -134,6 +135,134 @@ The `Client` supports the following authentication strategies:
The `Client` supports configuring TLS settings for secure connections to Flipt servers using the standard library `tls.Config`. This provides maximum flexibility for:
141
+
142
+
- Connecting to Flipt servers with self-signed certificates
143
+
- Using custom Certificate Authorities (CAs)
144
+
- Implementing mutual TLS authentication
145
+
- Testing with insecure connections (development only)
0 commit comments