Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oradb_manage_db: Remove visible password for sys, system and dbsnmp from dbca responsefile for 12.2+ #401

Merged
merged 1 commit into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/dbca-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
security_fixes:
- "oradb_manage_db: Remove visible password for sys, system and dbsnmp from dbca responsefile for 12.2+ ()"
18 changes: 3 additions & 15 deletions roles/oradb_manage_db/templates/dbca-create-db.rsp.12.2.0.1.j2
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,7 @@ templateName={{dbca_templatename}}
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name]is defined and dbpasswords[dbh.oracle_db_name]['sys'] is defined %}
sysPassword={{dbpasswords[dbh.oracle_db_name]['sys']}}
{% else %}
sysPassword={{default_dbpass }}
{% endif %}
sysPassword=

#-----------------------------------------------------------------------------
# Name : systemPassword
Expand All @@ -261,11 +257,7 @@ sysPassword={{default_dbpass }}
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name] is defined and dbpasswords[dbh.oracle_db_name]['system'] is defined %}
systemPassword={{dbpasswords[dbh.oracle_db_name]['system']}}
{% else %}
systemPassword={{default_dbpass }}
{% endif %}
systemPassword=

#-----------------------------------------------------------------------------
# Name : serviceUserPassword
Expand Down Expand Up @@ -317,11 +309,7 @@ runCVUChecks=false
# Mandatory : Yes, if emConfiguration is specified or
# the value of runCVUChecks is TRUE
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name] is defined and dbpasswords[dbh.oracle_db_name]['dbsnmp'] is defined %}
dbsnmpPassword={{dbpasswords[dbh.oracle_db_name]['dbsnmp']}}
{% else %}
dbsnmpPassword={{default_dbpass }}
{% endif %}
dbsnmpPassword=

#-----------------------------------------------------------------------------
# Name : omsHost
Expand Down
18 changes: 3 additions & 15 deletions roles/oradb_manage_db/templates/dbca-create-db.rsp.18.3.0.0.j2
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,7 @@ templateName={{dbca_templatename}}
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name]is defined and dbpasswords[dbh.oracle_db_name]['sys'] is defined %}
sysPassword={{dbpasswords[dbh.oracle_db_name]['sys']}}
{% else %}
sysPassword={{default_dbpass }}
{% endif %}
# sysPassword=

#-----------------------------------------------------------------------------
# Name : systemPassword
Expand All @@ -261,11 +257,7 @@ sysPassword={{default_dbpass }}
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name] is defined and dbpasswords[dbh.oracle_db_name]['system'] is defined %}
systemPassword={{dbpasswords[dbh.oracle_db_name]['system']}}
{% else %}
systemPassword={{default_dbpass }}
{% endif %}
# systemPassword=

#-----------------------------------------------------------------------------
# Name : oracleHomeUserPassword
Expand Down Expand Up @@ -317,11 +309,7 @@ runCVUChecks=
# Mandatory : Yes, if emConfiguration is specified or
# the value of runCVUChecks is TRUE
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name] is defined and dbpasswords[dbh.oracle_db_name]['dbsnmp'] is defined %}
dbsnmpPassword={{dbpasswords[dbh.oracle_db_name]['dbsnmp']}}
{% else %}
dbsnmpPassword={{default_dbpass }}
{% endif %}
dbsnmpPassword=

#-----------------------------------------------------------------------------
# Name : omsHost
Expand Down
18 changes: 3 additions & 15 deletions roles/oradb_manage_db/templates/dbca-create-db.rsp.19.3.0.0.j2
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,7 @@ templateName={{dbca_templatename}}
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name]is defined and dbpasswords[dbh.oracle_db_name]['sys'] is defined %}
sysPassword={{dbpasswords[dbh.oracle_db_name]['sys']}}
{% else %}
sysPassword={{default_dbpass }}
{% endif %}
# sysPassword=

#-----------------------------------------------------------------------------
# Name : systemPassword
Expand All @@ -261,11 +257,7 @@ sysPassword={{default_dbpass }}
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name] is defined and dbpasswords[dbh.oracle_db_name]['system'] is defined %}
systemPassword={{dbpasswords[dbh.oracle_db_name]['system']}}
{% else %}
systemPassword={{default_dbpass }}
{% endif %}
# systemPassword=

#-----------------------------------------------------------------------------
# Name : oracleHomeUserPassword
Expand Down Expand Up @@ -317,11 +309,7 @@ runCVUChecks=
# Mandatory : Yes, if emConfiguration is specified or
# the value of runCVUChecks is TRUE
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name] is defined and dbpasswords[dbh.oracle_db_name]['dbsnmp'] is defined %}
dbsnmpPassword={{dbpasswords[dbh.oracle_db_name]['dbsnmp']}}
{% else %}
dbsnmpPassword={{default_dbpass }}
{% endif %}
dbsnmpPassword=

#-----------------------------------------------------------------------------
# Name : omsHost
Expand Down
18 changes: 3 additions & 15 deletions roles/oradb_manage_db/templates/dbca-create-db.rsp.21.3.0.0.j2
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,7 @@ templateName={{dbca_templatename}}
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name]is defined and dbpasswords[dbh.oracle_db_name]['sys'] is defined %}
sysPassword={{dbpasswords[dbh.oracle_db_name]['sys']}}
{% else %}
sysPassword={{default_dbpass }}
{% endif %}
# sysPassword=

#-----------------------------------------------------------------------------
# Name : systemPassword
Expand All @@ -270,11 +266,7 @@ sysPassword={{default_dbpass }}
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name] is defined and dbpasswords[dbh.oracle_db_name]['system'] is defined %}
systemPassword={{dbpasswords[dbh.oracle_db_name]['system']}}
{% else %}
systemPassword={{default_dbpass }}
{% endif %}
# systemPassword=

#-----------------------------------------------------------------------------
# Name : oracleHomeUserPassword
Expand Down Expand Up @@ -326,11 +318,7 @@ runCVUChecks=
# Mandatory : Yes, if emConfiguration is specified or
# the value of runCVUChecks is TRUE
#-----------------------------------------------------------------------------
{% if dbpasswords is defined and dbpasswords[dbh.oracle_db_name] is defined and dbpasswords[dbh.oracle_db_name]['dbsnmp'] is defined %}
dbsnmpPassword={{dbpasswords[dbh.oracle_db_name]['dbsnmp']}}
{% else %}
dbsnmpPassword={{default_dbpass }}
{% endif %}
dbsnmpPassword=

#-----------------------------------------------------------------------------
# Name : omsHost
Expand Down
Loading