Giter VIP home page Giter VIP logo

integrity-deploy's People

Contributors

benhylau avatar makew0rld avatar yurkowashere avatar

Watchers

 avatar

Forkers

mveytsman

integrity-deploy's Issues

Authsign concurrency

ikreymer โ€” Today at 6:54 PM
i think i might know what's going on!! authsign is running with a concurrency of 4 as a web server, and i bet its trying to make 4 requests to get the cert, thus quickly reaching the limit!
there's really no need for it to run 4 processes, that was intended for the backend.. since its just handling one request per archive

well, a simple fix for your deployment is just to add to the authsign env
environment:

      - CONFIG=/app-config/signing.yaml
      - WEB_CONCURRENCY=1

Authsign url goes to browsertrix ui

Because authsign docker consumes LE certificate, nginx is not configured for https authsign since it has no certificate. nginx uses browsertrix ui for authsign https domain

Permanent solution: add self-signed certificate in ansible to take over authsign

Temporary work around:

Generate self sign cert

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt

update nginx by adding to authsign


        server {

  listen 0.0.0.0:443 ssl http2;
  listen [::]:443 ssl http2;

  server_name authsign.starlinglab.org;



  ##########
  # Source for SSL configuration:
  # https://ssl-config.mozilla.org/#server=nginx&version=1.18.0&config=intermediate&openssl=1.1.1n&guideline=5.6
  # Copied from there and changed to have real file paths
  ##########

  ssl_certificate     /etc/ssl/certs/nginx-selfsigned.crt;
  ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
  ssl_session_timeout 1d;
  ssl_session_cache shared:MozSSL:10m;  # about 40000 sessions
  ssl_session_tickets off;

  ssl_dhparam /etc/ssl/dhparam.pem;

  # intermediate configuration
  ssl_protocols TLSv1.2 TLSv1.3;
  ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
  ssl_prefer_server_ciphers off;

  # HSTS (ngx_http_headers_module is required) (63072000 seconds)
  add_header Strict-Transport-Security "max-age=63072000" always;

  # OCSP stapling
  ssl_stapling on;
  ssl_stapling_verify on;

  # verify chain of trust of OCSP response using Root CA and Intermediate certs
  ssl_trusted_certificate /etc/letsencrypt/live/star.browsertrix.prod.starlinglab.org/fullchain.pem;

  resolver 1.1.1.1;

  ##########
  # End of copied SSL configuration
  ##########


  add_header X-Content-Type-Options nosniff;
  add_header X-Frame-Options DENY;
  keepalive_timeout 60;

  location / {

  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.