-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issue 41 security #43
base: develop
Are you sure you want to change the base?
Conversation
@@ -134,6 +134,13 @@ spark: | |||
kryoserializer_buffer: '1024k' # It is suggested that you omit setting kryoserializer_buffer_max and kryoserializer_buffer and only set them if you get serialization errors. | |||
driver_java_options: '-verbose:gc' # Optional. When on a local machine with less than 36GB of ram -XX:+UseCompressedOops | |||
executor_extra_java_options: '-verbose:gc' # Optional. When on a local machine with less than 36GB of ram -XX:+UseCompressedOops | |||
auth_secret: 'TEST_SECRET' # Optional. For RPC auth in cluster set up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be tested on the cluster.
keytool -exportcert -keystore "$KEYSTORE_PATH/keystore" -alias selfsigned -storepass $STORE_PASS -file spark.cer | ||
|
||
# note: do not forget to import cert in all nodes | ||
keytool -importcert -keystore "$TRUSTSTORE_PATH/truststore" -alias selfsigned -storepass $STORE_PASS -file spark.cer -noprompt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have checked this only locally. We'll need to test this on the cluster.
conf.set('spark.ssl.keyStore', spark_conf.ssl_keystore) | ||
conf.set('spark.ssl.keyStorePassword', spark_conf.ssl_keystore_password) | ||
conf.set('spark.ssl.keyPassword', spark_conf.ssl_keypassword) | ||
conf.set('spark.ssl.protocol', 'TLSv1.2') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure about the tls protocol version, will double check.
Adding spark security and encryption. SSL and basic authentication for one user (one admin) for the UI.
closes #41