local-development-gateway 0.3.0 → 0.3.1
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 +5 -0
- data/lib/local_development_gateway/database_router/docker_api.rb +2 -2
- data/lib/local_development_gateway/database_router/drivers/postgre_sql_certificate.rb +1 -1
- data/lib/local_development_gateway/database_router/drivers/sql_server_driver.rb +1 -1
- data/lib/local_development_gateway/database_router/tds/tls_client_hello.rb +1 -1
- data/lib/local_development_gateway/database_router/wire.rb +2 -2
- data/lib/local_development_gateway/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24db87232b01db912d8b0a561f1480cbd69a1d065fe06740060be81bc503a442
|
|
4
|
+
data.tar.gz: 7817485194e820a4b2ef05030d00cfd506e32a4bb6d495d5e850f049c41114ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a13b83fa299544b16575509c5f2e1680d2146794679ec694fe3d7b6c400cf6da88fddc69c6d7cc7932669fa3cf9cc01b7206c6da49d5f9b1fad648f80333dd89
|
|
7
|
+
data.tar.gz: 42ff41744c1c3576d699faa85cdab914b6374d178bc9569efa8fd329169b0576916387337e40905f0f6ed060c7c606825bdb7d275f13d62ca9fa83ff2d6e3348
|
data/README.md
CHANGED
|
@@ -485,6 +485,11 @@ It mounts the Docker socket so it can discover labelled containers. A read-only
|
|
|
485
485
|
| A project uses normal ports unexpectedly | Confirm the gateway container is running and has `local-gateway=true`. |
|
|
486
486
|
| Authentication rejects the callback | Confirm the generated hostname matches the allowed wildcard callback pattern. |
|
|
487
487
|
|
|
488
|
+
## Release 0.3.1
|
|
489
|
+
|
|
490
|
+
- Resolve the existing Ruby lint diagnostics without suppressions or reduced coverage. Clarify range and assertion boundaries, retain EOF handling through `IOError`, and use supported OpenSSL digest construction and socket-readiness APIs.
|
|
491
|
+
- Database routing, cancellation, lifecycle, and consumer alias contracts are unchanged; no shared gateway restart or consumer configuration change is required.
|
|
492
|
+
|
|
488
493
|
## Release 0.3.0
|
|
489
494
|
|
|
490
495
|
- Add the opt-in `LocalDevelopmentGateway.database_alias(project_name:, service_name:)` API: preserve short/exact-fit identities and deterministically shorten long private aliases with a 96-bit SHA256 suffix.
|
|
@@ -48,14 +48,14 @@ module LocalDevelopmentGateway
|
|
|
48
48
|
raise Error, "Invalid chunked Docker API response" unless line_end
|
|
49
49
|
|
|
50
50
|
size = Integer(body.byteslice(0, line_end).split(";", 2).first, 16)
|
|
51
|
-
body = body.byteslice(line_end + 2..)
|
|
51
|
+
body = body.byteslice((line_end + 2)..)
|
|
52
52
|
break if size.zero?
|
|
53
53
|
unless body.bytesize >= size + 2 && body.byteslice(size, 2) == "\r\n"
|
|
54
54
|
raise Error, "Invalid chunked Docker API response"
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
decoded << body.byteslice(0, size)
|
|
58
|
-
body = body.byteslice(size + 2..)
|
|
58
|
+
body = body.byteslice((size + 2)..)
|
|
59
59
|
end
|
|
60
60
|
decoded
|
|
61
61
|
rescue ArgumentError, TypeError
|
|
@@ -28,7 +28,7 @@ module LocalDevelopmentGateway
|
|
|
28
28
|
@certificate.add_extension(
|
|
29
29
|
extensions.create_extension("extendedKeyUsage", "serverAuth")
|
|
30
30
|
)
|
|
31
|
-
@certificate.sign(@key, OpenSSL::Digest
|
|
31
|
+
@certificate.sign(@key, OpenSSL::Digest.new("SHA256"))
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def context(&servername_callback)
|
|
@@ -33,7 +33,7 @@ module LocalDevelopmentGateway
|
|
|
33
33
|
break if @record_buffer.bytesize < length + 5
|
|
34
34
|
|
|
35
35
|
@handshake << @record_buffer.byteslice(5, length)
|
|
36
|
-
@record_buffer = @record_buffer.byteslice(length + 5..) || +""
|
|
36
|
+
@record_buffer = @record_buffer.byteslice((length + 5)..) || +""
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
|
@@ -38,7 +38,7 @@ module LocalDevelopmentGateway
|
|
|
38
38
|
upstream =
|
|
39
39
|
Thread.new do
|
|
40
40
|
IO.copy_stream(client, target)
|
|
41
|
-
rescue IOError,
|
|
41
|
+
rescue IOError, OpenSSL::SSL::SSLError, SystemCallError
|
|
42
42
|
nil
|
|
43
43
|
ensure
|
|
44
44
|
close_write(target)
|
|
@@ -50,7 +50,7 @@ module LocalDevelopmentGateway
|
|
|
50
50
|
else
|
|
51
51
|
IO.copy_stream(target, client)
|
|
52
52
|
end
|
|
53
|
-
rescue IOError,
|
|
53
|
+
rescue IOError, OpenSSL::SSL::SSLError, SystemCallError
|
|
54
54
|
nil
|
|
55
55
|
ensure
|
|
56
56
|
close_connection(client)
|