Skip to content

Commit 7e63ae4

Browse files
authored
Merge branch 'main' into patch-1
2 parents adbe916 + b38f933 commit 7e63ae4

File tree

31 files changed

+90
-42
lines changed

31 files changed

+90
-42
lines changed

security/security-design/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Security Design
22

3+
The Cloud Security Design Advisory team is covering end-to-end OCI security topics depending on customers' needs and requirements.
4+
We are working closely with OCI Domain Specialists (networking, infrastructure security, data management, and observability), to provide the customer the best deep dive expertise, both on Cloud Security and Cloud Solutions.
35

46

57
Reviewed: 01.02.2024
@@ -47,7 +49,12 @@ Reviewed: 01.02.2024
4749
- [Oracle Security](https://www.oracle.com/security/)
4850
- Protect your most valuable data in the cloud and on-premises with Oracle’s security-first approach. Oracle has decades of experience securing data and applications; Oracle Cloud Infrastructure delivers a more secure cloud to our customers, building trust and protecting their most valuable data.
4951
- [Oracle Cloud Compliance](https://www.oracle.com/corporate/cloud-compliance/)
50-
- Oracle is committed to helping customers operate globally in a fast-changing business environment and address the challenges of an ever more complex regulatory environment.
52+
- Oracle is committed to helping customers operate globally in a fast-changing business environment and address the challenges of an ever more complex regulatory environment.
53+
- [Security in OCI - OCI Best Practices for security adoption](https://www.oracle.com/cloud/oci-best-practices-guide/#security-on-oci)
54+
- [Security Checklist for OCI](https://docs.oracle.com/en/solutions/oci-security-checklist/#GUID-D27BD123-8CFB-49A4-84AF-3546022638CE)
55+
- [Zero Trust Security Model](https://www.oracle.com/security/what-is-zero-trust/)
56+
- [Cloud Security Documentation](https://docs.oracle.com/en-us/iaas/Content/Security/Concepts/security.htm#Security_Guide_and_Announcements)
57+
- [OCI Architecture Center](https://www.oracle.com/uk/cloud/architecture-center/)
5158

5259
# License
5360

security/security-design/shared-assets/bastion-session-script/README.md

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

33
This shell script can be used to easily connect to the OCI Bastion service based on temporary SSH keys. Authorization is granted based on OCI CLI authentication and OCI Permissions. For OCI CLI authentication both the use of exchanged API keys and session security tokens is supported. This script works also directly on OCI Cloud Shell, however only for Managed SSH Sessions since port forwarding is not supported on OCI Cloud Shell.
44

5-
## When to use this asset?
5+
Reviewed: 01.02.2024
66

7-
Use this shell script if you want to make use of OCI Bastions in a simple and secure way.
7+
# When to use this asset?
88

9-
## How to use this asset?
9+
Use this shell script if you want to make use of OCI Bastions simply and securely.
10+
11+
# How to use this asset?
1012

1113
**Usage: ./bastion-session.sh COMMAND [ARGS]...**
1214

@@ -36,9 +38,9 @@ Example:
3638
| -p, --profile TEXT | The OCI profile in the config file to load. [default: DEFAULT]|
3739
| -s, --session TEXT | The Bastion session name. [default: Bastion-Session]|
3840
| -t, --ttl INTEGER | The Bastion session time-to-live in seconds, minimum 1800, maximum 10800. [default: 10800]|
39-
| -d, --destination-ip IP | The destination IP Address to be used for Bastion session. [default: the first private ip address of instance]|
40-
| -e, --destination-port INTEGER | The destination port to be used for Port Forwarding session. [default: 22]|
41-
| -l, --local-port INTEGER | The local port to be used for Port Forwarding session. [defaults to same value as destination port]|
41+
| -d, --destination-ip IP | The destination IP Address to be used for the Bastion session. [default: the first private ip address of instance]|
42+
| -e, --destination-port INTEGER | The destination port to be used for the Port Forwarding session. [default: 22]|
43+
| -l, --local-port INTEGER | The local port to be used for the Port Forwarding session. [defaults to same value as destination port]|
4244
| -a, --key-alg TEXT | The algorithm for the SSH key (ssh-keygen) to be used. [default: rsa]|
4345
| -k, --key-size INTEGER | The key size for the SSH key (ssh-keygen) to be used. [default: 4096]|
4446
| -pr, --private-key TEXT | The private key file to be used when not generating a temporary key pair. [by default not used]|
@@ -49,10 +51,10 @@ Prerequisites:
4951

5052
- The OCI CLI must be installed and configured.
5153
(See also [https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm))
52-
- The jq commandline JSON processer must be installed.
54+
- The jq command-line JSON processer must be installed.
5355
(See also [https://stedolan.github.io/jq](https://stedolan.github.io/jq))
5456

55-
## License
57+
# License
5658

5759
Copyright (c) 2024 Oracle and/or its affiliates.
5860

security/security-design/shared-assets/fn-datasafe-dbaudit-to-oci-logging/README.md

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,32 @@
22

33
Owner: Fabrizio Zarri
44

5-
Oracle Data Safe is a fully-integrated, regional Cloud service focused on data security. It provides a complete and integrated set of features of the Oracle Cloud Infrastructure (OCI) for protecting sensitive and regulated data in Oracle databases.
5+
Oracle Data Safe is a fully integrated, regional Cloud service focused on data security. It provides a complete and integrated set of features of the Oracle Cloud Infrastructure (OCI) for protecting sensitive and regulated data in Oracle databases.
66

7-
Oracle Data Safe delivers essential security services for Oracle Autonomous Database, Exadata Database on Dedicated Infrastructure, Oracle Base Database and Oracle Databases running in OCI. Data Safe also supports on-premises Oracle Databases, Exadata Database on Cloud@Customer, and multicloud deployments. All Oracle Database customers can reduce the risk of a data breach and simplify compliance by using Data Safe to assess configuration and user risk, monitor and audit user activity, and discover, classify, and mask sensitive data.
7+
Oracle Data Safe delivers essential security services for Oracle Autonomous Database, Exadata Database on Dedicated Infrastructure, Oracle Base Database, and Oracle Databases running in OCI. Data Safe also supports on-premises Oracle Databases, Exadata Database on Cloud@Customer, and multicloud deployments. All Oracle Database customers can reduce the risk of a data breach and simplify compliance by using Data Safe to assess configuration and user risk, monitor and audit user activity, and discover, classify, and mask sensitive data.
88

99
Oracle Functions is a serverless, highly scalable, fully managed Functions-as-a-Service platform built on Oracle Cloud Infrastructure and powered by the open-source Fn Project engine. Developers can use Oracle Functions to write and deploy code that delivers business value without worrying about provisioning or managing the underlying infrastructure. Oracle Functions is container-native, with functions packaged as Docker container images.
1010

11-
This Reference Architecture describes OCI Logging based solution for collecting Oracle Datasafe Oracle DB Audit Logs for continuous monitoring and troubleshooting. An OCI Function pulls audit logs from Data Safe REST API Endpoints regularly and ingest them in OCI Logging.
12-
From OCI Logging Data Safe DB Audit Logs, can be send to OCI Logging Analytics, external SIEM and OCI Object Storage. See [Design Guidance for SIEM Integration](https://docs.oracle.com/en-us/iaas/Content/cloud-adoption-framework/siem-integration.htm)
11+
This Reference Architecture describes OCI Logging solution for collecting Oracle Datasafe Oracle DB Audit Logs for continuous monitoring and troubleshooting. An OCI Function pulls audit logs from Data Safe REST API Endpoints regularly and ingests them in OCI Logging.
12+
From OCI Logging Data Safe DB Audit Logs, can be sent to OCI Logging Analytics, external SIEM, and OCI Object Storage. See [Design Guidance for SIEM Integration](https://docs.oracle.com/en-us/iaas/Content/cloud-adoption-framework/siem-integration.htm)
1313

14-
## Prerequisites
14+
Reviewed: 01.02.2024
15+
16+
# Prerequisites
1517

1618
- Configure Data Safe to get Database Audit Events from Oracle DataBase.
1719

18-
- Configure OCI Registry username (your OCI username) and OCI Registry user password (your OCI user authtoken), See [Generating an Auth Token to Enable Login to Oracle Cloud Infrastructure Registry](https://docs.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsgenerateauthtokens.htm)
20+
- Configure the OCI Registry username (your OCI username) and OCI Registry user password (your OCI user auth token), See [Generating an Auth Token to Enable Login to Oracle Cloud Infrastructure Registry](https://docs.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsgenerateauthtokens.htm)
1921

2022
- Create and/or Check IAM Policies to permit Oracle Cloud Infrastructure Registry username to push function image in OCI Registry. See [Policies to Control Repository Access](https://docs.oracle.com/en-us/iaas/Content/Registry/Concepts/registrypolicyrepoaccess.htm)
2123

2224
- Permission to `manage` the following types of resources in your Oracle Cloud Infrastructure tenancy: `IAM policies`, `Dynamic Group`, `vcns`, `services-gateways`, `route-tables`, `security-lists`, `subnets`, `functions`, `Monitor Alarms`, and `Notifications`.
2325

24-
- Quota to create the following resources: 1 VCN, 1 subnets, 1 Service Gateway, 1 route rule, 1 function, 1 dynamic group, 1 policy in root compartment, 1 Monitor Alarm, and 1 Notification Subscription.
26+
- Quota to create the following resources: 1 VCN, 1 subnet, 1 Service Gateway, 1 route rule, 1 function, 1 dynamic group, 1 policy in root compartment, 1 Monitor Alarm, and 1 Notification Subscription.
2527

2628
If you don't have the required permissions and quota, contact your tenancy administrator. See [Policy Reference](https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Reference/policyreference.htm), [Service Limits](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/servicelimits.htm), [Compartment Quotas](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcequotas.htm).
2729

28-
## Deploy Using Oracle Resource Manager
30+
# Deploy Using Oracle Resource Manager
2931

3032
1. Click [![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?region=home&zipUrl=https://github.com/oracle-devrel/technology-engineering/releases/download/fn-datasafe-to-oci-logging/fn-datasafe-dbaudit-to-oci-logging.zip)
3133

@@ -47,14 +49,14 @@ If you don't have the required permissions and quota, contact your tenancy admin
4749

4850
## Deploy Using the Terraform CLI
4951

50-
### Clone the Module
52+
## Clone the Module
5153
Now, you'll want a local copy of this repo. You can make that with the commands:
5254

5355
git clone https://github.com/oracle-devrel/technology-engineering.git
5456
cd security/security-design/fn-datasafe-dbaudit-to-oci-logging
5557
ls
5658

57-
### Prerequisites
59+
## Prerequisites
5860
First off, you'll need to do some pre-deploy setup for Docker and Fn Project inside your machine:
5961

6062
```
@@ -75,16 +77,16 @@ exit
7577
OR
7678

7779
you'll use [Oracle Linux Cloud Developer Image](https://docs.oracle.com/en-us/iaas/oracle-linux/developer/index.htm). The Oracle Linux Cloud Developer image provides the latest development tools, languages, and Oracle Cloud Infrastructure Software Development Kits (SDKs) to rapidly deploy, that include Podman instead of Docker.
78-
The Oracle Linux Cloud Developer image don't include Fn Project but it easy to setup:
80+
The Oracle Linux Cloud Developer image doesn't include Fn Project but it is easy to setup:
7981

8082
```
8183
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
8284
```
8385

84-
Also, please follow this [note](https://docs.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsinstalldocker.htm#Install_Docker_for_Use_with_Oracle_Functions__section_podman_instead_of_docker). By default, Fn Project (and by extension, OCI Functions) assumes the use of Docker to build and deploy function images. However, Fn Project also supports Podman as an alternative to Docker. When using Fn Project CLI version 0.6.12 and above, you can set a configuration setting to specify that you want to use Podman instead of Docker.
86+
Also, please follow this [note](https://docs.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsinstalldocker.htm#Install_Docker_for_Use_with_Oracle_Functions__section_podman_instead_of_docker). By default, Fn Project (and by extension, OCI Functions) assumes the use of Docker to build and deploy function images. However, the Fn Project also supports Podman as an alternative to Docker. When using Fn Project CLI version 0.6.12 and above, you can set a configuration setting to specify that you want to use Podman instead of Docker.
8587

8688

87-
### Set Up and Configure Terraform
89+
## Set Up and Configure Terraform
8890

8991
1. Complete the prerequisites described [here](https://github.com/cloud-partners/oci-prerequisites).
9092

@@ -105,7 +107,7 @@ compartment_ocid = "<compartment_ocid>"
105107
106108
# OCIR
107109
ocir_user_name = "<ocir_user_name>" <- OCI Registry username (your OCI username)
108-
ocir_user_password = "<ocir_user_password>" <- OCI Registry user password (your OCI user authtoken)
110+
ocir_user_password = "<ocir_user_password>" <- OCI Registry user password (your OCI user auth token)
109111
110112
# Deployment name is used in resource names
111113
deployment_name="<deployment name>"
@@ -114,31 +116,31 @@ deployment_name="<deployment name>"
114116

115117
Please note that the `terraform.tfvars` file will include sensitive information and needs to be protected from unauthorized usage.
116118

117-
### Create the Resources
119+
## Create the Resources
118120
Run the following commands:
119121

120122
terraform init
121123
terraform plan
122124
terraform apply
123125

124-
### Test the stack
126+
## Test the stack
125127

126-
You can test the stack by login/logout in the DB already integrated with Data Safe that generates DB audit log. The function will load the logs in 1 minutes and you can see it in Logging Console.
127-
In Logging Console will be present a new Log Group (ex. loggr-test-eu-milan-1-fn_ds_to_ol-d54e) and relative 2 logs:
128+
You can test the stack by login/logout in the DB already integrated with Data Safe that generates the DB audit log. The function will load the logs in 1 minute and you can see it in Logging Console.
129+
In the Logging Console will be present a new Log Group (ex. loggr-test-eu-milan-1-fn_ds_to_ol-d54e) and relative 2 logs:
128130
- Log with data from Data Safe: Log Type Custom (example log name: log-test-eu-milan-1-fn_ds_to_ol-d54e)
129131
- Log execution function: Log Type Service (example log name: fn-datasafe-dbaudit-test-eu-milan-1-fn_ds_to_ol-d54e)
130132

131-
### Destroy the Deployment
133+
## Destroy the Deployment
132134
When you no longer need the deployment, you can run this command to destroy the resources:
133135

134136
terraform destroy
135137

136-
If there is error in destroying the object storage bucket, manually delete the bucket and run "terraform destroy" again.
138+
If there is an error in destroying the object storage bucket, manually delete the bucket and run "terraform destroy" again.
137139

138-
### Test Environment
140+
## Test Environment
139141
We tested the terraform script in [Oracle Linux Cloud Developer Image](https://docs.oracle.com/en-us/iaas/oracle-linux/developer/index.htm) and Oracle Resource Manager.
140142

141-
### Architecture Diagram
143+
## Architecture Diagram
142144
![](./images/DatasafetoOCILoggingArchitecture.jpg)
143145

144146
# License
@@ -147,4 +149,4 @@ Copyright (c) 2024 Oracle and/or its affiliates.
147149

148150
Licensed under the Universal Permissive License (UPL), Version 1.0.
149151

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

0 commit comments

Comments
 (0)