Skip to content

Commit 871aee8

Browse files
authored
Merge pull request #14 from IBM-Security/v22.07-assets
IAG v22.07 release updates
2 parents 7263a48 + 95ad127 commit 871aee8

File tree

197 files changed

+1369
-5171
lines changed

Some content is hidden

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

197 files changed

+1369
-5171
lines changed

config-ui/generator/src/com/ibm/iag/ui/Component.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,15 @@ else if(_tabDescription.containsKey(name))
11481148
StringBuffer disabledStr = new StringBuffer();
11491149
handleRequiredFields(disabledStr);
11501150

1151-
retVal.append(" <Button disabled={" + disabledStr.toString() + "} onClick={() => { handleSave(loadGrid, idPrefix, " + Constants.EXTRA_BTN_PARAMS + " doClose); }}>Save</Button>\n");
1151+
if(disabledStr.length() > 0)
1152+
{
1153+
retVal.append(" <Button disabled={" + disabledStr.toString() + "} onClick={() => { handleSave(loadGrid, idPrefix, " + Constants.EXTRA_BTN_PARAMS + " doClose); }}>Save</Button>\n");
1154+
}
1155+
else
1156+
{
1157+
retVal.append(" <Button onClick={() => { handleSave(loadGrid, idPrefix, " + Constants.EXTRA_BTN_PARAMS + " doClose); }}>Save</Button>\n");
1158+
}
1159+
11521160
retVal.append(" </div>\n");
11531161
}
11541162

config-ui/react.skeleton/src/content/landingPage/landingPage.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import yaml from 'js-yaml';
1515

1616
const DOC_URL = "https://docs.verify.ibm.com/gateway/docs/";
1717

18-
const SAMPLE_EMPTY_YAML = "version: 21.12";
18+
const SAMPLE_EMPTY_YAML = "version: 22.07";
1919

2020
const SAMPLE_EMPTY = {
2121
"yaml": SAMPLE_EMPTY_YAML,
2222
"link": "#"
2323
}
2424

25-
const SAML_AUTHZ_YAML = "version: \"21.12\"\n" +
25+
const SAML_AUTHZ_YAML = "version: \"22.07\"\n" +
2626
"#\n" +
2727
"# Configure an IAG container to proxy a single Web application, and define \n" +
2828
"# an authorization policy for the Web application. This configuration will \n" +
@@ -132,7 +132,7 @@ const SAMPLE_AUTHZ = {
132132
"link": DOC_URL + "examples-authorization-yaml"
133133
}
134134

135-
const SAMPLE_BASIC_YAML = "version: \"21.12\"\n" +
135+
const SAMPLE_BASIC_YAML = "version: \"22.07\"\n" +
136136
"\n" +
137137
"#\n" +
138138
"# Configure an IAG container with a very basic configuration. This \n" +
@@ -191,7 +191,7 @@ const SAMPLE_BASIC = {
191191
"link": DOC_URL + "examples-oidc-verify-yaml"
192192
}
193193

194-
const SAMPLE_ISVA_YAML = "version: \"21.12\"\n" +
194+
const SAMPLE_ISVA_YAML = "version: \"22.07\"\n" +
195195
"\n" +
196196
"#\n" +
197197
"# Configure an IAG container with a very basic configuration. This \n" +
@@ -257,7 +257,7 @@ const SAMPLE_ISVA = {
257257
"link": DOC_URL + "examples-oidc-verify-access-yaml"
258258
}
259259

260-
const SAMPLE_CREDVIEWER_YAML = "version: \"21.12\"\n" +
260+
const SAMPLE_CREDVIEWER_YAML = "version: \"22.07\"\n" +
261261
"\n" +
262262
"#\n" +
263263
"# Configure an IAG container with a very basic configuration. This \n" +
@@ -330,7 +330,7 @@ const SAMPLE_CREDVIEWER = {
330330
"link": DOC_URL + "examples-cred-viewer-yaml"
331331
}
332332

333-
const SAMPLE_LWP_YAML = "version: \"21.12\"\n" +
333+
const SAMPLE_LWP_YAML = "version: \"22.07\"\n" +
334334
"\n" +
335335
"#\n" +
336336
"# Configure an IAG container with a very basic configuration. This \n" +
@@ -397,7 +397,7 @@ const SAMPLE_LWP = {
397397
"link": DOC_URL + "examples-local-webpages-yaml"
398398
}
399399

400-
const SAMPLE_RL_YAML = "version: \"21.12\"\n" +
400+
const SAMPLE_RL_YAML = "version: \"22.07\"\n" +
401401
"\n" +
402402
"#\n" +
403403
"# Configure an IAG container to proxy a single Web application. This \n" +
@@ -494,7 +494,7 @@ const SAMPLE_RL = {
494494
"link": DOC_URL + "examples-rate-limiting-yaml"
495495
};
496496

497-
const SAMPLE_STDAPP_YAML = "version: \"21.12\"\n" +
497+
const SAMPLE_STDAPP_YAML = "version: \"22.07\"\n" +
498498
"\n" +
499499
"#\n" +
500500
"# Configure an IAG container to proxy a single Web application. This \n" +
@@ -563,7 +563,7 @@ const SAMPLE_STDAPP = {
563563
"link": DOC_URL + "examples-standard-application-yaml"
564564
};
565565

566-
const SAMPLE_TRACING_YAML = "version: \"21.12\"\n" +
566+
const SAMPLE_TRACING_YAML = "version: \"22.07\"\n" +
567567
"\n" +
568568
"#\n" +
569569
"# Configure an IAG container to proxy a single Web application, and activate\n" +
@@ -647,7 +647,7 @@ const SAMPLE_TRACING = {
647647
"link": DOC_URL + "examples-tracing-yaml"
648648
};
649649

650-
const SAMPLE_UNAUTH_YAML = "version: \"21.12\"\n" +
650+
const SAMPLE_UNAUTH_YAML = "version: \"22.07\"\n" +
651651
"\n" +
652652
"#\n" +
653653
"# Configure an IAG container to proxy a single Web application. Due to the\n" +
@@ -671,7 +671,7 @@ const SAMPLE_UNAUTH = {
671671
"link": DOC_URL + "examples-unauth-application-yaml"
672672
};
673673

674-
const SAMPLE_ISV_2FA_YAML = "version: \"21.12\"\n" +
674+
const SAMPLE_ISV_2FA_YAML = "version: \"22.07\"\n" +
675675
"\n" +
676676
"#\n" +
677677
"# Configure an IAG container to proxy a single Web application, and define\n" +
@@ -756,7 +756,7 @@ const SAMPLE_ISV_2FA = {
756756
"link": DOC_URL + "examples-2fa-verify-yaml"
757757
};
758758

759-
const SAMPLE_VH_YAML = "version: \"21.12\"\n" +
759+
const SAMPLE_VH_YAML = "version: \"22.07\"\n" +
760760
"\n" +
761761
"#\n" +
762762
"# Configure an IAG container to proxy a single virtual host Web application. \n" +
@@ -825,7 +825,7 @@ const SAMPLE_VH = {
825825
"link": DOC_URL + "examples-virtualhost-application-yaml"
826826
};
827827

828-
const SAMPLE_HTTPTRAN_YAML = "version: \"21.12\"\n" +
828+
const SAMPLE_HTTPTRAN_YAML = "version: \"22.07\"\n" +
829829
"\n" +
830830
"#\n" +
831831
"# Configure an IAG container to proxy a single Web application. This \n" +
@@ -925,7 +925,7 @@ const SAMPLE_HTTPTRAN = {
925925
"link": DOC_URL + "examples-transformation-yaml"
926926
};
927927

928-
const SAMPLE_OAUTH_ISVA_YAML = "version: \"21.12\"\n" +
928+
const SAMPLE_OAUTH_ISVA_YAML = "version: \"22.07\"\n" +
929929
"\n" +
930930
"#\n" +
931931
"# Configure an IAG container with a very basic configuration. This \n" +
@@ -981,7 +981,7 @@ const SAMPLE_OAUTH_ISVA = {
981981
"link": DOC_URL + "examples-oauth-verify-access-yaml"
982982
};
983983

984-
const SAMPLE_OAUTH_ISV_YAML = "version: \"21.12\"\n" +
984+
const SAMPLE_OAUTH_ISV_YAML = "version: \"22.07\"\n" +
985985
"\n" +
986986
"#\n" +
987987
"# Configure an IAG container with a very basic configuration. This \n" +

openapi/logging.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ logging:
163163
- file_name: http.log
164164
component: pdweb.http
165165
level: 5
166+
max_file_size: 12
167+
max_rollover_files: 10
168+
compress: true
166169
items:
167170
type: object
168171
properties:
@@ -192,6 +195,29 @@ logging:
192195
minimum: 0
193196
maximum: 9
194197
default: 0
198+
max_file_size:
199+
description: >
200+
The maximum size (in MB) that the file can reach before it
201+
is rolled over.
202+
type: number
203+
minimum: 1
204+
maximum: unlimited
205+
default: 1
206+
max_rollover_files:
207+
description: >
208+
The maximum number of rollover files to be kept on disk. When
209+
the number of rollover log files reaches the specified
210+
threshold, the oldest log file is deleted.
211+
type: number
212+
default: 1
213+
minimum: 1
214+
maximum: unlimited
215+
compress:
216+
description: >
217+
A boolean which indicates whether rolled over log files should
218+
be automatically compressed to conserve disk space.
219+
type: boolean
220+
default: true
195221

196222
transaction:
197223
description: >

openapi/openapi.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright contributors to the Application Gateway project
22
openapi: '3.0'
33
info:
4-
version: 21.12
4+
version: 22.07
55
title: IBM Application Gateway Configuration Specification (OpenAPI)
66
components:
77
schemas:
@@ -19,6 +19,7 @@ components:
1919
- 21.06
2020
- 21.09
2121
- 21.12
22+
- 22.07
2223
secrets:
2324
$ref: "secrets.yaml#/secrets"
2425
server:

openapi/policies.yaml

Lines changed: 72 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,63 @@ policies:
3535
paths:
3636
- "*"
3737
method: GET
38-
rule: "@http_trans_rule.xsl"
38+
rule: "@http_trans_rule.lua"
39+
type: array
40+
items:
41+
type: object
42+
properties:
43+
44+
name:
45+
description: >
46+
The name which is associated with this transformation.
47+
type: string
48+
x-uuid: true
49+
x-required: true
50+
host:
51+
description: >
52+
The host (obtained from the host header in the request) for
53+
which this transformation will take place. If no host header
54+
is specified all hosts will be matched.
55+
type: string
56+
paths:
57+
description: >
58+
The paths for which this transformation will take place. If the wildcard
59+
"*" is specified all paths will be matched. This entry is an array and can
60+
be used to specify multiple paths.
61+
type: array
62+
items:
63+
type: string
64+
x-uuid: true
65+
x-required: true
66+
x-name: Path
67+
method:
68+
description: >
69+
The HTTP method for which this transformation will take
70+
place. If the wildcard "*" is specified all methods will be matched.
71+
type: string
72+
rule:
73+
description: >
74+
The HTTP transformation rule.
75+
type: string
76+
77+
postazn:
78+
description: >
79+
This node defines the transformations which will take place on
80+
requests after authorization has been completed. This entry is
81+
an array and can be used to specify multiple transformations.
82+
83+
84+
Example:
85+
86+
policies:
87+
http_transformations:
88+
postazn:
89+
- name: resource_1_postazn_rule
90+
host: www.test.com
91+
paths:
92+
- "*"
93+
method: GET
94+
rule: "@http_trans_rule.lua"
3995
type: array
4096
items:
4197
type: object
@@ -92,7 +148,13 @@ policies:
92148
- "/resource_1"
93149
- "/alt/resource_1"
94150
method: GET
95-
rule: "@http_trans_rule.xsl"
151+
rule: "@http_trans_rule.lua"
152+
- name: legacy_xslt_rule
153+
host: www.test.com
154+
paths:
155+
- "/legacy"
156+
method: GET
157+
rule: "@legacy_rule.xsl"
96158
attributes:
97159
- AZN_CRED_PRINCIPAL_NAME
98160
type: array
@@ -134,16 +196,18 @@ policies:
134196
type: string
135197
attributes:
136198
description: >
137-
The credential attributes which will be included in the XML
138-
input document, used when evaluating the HTTP transformation
139-
rule. The attributes will be stored in the
140-
HTTPResponse/credential/attributes/attribute path of the
141-
XML document.
199+
If the rule is a legacy XSLT based rule, this entry specifies the credential
200+
attributes which will be included in the XML input document, used when
201+
evaluating the HTTP transformation rule. The attributes will be stored in the
202+
HTTPResponse/credential/attributes/attribute path of the XML document.
203+
204+
This is entry is not required and has no effect when using a Lua transformation
205+
rule.
142206
type: array
143207
items:
144208
type: string
145209
x-uuid: true
146-
x-required: true
210+
x-required: false
147211
x-name: Attribute
148212

149213
cors:

0 commit comments

Comments
 (0)