pact_broker 2.97.0 → 2.98.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42a4c440061063f19b90c35a0d680f6d2a9802df42e3b4fc4b93031a6e8efb72
4
- data.tar.gz: 7e4acbf7aab9709d30db431a1fc2cee5048934f17170b76f5788ad9db9115e72
3
+ metadata.gz: d9aac85ace2c0ba5eaacc6fe462dbe4fc3d7623414f13a9bf351bc70d7a8b37f
4
+ data.tar.gz: 8bae3685f8b675c447aa986c0629875dad4e5e5e614411dea6ca75d77ed0918d
5
5
  SHA512:
6
- metadata.gz: c06b5cc6227a1141d5e5ccd02701096b4987d26860baf8836431317a26f7809fddefb41c355115bd485a39f8f44eee94884f164c36b7c8bbfacbaf0e62bd1e49
7
- data.tar.gz: 0c55019fbfb51cdb54bdc23896164a17621b927fed18eb5807cf5c4392723ec052baaff6aeabf61ed887e910eccd18afde0b7511349b2475b5cd3ec42ca4d4f6
6
+ metadata.gz: d2249bef385597430fa0f9c296a4b83e489a71dc027b681f60c57e82efe6805403ae9054d996afeb2a65c20fa7f363e868dd754b4a589249c7a639e86b616c9d
7
+ data.tar.gz: 60605b088a39d895374fc10028525b012b7d3a33579ade4f9f3c9119b014fbbf7857a18bb2f09147c65059d35f37a0858fcd126a408ba010dbd1c82ccc7e7788
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ <a name="v2.98.0"></a>
2
+ ### v2.98.0 (2022-03-29)
3
+
4
+ #### Features
5
+
6
+ * support debug logging of entire request and response ([42eb4a17](/../../commit/42eb4a17))
7
+
1
8
  <a name="v2.97.0"></a>
2
9
  ### v2.97.0 (2022-03-29)
3
10
 
@@ -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
- **Supported versions:** From v2.90.0<br/>
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
 
@@ -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!
@@ -1,3 +1,3 @@
1
1
  module PactBroker
2
- VERSION = "2.97.0"
2
+ VERSION = "2.98.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact_broker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.97.0
4
+ version: 2.98.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bethany Skurrie