-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from NTIA/cert_auth
Cert auth
- Loading branch information
Showing
36 changed files
with
903 additions
and
1,250 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Certs | ||
|
||
Add SSL certs and JWT public key here. | ||
Add SSL certs here. |
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 |
---|---|---|
|
@@ -39,15 +39,15 @@ GIT_BRANCH="git:$(git rev-parse --abbrev-ref HEAD)@$(git rev-parse --short HEAD) | |
# If admin user email and password set, admin user will be generated. | ||
ADMIN_EMAIL="[email protected]" | ||
ADMIN_PASSWORD=password | ||
ADMIN_NAME=Admin | ||
ADDITIONAL_USER_NAMES="" # comma separated | ||
ADDITIONAL_USER_PASSWORD="" | ||
|
||
# Session password for Postgres. Username is "postgres". | ||
# SECURITY WARNING: generate unique key with something like | ||
# `openssl rand -base64 12` | ||
POSTGRES_PASSWORD="$(python3 -c 'import secrets; import base64; print(base64.b64encode(secrets.token_bytes(32)).decode("utf-8"))')" | ||
|
||
# Set to enable monitoring sensors with your sentry.io account | ||
SENTRY_DSN= | ||
|
||
if $DEBUG; then | ||
GUNICORN_LOG_LEVEL=debug | ||
RAY_record_ref_creation_sites=1 | ||
|
@@ -64,18 +64,15 @@ MANAGER_IP="$(hostname -I | cut -d' ' -f1)" | |
|
||
BASE_IMAGE=ghcr.io/ntia/scos-tekrsa/tekrsa_usb:0.2.3 | ||
# Default callback api/results | ||
# Set to OAUTH if using OAuth Password Flow Authentication, callback url needs to be api/v2/results | ||
# Set to CERT for certificate authentication | ||
CALLBACK_AUTHENTICATION=TOKEN | ||
CALLBACK_TIMEOUT=2 | ||
|
||
CLIENT_ID=sensor01.sms.internal | ||
CLIENT_SECRET=sensor-secret | ||
|
||
# Sensor certificate with private key used as client cert | ||
# Sensor certificate with private key used as client cert for callback URL | ||
# Paths relative to configs/certs | ||
PATH_TO_CLIENT_CERT=sensor01.pem | ||
# Trusted Certificate Authority certificate to verify authserver and callback URL server certificate | ||
# Trusted Certificate Authority certificate to verify callback URL server certificate | ||
PATH_TO_VERIFY_CERT=scos_test_ca.crt | ||
# Path relative to configs/certs | ||
PATH_TO_JWT_PUBLIC_KEY=jwt_pubkey.pem | ||
# set to JWT to enable JWT authentication | ||
|
||
# set to CERT to enable scos-sensor certificate authentication | ||
AUTHENTICATION=TOKEN |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.