Skip to content

Commit 2a49866

Browse files
authored
Merge branch 'main' into jst-start-right-with-oci
2 parents 7bc905d + d40d4e1 commit 2a49866

File tree

17 files changed

+449
-112
lines changed

17 files changed

+449
-112
lines changed

app-dev/devops-and-containers/functions/java-helloworld-with-local-dev-and-oci-functions/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ docker build -t fra.ocir.io/<YOUR OCI TENANCY NAMESPACE>/helloworld-java:1
118118
</pre>
119119

120120
In the docker build command above replace the <code>region</code> if necessary and the <code>&lt;YOUR OCI TENANCY NAMESPACE&gt;</code> with yours.
121-
122121
<p>
123122

124123
After building let's do <code>docker login</code> and <code>docker push</code> to push the container to the OCIR repo:
@@ -130,6 +129,16 @@ docker login ams.ocir.io -u '&lt;YOUR OCI TENANCY NAMESPACE&gt;/oracleidentitycl
130129
docker push fra.ocir.io/&lt;YOUR OCI TENANCY NAMESPACE&gt;/helloworld-java:1
131130
</pre>
132131

132+
<p>
133+
The same as above but using OCI cli to get the &lt;YOUR OCI TENANCY NAMESPACE&gt; which is especially handy in scripting:
134+
135+
<pre>
136+
export namespace=$(oci os ns get | jq .data | tr -d '"')
137+
docker build -t fra.ocir.io/$namespace/helloworld-java:1 .
138+
docker push fra.ocir.io/$namespace/helloworld-java:1
139+
</pre>
140+
141+
<p>
133142
The last step is to create the Function Application and the function deployment for it. This can be easily done using the Cloud UI.
134143

135144
<p>

data-platform/data-development/sql/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ Welcome to the SQL repository of the Data Development team at Oracle. This repos
44

55
Structured Query Language (SQL) is the standard programming language used for managing and manipulating relational databases. SQL allows you to perform a variety of operations such as querying data, updating records, creating and modifying schema, and controlling access to the database. It is a crucial skill for data developers and analysts, enabling efficient data retrieval and manipulation to support data-driven decision-making.
66

7+
PL/SQL, the Oracle procedural extension of SQL, is a portable, high-performance transaction-processing language. PL/SQL offers several advantages over other programming languages: from being tightly integrated with SQL to leveraging High Performance and High Productivity. PL/SQL is a portable and scalable Procedural Language which also increase Manageability and support for Object Oriented Programming.
8+
79
Below you'll find an index to all the sections available in this repository, along with a brief introduction to what you can expect in each section.
810

9-
Reviewed: 20.11.2024
11+
Reviewed: 06.03.2024
1012

1113
# Table of contents
1214

@@ -59,6 +61,7 @@ To support your development journey, here are some valuable resources related to
5961
- [SQL Blog by Chris Saxon](https://blogs.oracle.com/sql)
6062
- [The Magic of SQL by Chris Saxon - YouTube Channel](https://www.youtube.com/c/TheMagicofSQL)
6163
- [SQL and Database explained! By Connor McDonald - YouTube Channel](https://www.youtube.com/@DatabaseDude)
64+
- [Learning is not a Spectator Sport - Connor McDonald Blog](https://connor-mcdonald.com)
6265

6366
We hope you find these resources helpful in your SQL journey. If you have any questions or suggestions, please feel free to contribute or reach out to the team. Happy querying!
6467

@@ -68,4 +71,5 @@ Copyright (c) 2024 Oracle and/or its affiliates.
6871

6972
Licensed under the Universal Permissive License (UPL), Version 1.0.
7073

71-
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
74+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
75+

security/security-design/shared-assets/oci-security-health-check-standard/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 Oracle and/or its affiliates.
1+
Copyright (c) 2022-2025 Oracle and/or its affiliates.
22

33
The Universal Permissive License (UPL), Version 1.0
44

security/security-design/shared-assets/oci-security-health-check-standard/README.md

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Owner: Olaf Heimburger
44

5-
Version: 241206
5+
Version: 250307 (cis_report.py version 2.8.8) for CIS OCI Foundation Benchmark 2.0.0
66

77
Reviewed: 01.02.2024
88

@@ -13,7 +13,7 @@ Reviewed: 01.02.2024
1313

1414
## When to use this asset?
1515

16-
The *OCI Security Health Check - Standard Edition* checks an OCI tenancy for [CIS Oracle Cloud Infrastructure Foundations Benchmark](https://www.cisecurity.org/benchmark/Oracle_Cloud) compliance.
16+
The *OCI Security Health Check - Standard Edition* checks your OCI tenancy for [CIS Oracle Cloud Infrastructure Foundations Benchmark](https://www.cisecurity.org/benchmark/Oracle_Cloud) compliance.
1717

1818
### Disclaimer
1919

@@ -28,6 +28,25 @@ The main goals of this script are:
2828
- Make the run as easy and smooth as possible.
2929
- Do not affect your desktop whenever possible.
3030

31+
## Benefits of this package
32+
33+
This package includes *two* files
34+
- standard.sh
35+
- scripts/cis_reports/cis_reports.py
36+
37+
The file standard.sh acts as the entry point and does the following:
38+
39+
- Automatic check for Python runtime version
40+
- Automatic venv creation and activation
41+
- Automatci installation of required Python libraries
42+
- Automatic **OCI Cloud Shell** and tenancy name detection
43+
- Automatic creation of timestamped output directory
44+
- Call of cis_reports.py
45+
- Automatic output archive (ZIP file) creation
46+
- Automatic runtime protocol
47+
48+
Tested on **OCI Cloud Shell** with **Public network**, **Oracle Linux**, **MacOS 12** and higher.
49+
3150
## Complete Runtime Example
3251

3352
See the *OCI Security Health Check - Standard Edition* in action and watch the [OCI Health Checks - Self Service video](https://www.youtube.com/watch?v=EzjKLxfxaAM).
@@ -38,22 +57,22 @@ See the *OCI Security Health Check - Standard Edition* in action and watch the [
3857

3958
Before running the *OCI Security Health Check - Standard Edition* you should download and verify it.
4059

41-
- Download the latest distribution [oci-security-health-check-standard-241206.zip](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241206.zip).
60+
- Download the latest distribution [oci-security-health-check-standard-250307.zip](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-250307.zip).
4261
- Download the respective checksum file:
43-
- [oci-security-health-check-standard-241206.sha512](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241206.sha512).
44-
- [oci-security-health-check-standard-241206.sha512256](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241206.sha512256).
62+
- [oci-security-health-check-standard-250307.sha512](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-250307.sha512).
63+
- [oci-security-health-check-standard-250307.sha512256](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-250307.sha512256).
4564
- Verify the integrity of the distribution. Both files must be in the same directory (for example, in your downloads directory).
4665

4766
On MacOS:
4867
```
4968
cd <your_downloads_directory>
50-
shasum -a 512256 -c oci-security-health-check-standard-241206.sha512256
69+
shasum -a 512256 -c oci-security-health-check-standard-250307.sha512256
5170
```
5271
5372
On Linux (including Cloud Shell):
5473
```
5574
cd <your_downloads_directory>
56-
sha512sum -c oci-security-health-check-standard-241206.sha512
75+
sha512sum -c oci-security-health-check-standard-250307.sha512
5776
```
5877
5978
**Reject the downloaded file if the check fails!**
@@ -66,10 +85,10 @@ In OCI Cloud Shell you can do a short cut without downloading the files mentione
6685
2. Open Cloud Shell
6786
3. Run these commands in your Cloud Shell:
6887
```
69-
wget -q https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241206.zip
70-
wget -q https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241206.sha512
71-
sha512sum -c oci-security-health-check-standard-241206.sha512
72-
unzip -q oci-security-health-check-standard-241206.zip
88+
wget -q https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-250307.zip
89+
wget -q https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-250307.sha512
90+
sha512sum -c oci-security-health-check-standard-250307.sha512
91+
unzip -q oci-security-health-check-standard-250307.zip
7392
```
7493
7594
## Prepare the OCI Tenancy
@@ -145,7 +164,7 @@ The *OCI Security Health Check - Standard Edition* would not be possible without
145164
146165
# License
147166
148-
Copyright (c) 2024 Oracle and/or its affiliates.
167+
Copyright (c) 2022-2025 Oracle and/or its affiliates.
149168
150169
Licensed under the Universal Permissive License (UPL), Version 1.0.
151170

security/security-design/shared-assets/oci-security-health-check-standard/files/oci-security-health-check-standard/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 Oracle and/or its affiliates.
1+
Copyright (c) 2022-2025 Oracle and/or its affiliates.
22

33
The Universal Permissive License (UPL), Version 1.0
44

security/security-design/shared-assets/oci-security-health-check-standard/files/oci-security-health-check-standard/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Owner: Olaf Heimburger
44

5-
Version: 241206 (cis_report.py version 2.8.6)
5+
Version: 250307 (cis_report.py version 2.8.8) for CIS OCI Foundation Benchmark 2.0.0
66

77
## When to use this asset?
88

@@ -27,22 +27,22 @@ The main goals of this script are:
2727

2828
Before running the *OCI Security Health Check - Standard Edition* you should download and verify it.
2929

30-
- Download the latest distribution [oci-security-health-check-standard-241206.zip](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241206.zip).
30+
- Download the latest distribution [oci-security-health-check-standard-250307.zip](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-250307.zip).
3131
- Download the respective checksum file:
32-
- [oci-security-health-check-standard-241206.sha512](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241206.sha512).
33-
- [oci-security-health-check-standard-241206.sha512256](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-241206.sha512256).
32+
- [oci-security-health-check-standard-250307.sha512](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-250307.sha512).
33+
- [oci-security-health-check-standard-250307.sha512256](https://github.com/oracle-devrel/technology-engineering/raw/main/security/security-design/shared-assets/oci-security-health-check-standard/files/resources/oci-security-health-check-standard-250307.sha512256).
3434
- Verify the integrity of the distribution. Both files must be in the same directory (for example, in your downloads directory).
3535

3636
On MacOS:
3737
```
3838
cd <your_downloads_directory>
39-
shasum -a 512256 -c oci-security-health-check-standard-241206.sha512256
39+
shasum -a 512256 -c oci-security-health-check-standard-250307.sha512256
4040
```
4141
4242
On Linux (including Cloud Shell):
4343
```
4444
cd <your_downloads_directory>
45-
sha512sum -c oci-security-health-check-standard-241206.sha512
45+
sha512sum -c oci-security-health-check-standard-250307.sha512
4646
```
4747
4848
**Reject the downloaded file when the check fails!**
@@ -187,7 +187,7 @@ allow group 'Default'/'grp-auditors' to inspect vcns in compartment <compartment
187187
- Upload the distribution file.
188188
- Extract it
189189
```
190-
unzip -q oci-security-health-check-standard-241206.zip
190+
unzip -q oci-security-health-check-standard-250307.zip
191191
```
192192
193193
#### Run the script
@@ -261,11 +261,11 @@ allow group 'Default'/'grp-auditors' to inspect vcns in compartment <compartment
261261
Follow the instructions to select /usr/bin/python3.9
262262
- Log out
263263
264-
- From your desktop, upload the `oci-security-health-check-standard-241206.zip` file to the Compute VM using any SFTP client.
264+
- From your desktop, upload the `oci-security-health-check-standard-250307.zip` file to the Compute VM using any SFTP client.
265265
- Log into the Compute VM
266266
- Extract the distribution
267267
```
268-
unzip -q oci-security-health-check-standard-241206.zip
268+
unzip -q oci-security-health-check-standard-250307.zip
269269
```
270270
- Change directory into `oci-security-health-check-standard`:
271271
```
@@ -337,7 +337,7 @@ The Compliance Checking Script is certified by the [CIS Center of Internet Secur
337337
338338
# License
339339
340-
Copyright (c) 2022-2024 Oracle and/or its affiliates.
340+
Copyright (c) 2022-2025 Oracle and/or its affiliates.
341341
342342
Licensed under the Universal Permissive License (UPL), Version 1.0.
343343

security/security-design/shared-assets/oci-security-health-check-standard/files/oci-security-health-check-standard/README.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
OCI Security Health Check - Standard Edition
33
============================================
44
Owner: Olaf Heimburger
5-
Version: 241206 (cis_report.py version 2.8.6)
5+
Version: 250307 (cis_report.py version 2.8.8) for CIS OCI Foundation Benchmark 2.0.0
66

77
When to use this asset?
88

@@ -85,7 +85,7 @@ Usage
8585
- From the menu select the Cloud Shell item.
8686
- When running it the first time:
8787
- Upload the provided ZIP file.
88-
- Extract it with unzip -q oci-security-health-check-standard-241206.zip
88+
- Extract it with unzip -q oci-security-health-check-standard-250307.zip
8989
- Change directory into oci-security-health-check-standard
9090
$ cd oci-security-health-check-standard
9191
$ screen
@@ -142,11 +142,11 @@ Usage
142142
- Log out
143143

144144
- From your desktop, upload the
145-
"oci-security-health-check-standard-241206.zip" file to the Compute VM
145+
"oci-security-health-check-standard-250307.zip" file to the Compute VM
146146
using any SFTP client.
147147
- Log into the Compute VM
148148
- Extract the distribution
149-
unzip -q oci-security-health-check-standard-241206.zip
149+
unzip -q oci-security-health-check-standard-250307.zip
150150

151151
- Change directory into "oci-security-health-check-standard":
152152
cd oci-security-health-check-standard
@@ -215,7 +215,7 @@ The Compliance Checking Script is certified by the Center of Internet Security
215215

216216
License
217217

218-
Copyright (c) 2022-2024 Oracle and/or its affiliates.
218+
Copyright (c) 2022-2025 Oracle and/or its affiliates.
219219

220220
Licensed under the Universal Permissive License (UPL), Version 1.0.
221221

security/security-design/shared-assets/oci-security-health-check-standard/files/oci-security-health-check-standard/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pytz
33
pandas
44
openpyxl>=3.1.5
55
pyyaml>=6.0
6-
oci>=2.129.4
6+
oci>=2.147.0
77
requests
88
matplotlib
99
numpy

0 commit comments

Comments
 (0)