Skip to content

Commit fdf2f11

Browse files
mh182KieranKaelin
authored andcommitted
feat: Oracle - add support for secure communication TCPS
Added bind mount for the necessary configuration files to enable TCPS. - `volumes/core/config/oracle/network/admin`: `sqlnet.ora`, `tsnnames.ora` Templates for those files may be fond in the `templates` sub-directory. - `volumes/core/config/oracle/wallet`: directory for the Oracle wallet store (client)
1 parent 22104b1 commit fdf2f11

File tree

6 files changed

+47
-1
lines changed

6 files changed

+47
-1
lines changed

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
.env
22
.meta-inf
3-
images/
43
.version
4+
images/
5+
volumes/core/config/oracle/network/admin/*.ora
6+
volumes/core/config/oracle/network/admin/tnsnames.ora
7+
volumes/core/config/oracle/wallet/*.lck
8+
volumes/core/config/oracle/wallet/*.p12
9+
volumes/core/config/oracle/wallet/*.sso

docker-compose.yml

+3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ services:
2525
- CORE_DB_HOST=core_db
2626
- CORE_DB_PASSWORD=${CORE_DB_PASSWORD}
2727
- CORE_DB_DATABASE=migrator
28+
- TNS_ADMIN=/app/config/oracle/network/admin
2829
depends_on:
2930
core_db:
3031
condition: service_healthy
3132
networks:
3233
- common
34+
volumes:
35+
- ./volumes/core/config:/app/config
3336

3437
# Internal Migrator database
3538
core_db:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
============================================================================
2+
This is the default directory for Oracle Network and Oracle Client
3+
configuration files. You can place files such as tnsnames.ora, sqlnet.ora
4+
in this directory.
5+
NOTE:
6+
The content of this directory has to be provided to the Migrator 'core' with
7+
the help of the environment variable TNS_ADMIN.
8+
============================================================================
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
2+
3+
# Don't forget to adjust the 'volumes' configuration in the docker-compose.yml in
4+
# case you change the location of the wallet.
5+
6+
WALLET_LOCATION =
7+
(SOURCE =
8+
(METHOD = FILE)
9+
(METHOD_DATA =
10+
(DIRECTORY = /app/config/oracle/wallet)
11+
)
12+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Template file to define TNS names using TCPS (secure data transfer using TLS)
2+
# Check sqlnet.ora for the location of the wallet file.
3+
4+
# Identifiers enclosed with ## have to adjusted to your needs.
5+
6+
# ##net_service_name## =
7+
# (DESCRIPTION =
8+
# (ADDRESS = (PROTOCOL = TCPS)(HOST = ##host_name_or_ip_address##)(PORT = 2484))
9+
# (CONNECT_DATA =
10+
# (SERVER = DEDICATED)
11+
# (SERVICE_NAME = ##service_name##)
12+
# )
13+
# )
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Copy the files for the Oracle wallet store (client) into this directory.
2+
3+
Since the Migrator core acts as client to the database servers the wallet store
4+
contains the certificates to connect to the database servers via TLS (TCPS
5+
protocol).

0 commit comments

Comments
 (0)