rename insecure to --no-tls and add to Makefile
3 unresolved threads
3 unresolved threads
Summary
Server can be startet without TLS (only HTTP, no certificate needed) even when not in debug mode.
Focus
The actual change is only a one-liner in CaosDBServer.java
The Makefile is changed to make it easy to start the server without tls
Test Environment
Test in deploy (https://gitlab.indiscale.com/caosdb/src/caosdb-deploy/-/merge_requests/124) with no_tls
set to true/false
Check List for the Author
-
All automated tests pass -
Reference related Issues -
Up-to-date CHANGELOG.md -
Annotations in code (Gitlab comments) - Intent of new code
- Problems with old code
- Why this implementation?
Check List for the Reviewer
-
I understand the intent of this MR -
All automated tests pass -
Up-to-date CHANGELOG.md -
The test environment setup works and the intended behavior is reproducible in the test environment -
In-code documentation and comments are up-to-date. -
Check: Are there spezifications? Are they satisfied?
For further good practices have a look at our review guidelines.
Edited by Henrik tom Wörden
Merge request reports
Activity
117 117 private static ArrayList<Runnable> postShutdownHooks = new ArrayList<Runnable>(); 118 118 private static ArrayList<Runnable> preShutdownHooks = new ArrayList<Runnable>(); 119 119 private static boolean START_BACKEND = true; 120 private static boolean INSECURE = false; 120 private static boolean NO_TLS = false; 168 * `caosdb.debug` JVM Property. 169 169 * 170 170 * @param args 171 171 */ 172 172 private static void parseArguments(final String[] args) { 173 173 for (final String s : args) { 174 if (s.equals("nobackend")) { 174 if (s.equals("--no-backend")) { 175 175 START_BACKEND = false; 176 } else if (s.equals("insecure")) { 177 INSECURE = true; 176 } else if (s.equals("--no-tls")) { 177 NO_TLS = true; 178 178 } 179 179 } 180 INSECURE = INSECURE && isDebugMode(); // only allow insecure in debug mode requested review from @henrik
mentioned in commit a35254cc
Please register or sign in to reply