-
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 branch 'master' of https://github.com/NTIA/scos-sensor into wai…
…t_until_db_ready
- Loading branch information
Showing
82 changed files
with
1,988 additions
and
2,290 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Actions | ||
|
||
Add yaml configs for actions in this directory to create additional actions. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"calibration_data":{ | ||
"datetime": "1970-01-01T00:00:00.000000Z", | ||
"gain": 0, | ||
"noise_figure": 0.0, | ||
"1db_compression_point": null, | ||
"enbw": null, | ||
"temperature": 26.85 | ||
}, | ||
"last_calibration_datetime": "1970-01-01T00:00:00.000000Z", | ||
"calibration_parameters": [], | ||
"clock_rate_lookup_by_sample_rate": [ | ||
], | ||
"sensor_uid": "DEFAULT CALIBRATION", | ||
"calibration_reference": "noise source output" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,76 +6,93 @@ | |
# Mark all the following variables for export | ||
set -o allexport | ||
|
||
# https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-SECRET_KEY | ||
# SECURITY WARNING: generate unique key with `manage.py generate_secret_key` | ||
SECRET_KEY="$(python3 -c 'import secrets; print(secrets.token_urlsafe(64))')" | ||
ENCRYPT_DATA_FILES=true | ||
ENCRYPTION_KEY="$(python3 -c 'import secrets; import base64; print(base64.b64encode(secrets.token_bytes(32)).decode("utf-8"))')" | ||
#Any names here will be added as additional users with the | ||
#specified additional user password | ||
ADDITIONAL_USER_NAMES="" # comma separated | ||
ADDITIONAL_USER_PASSWORD="" | ||
|
||
# Get scos-sensor branch name | ||
SCOS_SENSOR_GIT_TAG="$(git describe --tags)" | ||
# If admin user email and password set, admin user will be generated. | ||
ADMIN_EMAIL="[email protected]" | ||
ADMIN_NAME=admin | ||
ADMIN_PASSWORD=password | ||
|
||
# set to CERT to enable scos-sensor certificate authentication | ||
AUTHENTICATION=TOKEN | ||
|
||
BASE_IMAGE=ghcr.io/ntia/scos-tekrsa/tekrsa_usb:0.2.3 | ||
# Default callback api/results | ||
# Set to CERT for certificate authentication | ||
CALLBACK_AUTHENTICATION=TOKEN | ||
# Set to false to disable SSL cert verification in the callback POST request | ||
CALLBACK_SSL_VERIFICATION=false | ||
|
||
#Set the number of seconds before timeout in postback when a scheduled | ||
#action completes | ||
CALLBACK_TIMEOUT=2 | ||
|
||
# SECURITY WARNING: don't run with debug turned on in production! | ||
# Use either true or false | ||
DEBUG=true | ||
|
||
DEVICE_MODEL=RSA507A | ||
|
||
# Use latest as default for local development | ||
DOCKER_TAG=latest | ||
|
||
# A space-separated list of domain names and IPs | ||
DOMAINS="localhost $(hostname -d) $(hostname -s).local" | ||
IPS="$(hostname -I) 127.0.0.1" | ||
|
||
ENCRYPT_DATA_FILES=true | ||
|
||
ENCRYPTION_KEY="$(python3 -c 'import secrets; import base64; print(base64.b64encode(secrets.token_bytes(32)).decode("utf-8"))')" | ||
|
||
FQDN="$(hostname -f)" | ||
|
||
# SECURITY WARNING: You should be using certs from a trusted authority. | ||
# If you don't have any, try letsencrypt or a similar service. | ||
# Provide the absolute path to your ssl certificate and key | ||
# Paths relative to configs/certs | ||
REPO_ROOT=$(git rev-parse --show-toplevel) | ||
SSL_CERT_PATH=sensor01.pem | ||
SSL_KEY_PATH=sensor01.pem | ||
SSL_CA_PATH=scos_test_ca.crt | ||
# Use latest as default for local development | ||
DOCKER_TAG=latest | ||
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 | ||
IPS="$(hostname -I) 127.0.0.1" | ||
|
||
# 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= | ||
# set default manager FQDN and IP to this machine | ||
MANAGER_FQDN="$(hostname -f)" | ||
MANAGER_IP="$(hostname -I | cut -d' ' -f1)" | ||
|
||
# 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 callback URL server certificate | ||
PATH_TO_VERIFY_CERT=scos_test_ca.crt | ||
|
||
REPO_ROOT=$(git rev-parse --show-toplevel) | ||
# Get scos-sensor branch name | ||
SCOS_SENSOR_GIT_TAG="$(git describe --tags)" | ||
|
||
# https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-SECRET_KEY | ||
# SECURITY WARNING: generate unique key with `manage.py generate_secret_key` | ||
SECRET_KEY="$(python3 -c 'import secrets; print(secrets.token_urlsafe(64))')" | ||
|
||
SIGAN_CLASS=TekRSASigan | ||
SIGAN_MODULE=scos_tekrsa.hardware.tekrsa_sigan | ||
|
||
# SECURITY WARNING: You should be using certs from a trusted authority. | ||
# If you don't have any, try letsencrypt or a similar service. | ||
# Provide the absolute path to your ssl certificate and key | ||
# Paths relative to configs/certs | ||
SSL_CA_PATH=scos_test_ca.crt | ||
SSL_CERT_PATH=sensor01.pem | ||
SSL_KEY_PATH=sensor01.pem | ||
|
||
USB_DEVICE=Tektronix | ||
|
||
|
||
# Debug dependant settings | ||
if $DEBUG; then | ||
GUNICORN_LOG_LEVEL=debug | ||
RAY_record_ref_creation_sites=1 | ||
else | ||
GUNICORN_LOG_LEVEL=info | ||
fi | ||
|
||
# Set to false to disable SSL cert verification in the callback POST request | ||
CALLBACK_SSL_VERIFICATION=true | ||
|
||
# set default manager FQDN and IP to this machine | ||
MANAGER_FQDN="$(hostname -f)" | ||
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 | ||
CALLBACK_AUTHENTICATION=TOKEN | ||
CALLBACK_TIMEOUT=2 | ||
|
||
CLIENT_ID=sensor01.sms.internal | ||
CLIENT_SECRET=sensor-secret | ||
|
||
# Sensor certificate with private key used as client cert | ||
PATH_TO_CLIENT_CERT=sensor01.pem | ||
# Trusted Certificate Authority certificate to verify authserver and 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 | ||
AUTHENTICATION=TOKEN |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.