Skip to content

Commit

Permalink
allow security module config
Browse files Browse the repository at this point in the history
  • Loading branch information
pxsalehi committed Sep 10, 2020
1 parent f4350f7 commit c5a75c4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 15 deletions.
30 changes: 15 additions & 15 deletions templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,20 @@ data:
<sockets>
<socket implementation="com.orientechnologies.orient.server.network.OServerTLSSocketFactory" name="ssl">
<parameters>
<parameter value="false" name="network.ssl.clientAuth"/>
<parameter value="config/cert/orientdb.ks" name="network.ssl.keyStore"/>
<parameter value="password" name="network.ssl.keyStorePassword"/>
<parameter value="config/cert/orientdb.ks" name="network.ssl.trustStore"/>
<parameter value="password" name="network.ssl.trustStorePassword"/>
<parameter value="{{ .Values.network.ssh.clientAuth }}" name="network.ssl.clientAuth"/>
<parameter value="{{ .Values.network.ssh.keyStore }}" name="network.ssl.keyStore"/>
<parameter value="{{ .Values.network.ssh.keyStorePassword }}" name="network.ssl.keyStorePassword"/>
<parameter value="{{ .Values.network.ssh.trustStore }}" name="network.ssl.trustStore"/>
<parameter value="{{ .Values.network.ssh.trustStorePassword }}" name="network.ssl.trustStorePassword"/>
</parameters>
</socket>
<socket implementation="com.orientechnologies.orient.server.network.OServerTLSSocketFactory" name="https">
<parameters>
<parameter value="false" name="network.ssl.clientAuth"/>
<parameter value="config/cert/orientdb.ks" name="network.ssl.keyStore"/>
<parameter value="password" name="network.ssl.keyStorePassword"/>
<parameter value="config/cert/orientdb.ks" name="network.ssl.trustStore"/>
<parameter value="password" name="network.ssl.trustStorePassword"/>
<parameter value="{{ .Values.network.ssh.clientAuth }}" name="network.ssl.clientAuth"/>
<parameter value="{{ .Values.network.ssh.keyStore }}" name="network.ssl.keyStore"/>
<parameter value="{{ .Values.network.ssh.keyStorePassword }}" name="network.ssl.keyStorePassword"/>
<parameter value="{{ .Values.network.ssh.trustStore }}" name="network.ssl.trustStore"/>
<parameter value="{{ .Values.network.ssh.trustStorePassword }}" name="network.ssl.trustStorePassword"/>
</parameters>
</socket>
</sockets>
Expand All @@ -152,8 +152,8 @@ data:
implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb"/>
</protocols>
<listeners>
<listener protocol="binary" ip-address="0.0.0.0" port-range="2424-2430" socket="default"/>
<listener protocol="http" ip-address="0.0.0.0" port-range="2480-2490" socket="default">
<listener protocol="binary" ip-address="0.0.0.0" port-range="{{ .Values.binaryPort }}" socket="default"/>
<listener protocol="http" ip-address="0.0.0.0" port-range="{{ .Values.httpPort }}" socket="default">
<parameters>
<!-- Connection's custom parameters. If not specified the global configuration
will be taken -->
Expand Down Expand Up @@ -236,10 +236,10 @@ data:
}
security.json: |
{
"enabled": true,
"enabled": {{ .Values.security.enabled }},
"debug": false,
"server": {
"createDefaultUsers": true
"createDefaultUsers": {{ .Values.security.createDefaultUsers }}
},
"authentication": {
"enabled": true,
Expand Down Expand Up @@ -270,6 +270,6 @@ data:
},
"auditing": {
"class": "com.orientechnologies.security.auditing.ODefaultAuditing",
"enabled": false
"enabled": {{ .Values.security.auditing.enabled }}
}
}
15 changes: 15 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ serverSideScript:
allowedLanguages:
- SQL

network:
ssl:
clientAuth: false
keyStore: cert/orientdb.ks
keyStorePassword: password
trustStore: cert/orientdb.ks
trustStorePassword: password

# security module
security:
enabled: true
createDefaultUsers: true
auditing:
enabled: false

hazelcast:
network:
port: 2434
Expand Down

0 comments on commit c5a75c4

Please sign in to comment.