Skip to content

Commit b682ba6

Browse files
dishankkalra23Dishank-Kalra1Ak-sky
authored
feat: initial DA release - fully-configurable variant (#674)
* update: add CBR DA * fix: cbr_zones variable definition * update: add cbr rules creation * update: add cbr zones to service access group * fix: remove complex variable usage and add helping docs * fix: update helper doc * fix: update required_version * update: add ibm_catalog.json * docs: update readme * fix: add reference architecture and offering icon * docs: update readme * tests: add unit test for basic solution * fixes * tests: add mocked data from cbr_rules and make enforcement_mode to disabled by default * SKIP UPGRADE TEST * addressed review comments * addressed review comments * addressed review comments * addressed review comments --------- Co-authored-by: Dishank-Kalra1 <[email protected]> Co-authored-by: Akash Kumar <[email protected]>
1 parent e2188e1 commit b682ba6

File tree

14 files changed

+815
-0
lines changed

14 files changed

+815
-0
lines changed

.catalog-onboard-pipeline.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
apiVersion: v1
3+
offerings:
4+
- name: deploy-arch-ibm-context-based-restrictions
5+
kind: solution
6+
catalog id: 7df1e4ca-d54c-4fd0-82ce-3d13247308cd
7+
offering id: dba24f56-79ac-411a-8e3c-08af0171d3dd
8+
variations:
9+
- name: fully-configurable
10+
mark_ready: true
11+
install_type: fullstack

.releaserc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
}],
1111
["@semantic-release/exec", {
1212
"successCmd": "echo \"SEMVER_VERSION=${nextRelease.version}\" >> $GITHUB_ENV"
13+
}],
14+
["@semantic-release/exec",{
15+
"publishCmd": "./ci/trigger-catalog-onboarding-pipeline.sh --version=v${nextRelease.version}"
1316
}]
1417
]
1518
}

ibm_catalog.json

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"products": [
3+
{
4+
"name": "deploy-arch-ibm-context-based-restrictions",
5+
"label": "Cloud automation for Context Based Restrictions",
6+
"product_kind": "solution",
7+
"tags": [
8+
"ibm_created",
9+
"target_terraform",
10+
"terraform",
11+
"solution",
12+
"security"
13+
],
14+
"keywords": [
15+
"cbr",
16+
"context-based-restrictions",
17+
"context based restrictions",
18+
"zones",
19+
"rules",
20+
"cbr zones",
21+
"cbr rules",
22+
"IaC",
23+
"infrastructure as code",
24+
"terraform",
25+
"solution"
26+
],
27+
"short_description": "Creates and configures Context Based Restrictions Network Zones and Rules.",
28+
"long_description": "This deployable architecture is used to provision and configure [IBM Context Based Restrictions Network Zones](https://cloud.ibm.com/context-based-restrictions/zones) and [IBM Context Based Restrictions Rules](https://cloud.ibm.com/context-based-restrictions/rules).\n\n\n💡 This Terraform-based automation is part of a broader suite of IBM-maintained Infrastructure as Code (IaC) asset collection, each following the naming pattern \"Cloud automation for *servicename*\" and focusing on single IBM Cloud service. These single-service deployable architectures can be used on their own to streamline and automate service deployments through an [IaC approach](https://cloud.ibm.com/docs/secure-enterprise?topic=secure-enterprise-understanding-projects), or assembled together into a broader [automated IaC stack](https://cloud.ibm.com/docs/secure-enterprise?topic=secure-enterprise-config-stack) to automate the deployment of an end-to-end solution architecture.",
29+
"offering_docs_url": "https://github.com/terraform-ibm-modules/terraform-ibm-cbr/tree/main/solutions/fully-configurable/README.md",
30+
"offering_icon_url": "https://github.com/terraform-ibm-modules/terraform-ibm-cbr/tree/main/images/cbr_icon.svg",
31+
"provider_name": "IBM",
32+
"features": [
33+
{
34+
"title": "Creates Context Based Restrictions Network Zones",
35+
"description": "For more details on an Context Based Restrictions Network Zones, [see here](https://cloud.ibm.com/context-based-restrictions/zones)."
36+
},
37+
{
38+
"title": "Creates Context Based Restrictions Rules",
39+
"description": "For more details on an Context Based Restrictions Rules, [see here](https://cloud.ibm.com/docs/account?topic=account-account_setup#how_access)."
40+
},
41+
{
42+
"title": "Creates Access Group Policies",
43+
"description": "For more details on an Access Group Polices, [see here](https://cloud.ibm.com/docs/account?topic=account-account_setup#how_access)."
44+
}
45+
],
46+
"support_details": "This product is in the community registry, as such support is handled through the originated repo. If you experience issues please open an issue in that repository [https://github.com/terraform-ibm-modules/terraform-ibm-cbr/issues](https://github.com/terraform-ibm-modules/terraform-ibm-cbr/issues). Please note this product is not supported via the IBM Cloud Support Center.",
47+
"flavors": [
48+
{
49+
"label": "Fully configurable",
50+
"name": "fully-configurable",
51+
"index": 1,
52+
"install_type": "fullstack",
53+
"working_directory": "solutions/fully-configurable",
54+
"configuration": [
55+
{
56+
"key": "ibmcloud_api_key"
57+
},
58+
{
59+
"key": "prefix",
60+
"required": true
61+
},
62+
{
63+
"key": "cbr_zones",
64+
"required": true
65+
},
66+
{
67+
"key": "cbr_rules",
68+
"required": true
69+
}
70+
],
71+
"iam_permissions": [
72+
{
73+
"role_crns": [
74+
"crn:v1:bluemix:public:iam::::role:Editor"
75+
],
76+
"service_name": "context-based-restrictions",
77+
"notes": "Required if you are creating Context Based Restrictions Network Zones and Rules."
78+
}
79+
],
80+
"architecture": {
81+
"features": [
82+
{
83+
"title": " ",
84+
"description": "Configured to use IBM secure by default standards, but can be edited to fit your use case."
85+
}
86+
],
87+
"diagrams": [
88+
{
89+
"diagram": {
90+
"caption": "Context Based Restrictions",
91+
"url": "https://github.com/terraform-ibm-modules/terraform-ibm-cbr/tree/main/reference-architecture/cbr.svg",
92+
"type": "image/svg+xml"
93+
},
94+
"description": "This architecture supports creating and configuring Context Based Restrictions rules and network zones."
95+
}
96+
]
97+
},
98+
"terraform_version": "1.10.5"
99+
}
100+
]
101+
}
102+
]
103+
}

images/cbr_icon.svg

Lines changed: 4 additions & 0 deletions
Loading

reference-architecture/cbr.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)