flipt_client 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -0
- data/lib/ext/darwin_aarch64/libfliptengine.dylib +0 -0
- data/lib/ext/darwin_x86_64/libfliptengine.dylib +0 -0
- data/lib/ext/linux_aarch64/libfliptengine.so +0 -0
- data/lib/ext/linux_x86_64/libfliptengine.so +0 -0
- data/lib/ext/windows_x86_64/fliptengine.dll +0 -0
- data/lib/flipt_client/models.rb +7 -2
- data/lib/flipt_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2759b9ac786742b26aa0805c4d4861a1ccb9cb82c903a1bcab6c0ea3c446dfab
|
4
|
+
data.tar.gz: b1a8467e4bed68e87efef88a3228020e2600391d3f529ed2a10cc3abfc1b6b56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a818447135c3e62fe0bc0d4931225896778526df2f883f5484c61992f92de5366dff9186a277799a34be5bc75beb14ff2e9fa85fefdf393d848e50d5fc62eb9c
|
7
|
+
data.tar.gz: 76e27417733c3ce583316ac3cda586cd090dbcb824bdfa611335f4edc42b7b764e8ce1bf912bc5878db683bcfe81304f93771abd2ab1d590077c08551972980a
|
data/README.md
CHANGED
@@ -212,6 +212,23 @@ client = Flipt::Client.new(
|
|
212
212
|
)
|
213
213
|
```
|
214
214
|
|
215
|
+
#### Self-Signed Certificates
|
216
|
+
|
217
|
+
For self-signed certificates where you need to skip hostname verification while still validating the certificate chain:
|
218
|
+
|
219
|
+
```ruby
|
220
|
+
# Skip hostname verification for self-signed certificates
|
221
|
+
tls_config = Flipt::TlsConfig.new(
|
222
|
+
ca_cert_file: '/path/to/ca.pem',
|
223
|
+
insecure_skip_hostname_verify: true
|
224
|
+
)
|
225
|
+
|
226
|
+
client = Flipt::Client.new(
|
227
|
+
url: 'https://flipt.example.com',
|
228
|
+
tls_config: tls_config
|
229
|
+
)
|
230
|
+
```
|
231
|
+
|
215
232
|
#### TLS Configuration Options
|
216
233
|
|
217
234
|
The `TlsConfig` class supports the following options:
|
@@ -219,6 +236,7 @@ The `TlsConfig` class supports the following options:
|
|
219
236
|
- `ca_cert_file`: Path to custom CA certificate file (PEM format)
|
220
237
|
- `ca_cert_data`: Raw CA certificate content (PEM format) - takes precedence over `ca_cert_file`
|
221
238
|
- `insecure_skip_verify`: Skip certificate verification (development only)
|
239
|
+
- `insecure_skip_hostname_verify`: Skip hostname verification while maintaining certificate validation (development only)
|
222
240
|
- `client_cert_file`: Client certificate file for mutual TLS (PEM format)
|
223
241
|
- `client_key_file`: Client private key file for mutual TLS (PEM format)
|
224
242
|
- `client_cert_data`: Raw client certificate content (PEM format) - takes precedence over `client_cert_file`
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/flipt_client/models.rb
CHANGED
@@ -43,7 +43,7 @@ module Flipt
|
|
43
43
|
|
44
44
|
# TlsConfig provides configuration for TLS connections to Flipt servers
|
45
45
|
class TlsConfig
|
46
|
-
attr_reader :ca_cert_file, :ca_cert_data, :insecure_skip_verify,
|
46
|
+
attr_reader :ca_cert_file, :ca_cert_data, :insecure_skip_verify, :insecure_skip_hostname_verify,
|
47
47
|
:client_cert_file, :client_key_file, :client_cert_data, :client_key_data
|
48
48
|
|
49
49
|
# Initialize TLS configuration
|
@@ -51,16 +51,19 @@ module Flipt
|
|
51
51
|
# @param ca_cert_file [String, nil] Path to CA certificate file (PEM format)
|
52
52
|
# @param ca_cert_data [String, nil] Raw CA certificate content (PEM format)
|
53
53
|
# @param insecure_skip_verify [Boolean, nil] Skip certificate verification (development only)
|
54
|
+
# @param insecure_skip_hostname_verify [Boolean, nil] Skip hostname verification
|
55
|
+
# while maintaining certificate validation (development only)
|
54
56
|
# @param client_cert_file [String, nil] Path to client certificate file (PEM format)
|
55
57
|
# @param client_key_file [String, nil] Path to client key file (PEM format)
|
56
58
|
# @param client_cert_data [String, nil] Raw client certificate content (PEM format)
|
57
59
|
# @param client_key_data [String, nil] Raw client key content (PEM format)
|
58
60
|
def initialize(ca_cert_file: nil, ca_cert_data: nil, insecure_skip_verify: nil,
|
59
|
-
client_cert_file: nil, client_key_file: nil,
|
61
|
+
insecure_skip_hostname_verify: nil, client_cert_file: nil, client_key_file: nil,
|
60
62
|
client_cert_data: nil, client_key_data: nil)
|
61
63
|
@ca_cert_file = ca_cert_file
|
62
64
|
@ca_cert_data = ca_cert_data
|
63
65
|
@insecure_skip_verify = insecure_skip_verify
|
66
|
+
@insecure_skip_hostname_verify = insecure_skip_hostname_verify
|
64
67
|
@client_cert_file = client_cert_file
|
65
68
|
@client_key_file = client_key_file
|
66
69
|
@client_cert_data = client_cert_data
|
@@ -73,6 +76,7 @@ module Flipt
|
|
73
76
|
# WARNING: Only use this in development environments
|
74
77
|
#
|
75
78
|
# @return [TlsConfig] TLS config with certificate verification disabled
|
79
|
+
# @deprecated Use TlsConfig constructor instead
|
76
80
|
def self.insecure
|
77
81
|
new(insecure_skip_verify: true)
|
78
82
|
end
|
@@ -118,6 +122,7 @@ module Flipt
|
|
118
122
|
hash[:ca_cert_file] = @ca_cert_file if @ca_cert_file
|
119
123
|
hash[:ca_cert_data] = @ca_cert_data if @ca_cert_data
|
120
124
|
hash[:insecure_skip_verify] = @insecure_skip_verify unless @insecure_skip_verify.nil?
|
125
|
+
hash[:insecure_skip_hostname_verify] = @insecure_skip_hostname_verify unless @insecure_skip_hostname_verify.nil?
|
121
126
|
hash[:client_cert_file] = @client_cert_file if @client_cert_file
|
122
127
|
hash[:client_key_file] = @client_key_file if @client_key_file
|
123
128
|
hash[:client_cert_data] = @client_cert_data if @client_cert_data
|
data/lib/flipt_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flipt_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flipt Devs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Flipt Client Evaluation SDK
|
14
14
|
email:
|