-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement HTTPS in Rosalution, complete with copying and system test (#β¦
β¦148) * Added HTTPS to the Rosalution project. Updated all the necessary files to generate and manage certificates. Updated the variant copy button to work properly along with a system test * Fixed the unit test in GeneBox testing the copy to clipboard functionality * broke out the certificate generation to be its own script, added reactivity to the copy text button, also the button now toasts with a success explaining the text copied * Frontend linting * Added a unit test for copied text toast, any copy text can use this function * Updated the readme to include mkcert as a prerequisite * Added -p option to mkdir in ./etc/generate-ssl-certs.sh to ensure parent directories are made during creation time
- Loading branch information
Showing
13 changed files
with
119 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,4 +64,7 @@ backend/example_file_to_upload.txt | |
media/ | ||
*.jats | ||
*.crossref | ||
*.crossref | ||
|
||
# SSL/TLS Certificates | ||
*.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
|
||
# Uses mkcert to generate self-signed SSL/TLS certificates to allow Traefik to manage HTTPS | ||
# connections for a local deployment for Rosalution. Automatically installs the generated certificate | ||
# with the Chrome browser trust to let the browser know the certificate is valid and secure when | ||
# accessing local.rosalutin.cgds/rosalution. | ||
|
||
# Also creates the certificate directory path, default is ./etc/.certificates | ||
|
||
# ./generate-ssl-certs.sh <hostname> <certificate path> | ||
# ./generate-ssl-certs.sh local.rosalution.cgds ./etc/.certificates | ||
|
||
|
||
HOSTNAME=$1 | ||
CERT_PATH=$2 | ||
|
||
mkdir -p "$CERT_PATH" | ||
|
||
mkcert -cert-file "$CERT_PATH"/local-deployment-cert.pem -key-file "$CERT_PATH"/local-deployment-key.pem "$HOSTNAME" | ||
mkcert -install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
tls: | ||
certificates: | ||
- certFile: "/etc/certs/local-deployment-cert.pem" | ||
keyFile: "/etc/certs/local-deployment-key.pem" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters