Skip to content

Commit

Permalink
KYLO-1298 Require passwords to be set at install time
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Hart committed Oct 20, 2017
1 parent b09d4f1 commit 2a09005
Show file tree
Hide file tree
Showing 21 changed files with 69 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ hibernate.dialect=org.hibernate.dialect.H2Dialect

hibernate.connection.url=jdbc:h2:mem:testdb
hibernate.connection.driver_class=org.h2.Driver
hibernate.connection.username=sa
hibernate.connection.username=
hibernate.connection.password=
hibernate.hbm2ddl.auto=create
#hibernate.show_sql=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
debug=true
metadata.datasource.driverClassName=org.h2.Driver
metadata.datasource.url=jdbc:h2:mem:testdb
metadata.datasource.username=sa
metadata.datasource.username=

modeshape.datasource.driverClassName=org.h2.Driver
modeshape.datasource.url=jdbc:h2:mem:testdb
modeshape.datasource.username=sa
modeshape.datasource.username=
modeshape.datasource.password=

spring.jpa.hibernate.ddl-auto=create
spring.jpa.database=H2
spring.jpa.show-sql=true

spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.username=sa
spring.datasource.username=
spring.datasource.password=
spring.datasource.maxActive=30
spring.datasource.validationQuery=SELECT 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ hibernate.dialect=org.hibernate.dialect.H2Dialect

hibernate.connection.url=jdbc:h2:mem:testdb
hibernate.connection.driver_class=org.h2.Driver
hibernate.connection.username=sa
hibernate.connection.username=
hibernate.connection.password=
hibernate.hbm2ddl.auto=create

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
debug=true
metadata.datasource.driverClassName=org.h2.Driver
metadata.datasource.url=jdbc:h2:mem:testdb
metadata.datasource.username=sa
metadata.datasource.username=

spring.jpa.hibernate.ddl-auto=create
spring.jpa.database=H2
spring.jpa.show-sql=true

spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.username=sa
spring.datasource.username=
spring.datasource.password=
spring.datasource.maxActive=30
spring.datasource.validationQuery=SELECT 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
debug=true
##spring.datasource.url=jdbc:h2:./test
#spring.datasource.url=jdbc:h2:mem:testdb
#spring.datasource.username=sa
#spring.datasource.username=
#spring.datasource.password=
#spring.datasource.maxActive=30
#spring.datasource.validationQuery=SELECT 1
#spring.datasource.testOnBorrow=true
#spring.datasource.driverClassName=org.h2.Driver
spring.datasource.url=jdbc:teradata://35.161.50.50/DATABASE=DBC
spring.datasource.username=dbc
spring.datasource.url=jdbc:teradata://localhost/DATABASE=DBC
spring.datasource.username=
spring.datasource.password=
spring.datasource.maxActive=30
spring.datasource.validationQuery=SELECT 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
# connect to Jira
jira.host=HOST_NAME
jira.apiPath=/rest/api/latest/
jira.username=username
jira.username=
jira.password=
jira.https=true
jira.keystorePath=/path.to.keystore.jks
jira.keystorePath=
jira.keystorePassword=
jira.keystoreOnClasspath=false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
###
ranger.hostName=localhost
ranger.port=6080
ranger.userName=admin
ranger.userName=
ranger.password=
hdfs.repository.name=Sandbox_hadoop
hive.repository.name=Sandbox_hive
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#Sentry Connection Configuration
beeline.connection.url=jdbc:hive2://localhost:10000/default
beeline.drive.name=org.apache.hive.jdbc.HiveDriver
beeline.userName=nifi
beeline.userName=
beeline.password=
hdfs.hadoop.configuration=/etc/hadoop/conf/hdfs-site.xml,/etc/hadoop/conf/core-site.xml
sentry.kerberos.principal=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# #L%
###
jms.activemq.broker.url=tcp://localhost:61616
#jms.activemq.broker.username=admin
#jms.activemq.broker.password=admin
#jms.activemq.broker.username=
#jms.activemq.broker.password=
##Redeliver policy for the Listeners when they fail (http://activemq.apache.org/redelivery-policy.html)
#jms.maximumRedeliveries=100
#jms.redeliveryDelay=1000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
###Ambari Services Check
ambariRestClientConfig.host=127.0.0.1
ambariRestClientConfig.port=8080
ambariRestClientConfig.username=admin
ambariRestClientConfig.username=
ambariRestClientConfig.password=
#ambariRestClientConfig.serverUrl=http://127.0.0.1:8080/api/v1
ambari.services.status=HDFS,HIVE,MAPREDUCE2,SQOOP
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# limitations under the License.
# #L%
###
clouderaRestClientConfig.username=cloudera
clouderaRestClientConfig.username=
clouderaRestClientConfig.password=
clouderaRestClientConfig.serverUrl=127.0.0.1
cloudera.services.status=HDFS/[DATANODE,NAMENODE,SECONDARYNAMENODE],HIVE/[HIVEMETASTORE,HIVESERVER2],YARN,SQOOP
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sla.mail.starttls=true
##replace value below with a valid email address. this is the from email that will appear when a user receives a sla violation email
sla.mail.from=SOME_FROM_EMAIL_ADDRESS
##replace value below with a valid email address that will use the sla.mail.host above
sla.mail.username=SOME_EMAIL_ADDRESS_TO_SEND
sla.mail.username=
##replace with a valid password for the email address assigned above
sla.mail.password=
## debug flag
Expand Down
2 changes: 1 addition & 1 deletion plugins/sla-jira/src/main/resources/conf/jira.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# connect to Jira
jira.host=HOST_NAME
jira.apiPath=/rest/api/latest/
jira.username=username
jira.username=
jira.password=
jira.https=true
jira.keystorePath=/path.to.keystore.jks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# #L%
###
security.auth.ldap.server.uri=ldap://localhost:52389/dc=example,dc=com
#security.auth.ldap.server.authDn=uid=dladmin,ou=people,dc=example,dc=com
#security.auth.ldap.server.password=thinkbig
#security.auth.ldap.server.authDn=
#security.auth.ldap.server.password=
security.auth.ldap.authenticator.userDnPatterns=uid={0},ou=people
security.auth.ldap.user.enableGroups=true
## Group OU patterns are separated by '|'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ spring.datasource.platform=h2
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
metadata.datasource.driverClassName=org.h2.Driver
metadata.datasource.url=jdbc:h2:mem:metadata
metadata.datasource.username=sa
metadata.datasource.username=
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spring.datasource.initialize=false
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
metadata.datasource.driverClassName=org.mariadb.jdbc.Driver
metadata.datasource.url=jdbc:mysql://localhost:3306/metadata
metadata.datasource.username=root
metadata.datasource.username=
metadata.datasource.password=
server.context-parameters.connector-class=org.modeshape.web.server.impl.JsonConfigConnectorImpl
server.context-parameters.config-url=metadata-repository.json
Expand Down
52 changes: 26 additions & 26 deletions services/service-app/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spring.profiles.include=native,nifi-v1.2,auth-kylo,auth-file,search-esr,jms-acti
# NOTE: Cloudera default password for root access to mysql is "cloudera"
#
spring.datasource.url=jdbc:mysql://localhost:3306/kylo
spring.datasource.username=root
spring.datasource.username=
spring.datasource.password=
spring.datasource.maxActive=30
spring.datasource.validationQuery=SELECT 1
Expand All @@ -48,8 +48,8 @@ spring.jpa.open-in-view=true
#
#spring.datasource.url=jdbc:postgresql://localhost:5432/pipeline_db
#spring.datasource.driverClassName=org.postgresql.Driver
#spring.datasource.username=root
#spring.datasource.password=thinkbig
#spring.datasource.username=
#spring.datasource.password=
#spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect

# Entity-level access control. To enable, uncomment below line and set value as true.
Expand Down Expand Up @@ -84,15 +84,15 @@ spring.jpa.open-in-view=true

## auth-simple: If this profile is active these authenticationService properties are used:

#authenticationService.username=dladmin
#authenticationService.password={cipher}52fd39e4e4f7d0f6a91989efbfa870f1a543550401e6ab0b17f3059c1ada9b5f
#authenticationService.password=thinkbig
#authenticationService.username=
#authenticationService.password={cipher}
#authenticationService.password=

## auth-ldap: If this profile is active then these properties should uncommented and updated appropriately

#security.auth.ldap.server.uri=ldap://localhost:52389/dc=example,dc=com
#security.auth.ldap.server.authDn=uid=dladmin,ou=people,dc=example,dc=com
#security.auth.ldap.server.password=thinkbig
#security.auth.ldap.server.authDn=
#security.auth.ldap.server.password=
### user DN patterns are separated by '|'
#security.auth.ldap.authenticator.userDnPatterns=uid={0},ou=people
#security.auth.ldap.user.enableGroups=true
Expand All @@ -115,11 +115,11 @@ server.port=8420
# server.port=8443
##### ADD IF SSL is needed
###
#server.ssl.key-store=/Users/sr186054/tools/test-ssl/test/localhost/keystore.jks
#server.ssl.key-store-password=sxkJ96yw2ZZktkVFtflln2IqjxkXPCD+vh3gAPDhQ18
#server.ssl.key-store=
#server.ssl.key-store-password=
#server.ssl.key-store-type=jks
#server.ssl.trust-store=/Users/sr186054/tools/test-ssl/test/localhost/truststore.jks
#server.ssl.trust-store-password=S1+cc2FKMzk2td/p6OJE0U6FUM3fV5jnlrYj46CoUSU
#server.ssl.trust-store=
#server.ssl.trust-store-password=
#server.ssl.trust-store-type=JKS

#
Expand All @@ -143,37 +143,37 @@ spring.batch.job.names=
#spring.jpa.show-sql=true
#spring.jpa.hibernate.ddl-auto=validate

# NOTE: For Cloudera metadata.datasource.password=cloudera is required

metadata.datasource.driverClassName=${spring.datasource.driverClassName}
metadata.datasource.url=${spring.datasource.url}
metadata.datasource.username=${spring.datasource.username}
#metadata.datasource.username=${spring.datasource.username}
#metadata.datasource.password=${spring.datasource.password}
metadata.datasource.validationQuery=SELECT 1
metadata.datasource.testOnBorrow=true


# NOTE: For Cloudera hive.datasource.username=hive is required

hive.userImpersonation.enabled=false
hive.datasource.driverClassName=org.apache.hive.jdbc.HiveDriver
hive.datasource.url=jdbc:hive2://localhost:10000/default
hive.datasource.username=kylo
hive.datasource.username=
hive.datasource.password=
hive.datasource.validationQuery=show tables 'test'


# NOTE: For Cloudera hive.metastore.datasource.password=cloudera is required

##Also Clouder url should be /metastore instead of /hive
hive.metastore.datasource.driverClassName=org.mariadb.jdbc.Driver
hive.metastore.datasource.url=jdbc:mysql://localhost:3306/hive
#hive.metastore.datasource.url=jdbc:mysql://localhost:3306/metastore
hive.metastore.datasource.username=root
hive.metastore.datasource.username=
hive.metastore.datasource.password=
hive.metastore.datasource.validationQuery=SELECT 1
hive.metastore.datasource.testOnBorrow=true

modeshape.datasource.driverClassName=${spring.datasource.driverClassName}
modeshape.datasource.url=${spring.datasource.url}
modeshape.datasource.username=${spring.datasource.username}
#modeshape.datasource.username=${spring.datasource.username}
#modeshape.datasource.password=${spring.datasource.password}
modeshape.index.dir=/opt/kylo/modeshape/modeshape-local-index

Expand All @@ -189,13 +189,13 @@ nifi.rest.port=8079
#nifi.rest.port=9443
#nifi.rest.https=true
#nifi.rest.useConnectionPooling=false
#nifi.rest.truststorePath=/opt/nifi/data/ssl/localhost/truststore.jks
#nifi.rest.truststorePath=
#####the truststore password below needs to match that found in the nifi.properties file (nifi.security.truststorePasswd)
#nifi.rest.truststorePassword=Zl1mAbMm0v4UkGV8VYjTi2ZP8NdwUL9CW7nsjGo47Fs
#nifi.rest.truststorePassword=
#nifi.rest.truststoreType=JKS
#nifi.rest.keystorePath=/opt/nifi/data/ssl/CN=kylo_OU=NIFI.p12
#nifi.rest.keystorePath=
###value found in the .password file /opt/nifi/data/ssl/CN=kylo_OU=NIFI.password
#nifi.rest.keystorePassword=ydPkkba
#nifi.rest.keystorePassword=
#nifi.rest.keystoreType=PKCS12
#

Expand All @@ -207,11 +207,11 @@ kerberos.hive.kerberosEnabled=false
## used to map Nifi Controller Service connections to the User Interface
## naming convention for the property is nifi.service.NIFI_CONTROLLER_SERVICE_NAME.NIFI_PROPERTY_NAME
##anything prefixed with nifi.service will be used by the UI. Replace Spaces with underscores and make it lowercase.
nifi.service.mysql.database_user=root
nifi.service.mysql.database_user=
nifi.service.mysql.password=

#Kylo MySQL controller service configuration
nifi.service.kylo_mysql.database_user=root
nifi.service.kylo_mysql.database_user=
nifi.service.kylo_mysql.password=

nifi.service.hive_thrift_service.database_connection_url=jdbc:hive2://localhost:10000/default
Expand Down Expand Up @@ -288,7 +288,7 @@ sla.cron.default=0 0/5 * 1/1 * ? *
# Note: Ensure that the driver jar is available in below two locations:
# (a) sqoop's lib directory (e.g. /usr/hdp/current/sqoop-client/lib/)
# (b) kylo's lib directory, and owned by 'kylo' user (/opt/kylo/kylo-services/lib)
#nifi.service.sqoop-mysql-connection.password=hadoop
#nifi.service.sqoop-mysql-connection.password=
#nifi.service.sqoop-mysql-connection.database_driver_class_name=com.mysql.jdbc.Driver
# Base HDFS landing directory
#config.sqoop.hdfs.ingest.root=/sqoopimport
Expand Down
24 changes: 12 additions & 12 deletions services/service-app/src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Spring Datasource properties for spring batch and the default data source
#
spring.datasource.url=jdbc:mysql://localhost:3306/kylo
spring.datasource.username=root
spring.datasource.username=
spring.datasource.password=
spring.datasource.maxActive=10
spring.datasource.validationQuery=SELECT 1
Expand All @@ -34,29 +34,29 @@ spring.jpa.open-in-view=true
#
#spring.datasource.url=jdbc:postgresql://localhost:5432/pipeline_db
#spring.datasource.driverClassName=org.postgresql.Driver
#spring.datasource.username=root
#spring.datasource.password=thinkbig
#spring.datasource.username=
#spring.datasource.password=
#spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect

#
# Used just for the SimpleAuthenticationService
#
authenticationService.username=dladmin
authenticationService.username=
authenticationService.password=

###Ambari Services Check
#ambariRestClientConfig.username=admin
#ambariRestClientConfig.password=admin
#ambariRestClientConfig.username=
#ambariRestClientConfig.password=
#ambariRestClientConfig.serverUrl=http://127.0.0.1:8080/api/v1
##ambari.services.status=HIVE/HIVE_CLIENT,HDFS
#ambari.services.status=HDFS,HIVE,MAPREDUCE2,SQOOP

#hive.datasource.url=jdbc:hive2://127.0.0.1:10000/default
#hive.datasource.username=admin
#hive.datasource.password=admin
#hive.datasource.username=
#hive.datasource.password=

###Cloudera Services Check
clouderaRestClientConfig.username=cloudera
clouderaRestClientConfig.username=
clouderaRestClientConfig.password=
clouderaRestClientConfig.serverUrl=127.0.0.1
cloudera.services.status=HDFS/[DATANODE,NAMENODE,SECONDARYNAMENODE],HIVE/[HIVEMETASTORE,HIVESERVER2],YARN,SQOOP
Expand Down Expand Up @@ -85,22 +85,22 @@ spring.batch.job.names=

metadata.datasource.driverClassName=org.mariadb.jdbc.Driver
metadata.datasource.url=jdbc:mysql://localhost:3306/kylo
metadata.datasource.username=root
metadata.datasource.username=
metadata.datasource.password=
metadata.datasource.validationQuery=SELECT 1
metadata.datasource.testOnBorrow=true


hive.datasource.driverClassName=org.apache.hive.jdbc.HiveDriver
hive.datasource.url=jdbc:hive2://localhost:10000/default
hive.datasource.username=hive
hive.datasource.username=
hive.datasource.password=
hive.datasource.validationQuery=SELECT 1
hive.datasource.testOnBorrow=true

hive.metastore.datasource.driverClassName=org.mariadb.jdbc.Driver
hive.metastore.datasource.url=jdbc:mysql://localhost:3306/metastore
hive.metastore.datasource.username=root
hive.metastore.datasource.username=
hive.metastore.datasource.password=
hive.metastore.validationQuery=SELECT 1
hive.metastore.testOnBorrow=true
Expand Down
Loading

0 comments on commit 2a09005

Please sign in to comment.