You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: security/security-design/README.md
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Security Design
2
2
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.
- 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.
- 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)
Copy file name to clipboardExpand all lines: security/security-design/shared-assets/bastion-session-script/README.md
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,13 @@
2
2
3
3
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.
4
4
5
-
## When to use this asset?
5
+
Reviewed: 01.02.2024
6
6
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?
8
8
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?
10
12
11
13
**Usage: ./bastion-session.sh COMMAND [ARGS]...**
12
14
@@ -36,9 +38,9 @@ Example:
36
38
| -p, --profile TEXT | The OCI profile in the config file to load. [default: DEFAULT]|
37
39
| -s, --session TEXT | The Bastion session name. [default: Bastion-Session]|
38
40
| -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]|
42
44
| -a, --key-alg TEXT | The algorithm for the SSH key (ssh-keygen) to be used. [default: rsa]|
43
45
| -k, --key-size INTEGER | The key size for the SSH key (ssh-keygen) to be used. [default: 4096]|
44
46
| -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:
49
51
50
52
- The OCI CLI must be installed and configured.
51
53
(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.
53
55
(See also [https://stedolan.github.io/jq](https://stedolan.github.io/jq))
Copy file name to clipboardExpand all lines: security/security-design/shared-assets/fn-datasafe-dbaudit-to-oci-logging/README.md
+25-23Lines changed: 25 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -2,30 +2,32 @@
2
2
3
3
Owner: Fabrizio Zarri
4
4
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 fullyintegrated, 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.
6
6
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.
8
8
9
9
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.
10
10
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)
13
13
14
-
## Prerequisites
14
+
Reviewed: 01.02.2024
15
+
16
+
# Prerequisites
15
17
16
18
- Configure Data Safe to get Database Audit Events from Oracle DataBase.
17
19
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)
19
21
20
22
- 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)
21
23
22
24
- 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`.
23
25
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.
25
27
26
28
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).
27
29
28
-
##Deploy Using Oracle Resource Manager
30
+
# Deploy Using Oracle Resource Manager
29
31
30
32
1. Click [](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)
31
33
@@ -47,14 +49,14 @@ If you don't have the required permissions and quota, contact your tenancy admin
47
49
48
50
## Deploy Using the Terraform CLI
49
51
50
-
###Clone the Module
52
+
## Clone the Module
51
53
Now, you'll want a local copy of this repo. You can make that with the commands:
cd security/security-design/fn-datasafe-dbaudit-to-oci-logging
55
57
ls
56
58
57
-
###Prerequisites
59
+
## Prerequisites
58
60
First off, you'll need to do some pre-deploy setup for Docker and Fn Project inside your machine:
59
61
60
62
```
@@ -75,16 +77,16 @@ exit
75
77
OR
76
78
77
79
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:
79
81
80
82
```
81
83
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
82
84
```
83
85
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.
85
87
86
88
87
-
###Set Up and Configure Terraform
89
+
## Set Up and Configure Terraform
88
90
89
91
1. Complete the prerequisites described [here](https://github.com/cloud-partners/oci-prerequisites).
Please note that the `terraform.tfvars` file will include sensitive information and needs to be protected from unauthorized usage.
116
118
117
-
###Create the Resources
119
+
## Create the Resources
118
120
Run the following commands:
119
121
120
122
terraform init
121
123
terraform plan
122
124
terraform apply
123
125
124
-
###Test the stack
126
+
## Test the stack
125
127
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:
128
130
- Log with data from Data Safe: Log Type Custom (example log name: log-test-eu-milan-1-fn_ds_to_ol-d54e)
129
131
- Log execution function: Log Type Service (example log name: fn-datasafe-dbaudit-test-eu-milan-1-fn_ds_to_ol-d54e)
130
132
131
-
###Destroy the Deployment
133
+
## Destroy the Deployment
132
134
When you no longer need the deployment, you can run this command to destroy the resources:
133
135
134
136
terraform destroy
135
137
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.
137
139
138
-
###Test Environment
140
+
## Test Environment
139
141
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.
0 commit comments