Skip to content

Commit 37f41ef

Browse files
committed
111824V5 added License to README
1 parent 23e61e9 commit 37f41ef

File tree

1 file changed

+20
-14
lines changed
  • security/security-design/shared-assets/bastion-py-script

1 file changed

+20
-14
lines changed

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

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11

2-
# Bastion session
2+
# Oracle Cloud Infrastructure (OCI) Bastion Service
33

4-
This reusable asset consist of a Python script that creates a bastion session with the Oracle OCI bastion service. The main purposes of this asset are:
4+
This reusable asset consist of a Python script that creates a bastion session with the Oracle OCI Bastion Service. The main purposes of this asset are:
55

66
- Demonstrate the usage of OCI Python SDK
77
- Create a simple OS independent command-line interface for creating bastion sessions
88
- Create a simple way to make reusable configuration
99
- Create a `ssh` command that works with Linux, Mac OS and Windows by providing the flexibility to configure either `ssh` command or `putty` commands.
1010

11-
The script creates bastion session over SSH, and creates an example command to set up the tunnel for the target application. Other protocols like RDP can then be tunneled over the SSH session through the bastion service.
11+
The script creates bastion session over SSH, and creates an example command to set up the tunnel for the target application. Other protocols like RDP can then be tunneled over the SSH session through the OCI Bastion Service.
1212

1313
Some documentation for inspiraton:
1414

1515
[https://www.ateam-oracle.com/post/openssh-proxyjump-with-oci-bastion-service](https://www.ateam-oracle.com/post/openssh-proxyjump-with-oci-bastion-service)
1616
[https://fluffyclouds.blog/2022/06/02/create-oci-bastion-sessions-with-python-sdk/](https://fluffyclouds.blog/2022/06/02/create-oci-bastion-sessions-with-python-sdk/)
1717

18-
## Why use bastion service
18+
## Why use the OCI Bastion Service
1919

20-
Oracle Cloud Infrastructure (OCI) Bastion service, is a fully managed service providing secure and ephemeral Secure Shell (ssh) access to the private resources in OCI. OCI Bastion service, like the bastion fortress of medieval times, improves security posture by providing an additional layer of defense against external threats.
20+
Oracle Cloud Infrastructure (OCI) Bastion Service, is a fully managed service providing secure and ephemeral Secure Shell (ssh) access to the private resources in OCI. OCI Bastion Service, like the bastion fortress of medieval times, improves security posture by providing an additional layer of defense against external threats.
2121

2222
Accessing virtual services directly from the internet is a clear no-go. Best practices is to never expose compute resources directly, neither for SSH or RDP traffic. RDP is known to be one of the most common Initial Access Vectors for ransomware types of attacks.
2323

@@ -27,14 +27,14 @@ The main weakness with this model is:
2727
- Extra set of required resources with risk of misconfiguration
2828
- The jump server will require an additional layer of user governance.
2929

30-
The OCI Bastion service removes the public and private virtual cloud networking (VCN) hassle for access to a jump host. No public IP is needed, resulting in no surface attack area or zero-day vulnerabilities with a dedicated jump host. Customers also eliminate shared credentials, broad access limits, and other bad habits of using jump hosts. OCI Bastion service integrates with OCI Identity and Access Management (IAM) and allows the organization to control who can access a bastion or a session and what they can do with those resources.
30+
The OCI Bastion Service removes the public and private virtual cloud networking (VCN) hassle for access to a jump host. No public IP is needed, resulting in no surface attack area or zero-day vulnerabilities with a dedicated jump host. Customers also eliminate shared credentials, broad access limits, and other bad habits of using jump hosts. OCI Bastion Service integrates with OCI Identity and Access Management (IAM) and allows the organization to control who can access a bastion or a session and what they can do with those resources.
3131

32-
The OCI Bastion service exists in two flavors:
33-
- Managed session
34-
With managed sessions an agent is running on the compute node, and the bastion session connects to the agent and tunnels SSH through the agent. The managed Session makes it possible to connect to a compute node from other networks without configure routing between the network where the compute node resides, and the network the bastion connection is initiated from.
32+
The OCI Bastion Service exists in two flavors:
33+
- Managed Session
34+
With managed sessions an agent is running on the compute node, and the bastion session connects to the agent and tunnels SSH through the agent. The managed session makes it possible to connect to a compute node from other networks without configure routing between the network where the compute node resides, and the network the bastion connection is initiated from.
3535
- Port Forwarding
36-
In this mode the bastion service does not tunnel though the agent, but the bastion service must have access to the subnet where the compute node resides, and the subnet security list
37-
For additional description of the bastion service please review:
36+
In this mode the OCI Bastion Service does not tunnel though the agent, but the OCI Bastion Service must have access to the subnet where the compute node resides, and the subnet security list
37+
For additional description of the OCI Bastion Service please review:
3838

3939
## Requirements
4040

@@ -43,7 +43,7 @@ The following components needs to be installed in your environment:
4343
- Latest version of the OCI CLI
4444
- Requirements, as defined in requirements.txt
4545

46-
If you need to ru older Python versions (below 3.8), note the changes for asyncio in the exec_command procedure.
46+
If you need to run older Python versions (below 3.8), note the changes for asyncio in the exec_command procedure.
4747

4848
[OCI CLI Install guide](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm)
4949

@@ -77,7 +77,7 @@ The following elements exists in the configuration file.
7777
Each “session” element has the following elements:
7878
- "sessionType":"PORT_FORWARDING" or MANAGED
7979
- "OCIConfig"-: name of profile, it looked up in the ociconfigurations array
80-
- "bastionOCID": OCID to the configured Bastion service
80+
- "bastionOCID": OCID to the configured OCI Bastion service
8181
- "bastionPublicKeyFile":file with public key to the Bastion SSH session
8282
- "bastionPrivateKeyFile":Private key of bastion session key pair,
8383
- "targetPrivateKeyFile":Used for reference in the target `ssh` command,
@@ -130,4 +130,10 @@ putty -i c:\\usr\\ssh_keys\\mykey.ppk -N -ssh -L 2222:10.10.1.229:22 ocid1.bast
130130
Client Connect:
131131
putty -i c:\\usr\\ssh_keys\\myprivatetkey.ppk -P 2222 ios@localhost
132132
Successfully completed bastion session(s)
133-
```
133+
```
134+
135+
# License
136+
137+
Copyright (c) 2024 Oracle and/or its affiliates.
138+
139+
Licensed under the Universal Permissive License (UPL), Version 1.0.

0 commit comments

Comments
 (0)