pact_broker 2.97.0 → 2.98.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/CHANGELOG.md +7 -0
- data/docs/CONFIGURATION.md +26 -4
- data/lib/pact_broker/app.rb +2 -0
- data/lib/pact_broker/config/runtime_configuration.rb +2 -1
- data/lib/pact_broker/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: d9aac85ace2c0ba5eaacc6fe462dbe4fc3d7623414f13a9bf351bc70d7a8b37f
|
4
|
+
data.tar.gz: 8bae3685f8b675c447aa986c0629875dad4e5e5e614411dea6ca75d77ed0918d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2249bef385597430fa0f9c296a4b83e489a71dc027b681f60c57e82efe6805403ae9054d996afeb2a65c20fa7f363e868dd754b4a589249c7a639e86b616c9d
|
7
|
+
data.tar.gz: 60605b088a39d895374fc10028525b012b7d3a33579ade4f9f3c9119b014fbbf7857a18bb2f09147c65059d35f37a0858fcd126a408ba010dbd1c82ccc7e7788
|
data/CHANGELOG.md
CHANGED
data/docs/CONFIGURATION.md
CHANGED
@@ -53,6 +53,17 @@ While the default is `file` for the Ruby application, it is set to `stdout` on t
|
|
53
53
|
**Default:** `file`<br/>
|
54
54
|
**Allowed values:** `stdout`, `file`<br/>
|
55
55
|
|
56
|
+
### http_debug_logging_enabled
|
57
|
+
|
58
|
+
Enable this setting to print the entire request and response to the logs at debug level. Used for troubleshooting issues.
|
59
|
+
Do not leave this on permanently, as it will have performance and security issues.
|
60
|
+
|
61
|
+
**Supported versions:** From v2.98.0<br/>
|
62
|
+
**Environment variable name:** `PACT_BROKER_HTTP_DEBUG_LOGGING_ENABLED`<br/>
|
63
|
+
**YAML configuration key name:** `http_debug_logging_enabled`<br/>
|
64
|
+
**Default:** `false`<br/>
|
65
|
+
**Allowed values:** `true`, `false`<br/>
|
66
|
+
|
56
67
|
### hide_pactflow_messages
|
57
68
|
|
58
69
|
Set to `true` to hide the messages in the logs about Pactflow
|
@@ -422,8 +433,6 @@ chain in PEM format, indented by 2 more characters.
|
|
422
433
|
When setting the path, the full path to the certificate file in PEM format must be specified. When using Docker, you must ensure the
|
423
434
|
certificate file is [mounted into the container](https://docs.docker.com/storage/volumes/).
|
424
435
|
|
425
|
-
*NOTE: USING ENVIRONMENT VARIABLES TO SET THE WEBHOOK CERTIFICATES IS NOT SUPPORTED.*
|
426
|
-
|
427
436
|
YAML Example:
|
428
437
|
|
429
438
|
```yaml
|
@@ -436,11 +445,24 @@ webhook_certificates:
|
|
436
445
|
jHT1Ty2CglM=
|
437
446
|
-----END CERTIFICATE-----
|
438
447
|
- description: "An example self signed certificate with a path"
|
439
|
-
path: /full/path/to/the/cert.pem
|
448
|
+
path: "/full/path/to/the/cert.pem"
|
440
449
|
|
441
450
|
```
|
442
451
|
|
443
|
-
|
452
|
+
Environment variable example:
|
453
|
+
|
454
|
+
```shell
|
455
|
+
PACT_BROKER_WEBHOOK_CERTIFICATES__0__LABEL="An example self signed certificate with content"
|
456
|
+
PACT_BROKER_WEBHOOK_CERTIFICATES__0__CONTENT="-----BEGIN CERTIFICATE-----
|
457
|
+
MIIDZDCCAkygAwIBAgIBATANBgkqhkiG9w0BAQsFADBCMRMwEQYKCZImiZPyLGQB
|
458
|
+
<REST OF CERTIFICATE>
|
459
|
+
jHT1Ty2CglM=
|
460
|
+
-----END CERTIFICATE-----"
|
461
|
+
PACT_BROKER_WEBHOOK_CERTIFICATES__1__LABEL="An example self signed certificate with a path"
|
462
|
+
PACT_BROKER_WEBHOOK_CERTIFICATES__1__PATH="/full/path/to/the/cert.pem"
|
463
|
+
```
|
464
|
+
|
465
|
+
**Supported versions:** From v2.90.0 for YAML and 2.97.0 for environment variables.<br/>
|
444
466
|
**Environment variable name:** `PACT_BROKER_WEBHOOK_CERTIFICATES`<br/>
|
445
467
|
**YAML configuration key name:** `webhook_certificates`<br/>
|
446
468
|
|
data/lib/pact_broker/app.rb
CHANGED
@@ -29,6 +29,7 @@ require "pact_broker/api/middleware/configuration"
|
|
29
29
|
require "pact_broker/api/middleware/basic_auth"
|
30
30
|
require "pact_broker/config/basic_auth_configuration"
|
31
31
|
require "pact_broker/api/authorization/resource_access_policy"
|
32
|
+
require "pact_broker/api/middleware/http_debug_logs"
|
32
33
|
|
33
34
|
module PactBroker
|
34
35
|
|
@@ -174,6 +175,7 @@ module PactBroker
|
|
174
175
|
end
|
175
176
|
|
176
177
|
def configure_middleware
|
178
|
+
@app_builder.use PactBroker::Api::Middleware::HttpDebugLogs if configuration.http_debug_logging_enabled
|
177
179
|
configure_basic_auth
|
178
180
|
configure_rack_protection
|
179
181
|
@app_builder.use Rack::PactBroker::InvalidUriProtection
|
@@ -39,7 +39,8 @@ module PactBroker
|
|
39
39
|
log_format: nil,
|
40
40
|
warning_error_class_names: ["Sequel::ForeignKeyConstraintViolation"],
|
41
41
|
hide_pactflow_messages: false,
|
42
|
-
log_configuration_on_startup: true
|
42
|
+
log_configuration_on_startup: true,
|
43
|
+
http_debug_logging_enabled: false
|
43
44
|
)
|
44
45
|
|
45
46
|
on_load :validate_logging_attributes!
|
data/lib/pact_broker/version.rb
CHANGED