starlinglab / integrity-deploy Goto Github PK
View Code? Open in Web Editor NEWInfrastructure Ansible code used for deployment of the Starling Integrity framework.
License: MIT License
Infrastructure Ansible code used for deployment of the Starling Integrity framework.
License: MIT License
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
Currently a script is use to create archives, invite master account, extract invite code and then accept the invite.
Browsertrix has new end points that can bypass the email invitation step.
How to manage this?
Could use age for encryption. As opposed to gpg there is zero config, keys are short etc.
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 / {
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.