Skip to content

Commit 3ac6ab5

Browse files
authored
Merge pull request #1 from IBM-Security/v20.01
IAG v20.01 release updates.
2 parents 5195388 + 0040e4d commit 3ac6ab5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1291
-344
lines changed

openapi/ci_oidc.yaml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,25 @@ ci_oidc:
6262
match a configured rule it will by default be added to the
6363
credential.
6464
65-
Example: ci_oidc:
66-
hostname: www.test.com
67-
client_id: 11111111-2222-3333-4444-5a5a5a5a5a5a5a
68-
client_secret: 1a2b3c4d5e
69-
mapped_identity: "{sub}"
70-
redirect_uri_host: www.test2.com
71-
response_type: code
72-
response_mode: query
73-
proxy: https://www.testproxy.com:443
74-
scopes:
75-
- profile
76-
- email
77-
allowed_query_args:
78-
- "oidc_test=value"
79-
bearer_token_attrs:
80-
- "-access_token"
81-
id_token_attrs:
82-
- "-email"
65+
Example: identity:
66+
ci_oidc:
67+
hostname: www.test.com
68+
client_id: 11111111-2222-3333-4444-5a5a5a5a5a5a5a
69+
client_secret: 1a2b3c4d5e
70+
mapped_identity: "{sub}"
71+
redirect_uri_host: www.test2.com
72+
response_type: code
73+
response_mode: query
74+
proxy: https://www.testproxy.com:443
75+
scopes:
76+
- profile
77+
- email
78+
allowed_query_args:
79+
- "oidc_test=value"
80+
bearer_token_attrs:
81+
- "-access_token"
82+
id_token_attrs:
83+
- "-email"
8384
8485
type: object
8586
properties:

openapi/logging.yaml

Lines changed: 68 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@ logging:
1616
A boolean which indicates whether the logging will be
1717
in JSON format or not. If not specified logging will not be
1818
in JSON format.
19-
Example: json_logging: true
19+
Example: logging:
20+
json_logging: true
2021
type: boolean
2122
default: false
2223

2324
components:
2425
description: >
2526
Specifies an array of auditing components to be enabled.
26-
Example: components: ["audit.authn", "audit.azn"]
27+
Example: logging:
28+
components:
29+
- audit.authn
30+
- audit.azn
2731
type: array
2832
items:
2933
type: string
@@ -77,7 +81,7 @@ logging:
7781
Example: logging:
7882
request_log:
7983
file:
80-
file_name: /var/iag/logs/request.log
84+
file_name: request.log
8185
format: "%t %a %R"
8286
type: object
8387
properties:
@@ -90,7 +94,11 @@ logging:
9094
properties:
9195
file_name:
9296
description: >
93-
The full path name of the generated log file.
97+
The name of the generated log file. If the file name
98+
is supplied without any path information the file will be
99+
written to the '/var/iag/logs' directory. If the file name
100+
contains path information the hosting directory must be created
101+
and available before the container is started.
94102
type: string
95103
max_file_size:
96104
description: >
@@ -130,18 +138,22 @@ logging:
130138
the environment.
131139
Example: logging:
132140
tracing:
133-
- file_name: /var/iag/logs/http_trans.log
141+
- file_name: http_trans.log
134142
component: pdweb.http.transformation
135143
level: 9
136-
- file_name: /var/iag/logs/http.log
144+
- file_name: http.log
137145
component: pdweb.http
138146
level: 5
139147
items:
140148
type: object
141149
properties:
142150
file_name:
143151
description: >
144-
The full path name of the generated log file.
152+
The name of the generated log file. If the file name
153+
is supplied without any path information the file will be
154+
written to the '/var/iag/logs' directory. If the file name
155+
contains path information the hosting directory must be created
156+
and available before the container is started.
145157
type: string
146158
component:
147159
description: >
@@ -164,15 +176,19 @@ logging:
164176
environment.
165177
Example: logging:
166178
transaction:
167-
file_name: /var/iag/logs/trans.log
179+
file_name: trans.log
168180
max_file_size: 1024
169181
max_files: 5
170182
compress: true
171183
type: object
172184
properties:
173185
file_name:
174186
description: >
175-
The full path name of the generated log file.
187+
The name of the generated log file. If the file name is supplied
188+
without any path information the file will be written to the
189+
'/var/iag/logs' directory. If the file name contains path
190+
information the hosting directory must be created and available
191+
before the container is started.
176192
type: string
177193
max_file_size:
178194
description: >
@@ -200,50 +216,50 @@ logging:
200216

201217
statistics:
202218
description: >
203-
Specifies an array of statistic gathering components to be enabled.
204-
Statistics can be used to assist with problem determination in
205-
the environment.
219+
Configures the statistic collection and publishing capability for the
220+
gateway. The statistics for the configured components will be
221+
published to the specified statsd server over UDP. Statistics can be
222+
used to monitor the environment, or assist with problem determination
223+
in the environment.
206224
Example: logging:
207225
statistics:
208-
- file_name: /var/iag/logs/authn_stats.log
209-
component: pdweb.authn
210-
count: 20
211-
interval: 20
212-
- file_name: /var/iag/logs/http_stats.log
213-
component: pdweb.http
214-
count: 20
215-
interval: 20
216-
type: array
217-
items:
218-
type: object
219-
properties:
220-
file_name:
221-
description: >
222-
The full path name of the generated log file.
223-
type: string
224-
component:
225-
description: >
226-
The name of the statistical component to be enabled. Refer to
227-
the troubleshooting documentation for the full list of component names.
226+
server: 127.0.0.1
227+
port: 8125
228+
frequency: 20
229+
components:
230+
- iag.authn
231+
type: object
232+
properties:
233+
server:
234+
description: >
235+
The server on which the statsd server is listening for requests.
236+
type: string
237+
port:
238+
description: >
239+
The port on which the statsd server is listening for requests.
240+
type: number
241+
default: 8125
242+
frequency:
243+
description: >
244+
The frequency (in seconds) that statistics are sent from the
245+
memory buffer to the statsd server.
246+
type: number
247+
minimum: 1
248+
maximum: unlimited
249+
components:
250+
type: array
251+
description: >
252+
Specifies an array of statistic components to be enabled. Refer to
253+
the troubleshooting documentation for a full description of the
254+
available component names.
255+
items:
228256
type: string
229-
count:
230-
description: >
231-
The number of reports sent to the log file. After the count value is reached,
232-
reporting to a log file stops. However, the statistic component is still enabled.
233-
If the interval value is not set or is set to 0 the count will have no effect.
234-
If the interval value is set and count is not set, statistics information will
235-
be sent to the log file at the interval indefinitely.
236-
type: number
237-
minimum: 1
238-
maximum: unlimited
239-
interval:
240-
description: >
241-
The time interval (in seconds) when statistics are sent from the
242-
memory buffer to the log file. If the interval is not set or is set to 0,
243-
no statistics are sent to the log file. However, the statistic component is still enabled.
244-
If interval is set and count value is not set, statistics information will
245-
be sent to the log file at the interval indefinitely.
246-
type: number
247-
minimum: 0
248-
maximum: unlimited
257+
enum:
258+
- iag.authn
259+
- iag.http2
260+
- iag.https
261+
- iag.resource_server
262+
- iag.sescache
263+
- iag.threads
264+
- iag.websocket
249265

openapi/policies.yaml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ policies:
8282
- "/alt/resource_1"
8383
method: GET
8484
rule: "@http_trans_rule.xsl"
85+
attributes:
86+
- AZN_CRED_PRINCIPAL_NAME
8587
type: array
8688
items:
8789
type: object
@@ -114,6 +116,16 @@ policies:
114116
description: >
115117
The HTTP transformation rule.
116118
type: string
119+
attributes:
120+
description: >
121+
The credential attributes which will be included in the XML
122+
input document, used when evaluating the HTTP transformation
123+
rule. The attributes will be stored in the
124+
HTTPResponse/credential/attributes/attribute path of the
125+
XML document.
126+
type: array
127+
items:
128+
type: string
117129

118130
cors:
119131
description: |
@@ -260,7 +272,7 @@ policies:
260272
261273
This entry is an array and can be used to define multiple policies.
262274
Example: policies:
263-
rate-limiting:
275+
rate_limiting:
264276
- name: rate_policy_A
265277
methods:
266278
- GET
@@ -344,14 +356,34 @@ policies:
344356
items:
345357
type: string
346358

359+
full_line_match:
360+
description: >
361+
Should the location match a full line, or should it match
362+
any string in the response? When a full line match is configured
363+
the content will be inserted prior to the matching line. When a
364+
partial line match is configured the content will be inserted
365+
immediately prior to the matching string.
366+
type: boolean
367+
default: true
368+
347369
location:
348370
description: >
349-
The location where the content should be injected. The
350-
location is pattern matched against a line in the response
351-
using the '*.' wildcard characters. The maximum length of
352-
a line which can be matched by this mechanism is 8192 bytes.
371+
The location where the content should be injected. If a full
372+
line match is being used the location is pattern matched against
373+
a line in the response using the '*.' wildcard characters. The
374+
maximum length of a line which can be matched is 8192 bytes.
353375
type: string
354376

377+
replace_match:
378+
description: >
379+
If a partial line match is being used this configuration entry
380+
will control whether the matching string is replaced with
381+
the supplied content, or whether the supplied content is
382+
inserted prior to the matching string. This configuration
383+
entry will be ignored if full line matches are being used.
384+
type: boolean
385+
default: false
386+
355387
content:
356388
description: >
357389
The data which is to be injected.

0 commit comments

Comments
 (0)