-
Notifications
You must be signed in to change notification settings - Fork 216
Owls 91448 - Prevent insecure file system warnings by ensuring files are at a minimum of umask 027 and handle Openshift platform. #2533
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
Changes from 7 commits
0d8bd23
8bbd89f
5ebc832
cbd1280
f64e72d
c8d09e4
7c03475
1a16e76
568ac46
357f5a3
d3f49eb
a3e40e9
af03fbe
a36a2bb
913cab2
cc7f026
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -290,12 +290,27 @@ createFolder ${DOMAIN_HOME}/servers/${SERVER_NAME}/security | |
| copyIfChanged /weblogic-operator/introspector/boot.properties \ | ||
| ${DOMAIN_HOME}/servers/${SERVER_NAME}/security/boot.properties | ||
|
|
||
| # remove write and execute permissions for group to prevent insecure file system warnings. | ||
| chmod g-wx ${DOMAIN_HOME}/servers/${SERVER_NAME}/security/boot.properties | ||
|
|
||
|
|
||
| if [ ${DOMAIN_SOURCE_TYPE} != "FromModel" ]; then | ||
| trace "Copying situational configuration files from operator cm to ${DOMAIN_HOME}/optconfig directory" | ||
| copySitCfgWhileBooting /weblogic-operator/introspector ${DOMAIN_HOME}/optconfig 'Sit-Cfg-CFG--' | ||
| copySitCfgWhileBooting /weblogic-operator/introspector ${DOMAIN_HOME}/optconfig/jms 'Sit-Cfg-JMS--' | ||
| copySitCfgWhileBooting /weblogic-operator/introspector ${DOMAIN_HOME}/optconfig/jdbc 'Sit-Cfg-JDBC--' | ||
| copySitCfgWhileBooting /weblogic-operator/introspector ${DOMAIN_HOME}/optconfig/diagnostics 'Sit-Cfg-WLDF--' | ||
| else | ||
| if [[ ${KUBERNETES_PLATFORM^^} == "OPENSHIFT" ]]; then | ||
tbarnes-us marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # Operator running on Openshift platform - change file permissions in the DOMAIN_HOME dir to give | ||
| # group same permissions as user . | ||
| chmod -R g=u ${DOMAIN_HOME} || return 1 | ||
|
||
| fi | ||
| fi | ||
|
|
||
| if [[ ${KUBERNETES_PLATFORM^^} == "OPENSHIFT" ]]; then | ||
| # When the Operator is running on Openshift platform, disable insecure file system warnings. | ||
| export JAVA_OPTIONS="-Dweblogic.SecureMode.WarnOnInsecureFileSystem=false $JAVA_OPTIONS" | ||
| fi | ||
|
|
||
| # | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.