arcsecond 3.17.1__tar.gz → 3.17.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {arcsecond-3.17.1 → arcsecond-3.17.2}/PKG-INFO +1 -1
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/utils.py +4 -2
- {arcsecond-3.17.1 → arcsecond-3.17.2}/pyproject.toml +1 -1
- arcsecond-3.17.2/tests/test_hosting_utils_secret_key.py +10 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/uv.lock +1 -1
- {arcsecond-3.17.1 → arcsecond-3.17.2}/.docker/Dockerfile_postgres +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/.docker/Dockerfile_redis +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/.flake8 +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/.github/dependabot.yml +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/.github/workflows/pythonpublish.yml +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/.github/workflows/tests.yml +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/.gitignore +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/LICENSE +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/Makefile +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/README.md +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/__version__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/alpaca/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/alpaca/commands.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/alpaca/dome_probe.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/api/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/api/config.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/api/constants.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/api/endpoint.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/api/main.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/api/resources.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cli.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/auth.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/resources.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/constants.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/context.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/datafiles/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/datafiles/context.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/datafiles/errors.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/datafiles/uploader.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/datafiles/utils.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/errors.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/logger.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/uploader.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/utils.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploader/walker.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/cloud/uploads.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/errors.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/backups.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/checks.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/constants.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/database.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/docker/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/docker/constants.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/docker/containers.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/docker/docker-compose.yml +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/docker/images.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/docker/utils.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/keygen/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/keygen/client.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/keygen/utils.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/local.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/main.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/postgres/init-db.sh +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/setup.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/hosting/validation.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/commands.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/detection.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/proxy.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/registry.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/runtime.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/sources/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/sources/base.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/sources/filewatch.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/sources/network.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/sources/opencv.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/imagesources/store.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/options.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/arcsecond/targets.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/examples/example_upload_files.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/requirements.txt +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/setup.cfg +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/setup.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/sonar-project.properties +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/api/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/api/test_api.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/api/test_api_endpoint.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/api/test_config.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/api/test_targets.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/uploader/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/uploader/datafiles/__init__.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/uploader/datafiles/test_uploader_errors.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/uploader/datafiles/test_uploader_full_process.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/uploader/datafiles/test_uploader_init.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/uploader/datafiles/test_uploader_prepare.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/uploader/datafiles/test_uploader_upload.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/conftest.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/fixtures/file1.fits +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_alpaca_probe.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_cli.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_hosting_backups_restore.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_hosting_database.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_hosting_local.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_imagesources_commands.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_imagesources_detection.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_imagesources_network.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_imagesources_proxy.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_imagesources_store.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_imagesources_webcam.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/test_targets_planning.py +0 -0
- {arcsecond-3.17.1 → arcsecond-3.17.2}/tests/utils.py +0 -0
|
@@ -42,8 +42,10 @@ def _read_env_value(key, env_path=None):
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
def _get_random_secret_key():
|
|
45
|
-
#
|
|
46
|
-
|
|
45
|
+
# The value lands unquoted in .env, which Compose interpolates: '$name'
|
|
46
|
+
# would be swallowed (with a "variable is not set" warning) and '%' is
|
|
47
|
+
# unsafe in configparser-style readers. Neither belongs in the alphabet.
|
|
48
|
+
chars = "abcdefghijklmnopqrstuvwxyz0123456789!@#^&*(-_=+)"
|
|
47
49
|
return "".join(secrets.choice(chars) for _ in range(50))
|
|
48
50
|
|
|
49
51
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from arcsecond.hosting.utils import _get_random_secret_key
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def test_secret_key_has_no_compose_interpolation_characters():
|
|
5
|
+
# Compose interpolates '$name' inside .env; '%' trips configparser readers.
|
|
6
|
+
for _ in range(200):
|
|
7
|
+
key = _get_random_secret_key()
|
|
8
|
+
assert len(key) == 50
|
|
9
|
+
assert "$" not in key
|
|
10
|
+
assert "%" not in key
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/uploader/datafiles/test_uploader_errors.py
RENAMED
|
File without changes
|
{arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/uploader/datafiles/test_uploader_full_process.py
RENAMED
|
File without changes
|
|
File without changes
|
{arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/uploader/datafiles/test_uploader_prepare.py
RENAMED
|
File without changes
|
{arcsecond-3.17.1 → arcsecond-3.17.2}/tests/cloud/uploader/datafiles/test_uploader_upload.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|