Skip to content

FR Security Settings

prasadtalasila edited this page May 26, 2017 · 8 revisions


  1. The TLS security settings have to be at least TLS v1.2 compliant, preferably TLS v1.3 compliant. Use the best cipher suites from OWASP recommendations.


  1. The passphrases of security certificates provide additional layer of security. But, passphrases require human to input password. We can't use them for automated SSH operations between load balancer - gitlab and execution nodes - gitlab situations.

A summary of security settings used in the application. Most of these settings are enforced in the following files.

  • deploy/
  • deploy/keys.conf
  • deploy/openssl.conf

The DNS naming hierarchy for issuing security certificates is as follows.

  • application url:
  • main server: (only after making MS sit behind Kong gateway)
    For now, main server uses certificate issued to
  • gitlab: (only after making gitlab sit behind Kong gateway)
    For now, main server uses certificate issued to
  • load balancer:
  • execution node-1:
  • execution node-2:

The keys are at present stored for backup in the following directory structure.

       gitlab/ (contains SSH keys)
       main_server/ (contains SSL keys)
       load_balancer/ (contains SSL keys)
       execution_nodes/ (contains SSL keys)

The keys used by the AutolabJS components are available in the following locations.


Here are a few suggested BATS tests for deploy/

  1. creation of freshly minted certificates at the right locations
  2. all certificates having the configured information and nothing else
  3. test for createCert() function using different inputs
  4. test all certificates for compliance against different standards we talked about before. One test for each standard.


  1. keylength - a summary of security settings from experts
  2. OWASP guidelines on TLS, Key Mgmt, Authentication
    1. The seems to be TLS-PSK (Pre-Shared Key) or TLS-SRP. We might be able to solve the mutual authentication problem with in the framework of TLS. Again see the OWASP page for details.
    2. Select one of the tools on the OWASP page and use it to test the weaknesses in our configuration / generated certificates. Such a tool can be used in the BATS test script for
  3. Certificate pinning
    1. We can make main server-load balancer connection and load balancer - execution node connection that can go through TLSv1.2-SRP check with client certificate pinning. The main server to web browser connection would be through TLS v1.2 without SRP.
    2. On the down side, certificate pinning makes dynamic deployment of components really difficult. Think about the problems of any security setup for dynamic deployment / rotation / scale up.
  4. Express.js security best practices
  5. SRP in SSL
  6. OWASP secure coding practices
  7. SSH key generation and usage guidelines - Mozilla, GNOME, ArchLinux, ssh-keygen man page, gitlab
  8. Hardening SSH - Mangus, Kleppmann
Clone this wiki locally
You can’t perform that action at this time.