forked from mtusi2026/mtusi2026lab7
Implement lab 7 transport security and worker containment
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# Реальные проверки ЛР7
|
||||
|
||||
Все результаты получены на локальном arm64 Docker-стенде13.11.2026. Не являются старыми нагрузочными измерениями ЛР6. Полные последовательности запуска и ограничения — [REPORT](../../REPORT.md).
|
||||
|
||||
| Файл | Что подтверждает |
|
||||
| --- | --- |
|
||||
| [offline-final.txt](offline-final.txt) | make check validate lint; Ruff/format/ty |
|
||||
| [student-tests-clean.txt](student-tests-clean.txt) | 997passed/2skipped/19deselected; чистое состояние fixtures |
|
||||
| [public-final.txt](public-final.txt) | HTTPS public smoke, внешний TLS trust |
|
||||
| [persistence.txt](persistence.txt) | restart с сохранением data/session |
|
||||
| [failover-1.txt](failover-1.txt) | публичный resilience:129writes/0failed |
|
||||
| [failover-each.json](failover-each.json) | отдельная остановка обеих реплик,60writes/0failed |
|
||||
| [trust-audit-final.json](trust-audit-final.json) | 103positive/negativeTLS/ACL probes |
|
||||
| [hardening.json](hardening.json) | реальный Docker inspect без env/secrets,23runtimecontainers |
|
||||
| [kdf-budget.json](kdf-budget.json) | Argon2id100verify ×3concurrency |
|
||||
| [lifecycle.json](lifecycle.json) | Bao sealed/restart/expiry/unseal, shared login limit |
|
||||
| [broad-rights.json](broad-rights.json) | реальные broad operator permissions для сравнения |
|
||||
| [worker-compromise.json](worker-compromise.json) | итоговые3повтора, revocation/rotation/recovery и counts публикаций |
|
||||
| [worker-compromise-first-series.json](worker-compromise-first-series.json) | первая серия3повторов, сохранена отдельно |
|
||||
| [telemetry-secrets.json](telemetry-secrets.json) | presence метрик/логов/traces и secret-value/canary scan |
|
||||
| [image-scan.json](image-scan.json) | Trivy OS+Python итогового runtime image; [разбор](../../security/SCAN_TRIAGE.md) |
|
||||
|
||||
Промежуточные провалы сохранены: `student-tests.txt` (новая migration head и Rabbit fixture), `student-tests-final.txt` (оставшийся outbox между тестами), `student-tests-isolated.txt` (прерван после обнаружения отсутствующего импорта в fixture), `login-tests.txt` (reserved SQL identifier window), `trust-audit-initial.json` (S3 SigV4 probe без обязательного payload header), `telemetry-secrets-initial.json` (S3 identity ID ошибочно посчитан secret). Они не помечены как PASS. Соответствующие исправленные прогоны лежат рядом. `broad-rights.stderr` — первый probe попытался создать запрещённый тип transient queue; финальный тест использует изолированную exclusive queue.
|
||||
|
||||
Проверяем не только завершение скрипта: сравниваем код ответа/разрешённую операцию, SHA256, сохранённую сессию, конкретный остановленный instance, server-side ACL, новые соединения со старым cert/password. Подробные Docker logs с потенциальными идентификаторами не коммитятся; сохранили только агрегаты проверки и безопасный вывод.
|
||||
@@ -0,0 +1,16 @@
|
||||
Container mtusi2026lab7-api-1 Recreate
|
||||
Container mtusi2026lab7-worker-1 Recreate
|
||||
Container mtusi2026lab7-relay-1 Recreate
|
||||
Container mtusi2026lab7-api-2 Recreate
|
||||
Container mtusi2026lab7-relay-1 Recreated
|
||||
Container mtusi2026lab7-worker-1 Recreated
|
||||
Container mtusi2026lab7-api-1 Recreated
|
||||
Container mtusi2026lab7-api-2 Recreated
|
||||
Container mtusi2026lab7-worker-1 Starting
|
||||
Container mtusi2026lab7-relay-1 Starting
|
||||
Container mtusi2026lab7-api-1 Starting
|
||||
Container mtusi2026lab7-relay-1 Started
|
||||
Container mtusi2026lab7-worker-1 Started
|
||||
Container mtusi2026lab7-api-1 Started
|
||||
Container mtusi2026lab7-api-2 Starting
|
||||
Container mtusi2026lab7-api-2 Started
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"checks": [
|
||||
{
|
||||
"test": "broad-db:users-readable",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "broad-db:ddl-allowed",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "broad-s3:private-write",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "broad-s3:private-delete",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "broad-queue:configure-publish-consume-delete",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"passed": true
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
Unexpected connection close from remote "amqps://messenger-ops:******@broker:5671/messenger", Connection.Close(reply_code=541, reply_text='INTERNAL_ERROR - Feature `transient_nonexcl_queues` is deprecated.\nIts use is not permitted per the configuration (overriding the default, which is permitted):\n "deprecated_features.permit.transient_nonexcl_queues = false"\nIts use will not be permit...')
|
||||
Cancelling cause reader exited abnormally
|
||||
Traceback (most recent call last):
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/connection.py", line 755, in __reader
|
||||
await self.__handle_close(frame)
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/connection.py", line 698, in __handle_close
|
||||
raise exception
|
||||
aiormq.exceptions.ConnectionInternalError: INTERNAL_ERROR - Feature `transient_nonexcl_queues` is deprecated.
|
||||
Its use is not permitted per the configuration (overriding the default, which is permitted):
|
||||
"deprecated_features.permit.transient_nonexcl_queues = false"
|
||||
Its use will not be permit...
|
||||
Traceback (most recent call last):
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/abc.py", line 42, in __inner
|
||||
return await self.task
|
||||
^^^^^^^^^^^^^^^
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/connection.py", line 808, in __heartbeat
|
||||
await asyncio.sleep(heartbeat_timeout)
|
||||
File "/usr/local/lib/python3.14/asyncio/tasks.py", line 705, in sleep
|
||||
return await future
|
||||
^^^^^^^^^^^^
|
||||
asyncio.exceptions.CancelledError: INTERNAL_ERROR - Feature `transient_nonexcl_queues` is deprecated.
|
||||
Its use is not permitted per the configuration (overriding the default, which is permitted):
|
||||
"deprecated_features.permit.transient_nonexcl_queues = false"
|
||||
Its use will not be permit...
|
||||
|
||||
The above exception was the direct cause of the following exception:
|
||||
|
||||
Traceback (most recent call last):
|
||||
File "/audit/privilege_compare.py", line 50, in <module>
|
||||
asyncio.run(compare(json.load(sys.stdin)))
|
||||
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/usr/local/lib/python3.14/asyncio/runners.py", line 205, in run
|
||||
return runner.run(main)
|
||||
~~~~~~~~~~^^^^^^
|
||||
File "/usr/local/lib/python3.14/asyncio/runners.py", line 128, in run
|
||||
return self._loop.run_until_complete(task)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
|
||||
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 720, in run_until_complete
|
||||
return future.result()
|
||||
~~~~~~~~~~~~~^^
|
||||
File "/audit/privilege_compare.py", line 41, in compare
|
||||
queue = await channel.declare_queue("security-comparison", auto_delete=True)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/opt/venv/lib/python3.14/site-packages/aio_pika/channel.py", line 399, in declare_queue
|
||||
await queue.declare(timeout=timeout)
|
||||
File "/opt/venv/lib/python3.14/site-packages/aio_pika/queue.py", line 117, in declare
|
||||
self.declaration_result = await channel.queue_declare(
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
...<7 lines>...
|
||||
)
|
||||
^
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/channel.py", line 1318, in queue_declare
|
||||
return await self.rpc(
|
||||
^^^^^^^^^^^^^^^
|
||||
...<10 lines>...
|
||||
)
|
||||
^
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/channel.py", line 64, in wrap
|
||||
return await self.create_task(func(self, *args, **kwargs))
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/abc.py", line 48, in __inner
|
||||
raise self._exception
|
||||
File "/usr/local/lib/python3.14/asyncio/tasks.py", line 724, in _wrap_awaitable
|
||||
return await awaitable
|
||||
^^^^^^^^^^^^^^^
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/abc.py", line 48, in __inner
|
||||
raise self._exception
|
||||
File "/usr/local/lib/python3.14/asyncio/tasks.py", line 724, in _wrap_awaitable
|
||||
return await awaitable
|
||||
^^^^^^^^^^^^^^^
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/abc.py", line 49, in __inner
|
||||
raise self._exception from e
|
||||
File "/usr/local/lib/python3.14/asyncio/tasks.py", line 724, in _wrap_awaitable
|
||||
return await awaitable
|
||||
^^^^^^^^^^^^^^^
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/abc.py", line 42, in __inner
|
||||
return await self.task
|
||||
^^^^^^^^^^^^^^^
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/connection.py", line 755, in __reader
|
||||
await self.__handle_close(frame)
|
||||
File "/opt/venv/lib/python3.14/site-packages/aiormq/connection.py", line 698, in __handle_close
|
||||
raise exception
|
||||
aiormq.exceptions.ConnectionInternalError: INTERNAL_ERROR - Feature `transient_nonexcl_queues` is deprecated.
|
||||
Its use is not permitted per the configuration (overriding the default, which is permitted):
|
||||
"deprecated_features.permit.transient_nonexcl_queues = false"
|
||||
Its use will not be permit...
|
||||
|
||||
@@ -0,0 +1,364 @@
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 432B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 1.95kB done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load metadata for docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#4 DONE 3.0s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 196B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#6 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 0.0s done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#7 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d 0.0s done
|
||||
#7 CACHED
|
||||
|
||||
#8 [internal] load build context
|
||||
#8 transferring context: 387.94kB 0.0s done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 3/7] WORKDIR /build
|
||||
#10 CACHED
|
||||
|
||||
#11 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
||||
#11 DONE 0.0s
|
||||
|
||||
#12 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
|
||||
#12 0.231 Using CPython 3.14.7 interpreter at: /usr/local/bin/python3
|
||||
#12 0.232 Creating virtual environment at: /opt/venv
|
||||
#12 0.252 Resolved 100 packages in 9ms
|
||||
#12 0.597 Downloading pillow (6.2MiB)
|
||||
#12 0.597 Downloading aiohttp (1.8MiB)
|
||||
#12 0.598 Downloading sqlalchemy (3.1MiB)
|
||||
#12 0.622 Downloading pydantic-core (1.9MiB)
|
||||
#12 0.622 Downloading uvloop (4.1MiB)
|
||||
#12 0.622 Downloading asyncpg (3.6MiB)
|
||||
#12 0.622 Downloading botocore (15.3MiB)
|
||||
#12 4.418 Downloading aiohttp
|
||||
#12 4.503 Downloading pydantic-core
|
||||
#12 4.842 Downloading sqlalchemy
|
||||
#12 4.894 Downloading asyncpg
|
||||
#12 4.997 Downloading uvloop
|
||||
#12 5.185 Downloading pillow
|
||||
#12 5.735 Downloading botocore
|
||||
#12 5.735 Prepared 79 packages in 5.47s
|
||||
#12 5.824 Installed 79 packages in 89ms
|
||||
#12 6.267 Bytecode compiled 2685 files in 442ms
|
||||
#12 6.267 + aio-pika==10.2.1
|
||||
#12 6.267 + aiobotocore==3.10.0
|
||||
#12 6.267 + aiohappyeyeballs==2.7.1
|
||||
#12 6.267 + aiohttp==3.14.5
|
||||
#12 6.267 + aioitertools==0.13.0
|
||||
#12 6.267 + aiormq==7.2.4
|
||||
#12 6.267 + aiosignal==1.4.0
|
||||
#12 6.267 + alembic==1.16.5
|
||||
#12 6.267 + annotated-doc==0.0.5
|
||||
#12 6.267 + annotated-types==0.8.0
|
||||
#12 6.267 + anyio==4.15.1
|
||||
#12 6.267 + argon2-cffi==25.1.0
|
||||
#12 6.267 + argon2-cffi-bindings==26.1.0
|
||||
#12 6.267 + asgiref==3.13.0
|
||||
#12 6.267 + asyncpg==0.32.0
|
||||
#12 6.267 + attrs==26.1.0
|
||||
#12 6.267 + botocore==1.43.117
|
||||
#12 6.267 + certifi==2026.10.23
|
||||
#12 6.267 + cffi==2.1.1
|
||||
#12 6.267 + charset-normalizer==3.5.2
|
||||
#12 6.267 + click==8.5.0
|
||||
#12 6.267 + dishka==1.10.1
|
||||
#12 6.267 + dishka-faststream==0.7.0
|
||||
#12 6.267 + fast-depends==3.0.10
|
||||
#12 6.267 + fastapi==0.141.1
|
||||
#12 6.267 + faststream==0.7.8
|
||||
#12 6.267 + frozenlist==1.8.0
|
||||
#12 6.268 + googleapis-common-protos==1.76.0
|
||||
#12 6.268 + greenlet==3.5.6
|
||||
#12 6.268 + gunicorn==26.2.0
|
||||
#12 6.268 + h11==0.16.0
|
||||
#12 6.268 + httptools==0.8.0
|
||||
#12 6.268 + idna==3.20
|
||||
#12 6.268 + jmespath==1.1.0
|
||||
#12 6.268 + mako==1.4.3
|
||||
#12 6.268 + markupsafe==3.0.4
|
||||
#12 6.268 + multidict==7.2.1
|
||||
#12 6.268 + opentelemetry-api==1.45.1
|
||||
#12 6.268 + opentelemetry-exporter-http-transport==0.66b1
|
||||
#12 6.268 + opentelemetry-exporter-otlp-common==0.66b1
|
||||
#12 6.268 + opentelemetry-exporter-otlp-proto-common==1.45.1
|
||||
#12 6.268 + opentelemetry-exporter-otlp-proto-http==1.45.1
|
||||
#12 6.268 + opentelemetry-instrumentation==0.66b1
|
||||
#12 6.268 + opentelemetry-instrumentation-asgi==0.66b1
|
||||
#12 6.268 + opentelemetry-instrumentation-asyncpg==0.66b1
|
||||
#12 6.268 + opentelemetry-instrumentation-fastapi==0.66b1
|
||||
#12 6.268 + opentelemetry-proto==1.45.1
|
||||
#12 6.268 + opentelemetry-sdk==1.45.1
|
||||
#12 6.268 + opentelemetry-semantic-conventions==0.66b1
|
||||
#12 6.268 + opentelemetry-util-http==0.66b1
|
||||
#12 6.268 + orjson==3.12.0
|
||||
#12 6.268 + packaging==26.3
|
||||
#12 6.268 + pamqp==4.0.1
|
||||
#12 6.268 + pillow==13.0.0
|
||||
#12 6.268 + propcache==0.5.4
|
||||
#12 6.268 + protobuf==7.36.2
|
||||
#12 6.268 + pycparser==3.12
|
||||
#12 6.268 + pydantic==2.13.5
|
||||
#12 6.268 + pydantic-core==2.46.5
|
||||
#12 6.268 + pydantic-settings==2.15.0
|
||||
#12 6.268 + python-dateutil==2.9.0.post0
|
||||
#12 6.268 + python-dotenv==1.2.3
|
||||
#12 6.268 + pyyaml==6.0.3
|
||||
#12 6.268 + redis==8.1.0
|
||||
#12 6.268 + requests==2.34.2
|
||||
#12 6.268 + six==1.17.0
|
||||
#12 6.268 + sqlalchemy==2.0.45
|
||||
#12 6.268 + starlette==1.7.0
|
||||
#12 6.268 + structlog==26.1.0
|
||||
#12 6.268 + typing-extensions==4.16.0
|
||||
#12 6.268 + typing-inspection==0.4.4
|
||||
#12 6.268 + urllib3==2.8.0
|
||||
#12 6.268 + uvicorn==0.54.0
|
||||
#12 6.268 + uvicorn-worker==0.4.0
|
||||
#12 6.268 + uvloop==0.22.1
|
||||
#12 6.268 + watchfiles==1.3.0
|
||||
#12 6.268 + websockets==17.1
|
||||
#12 6.268 + wrapt==2.5.1
|
||||
#12 6.268 + yarl==1.25.1
|
||||
#12 DONE 6.8s
|
||||
|
||||
#13 [runtime 2/9] RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends haproxy && rm -rf /var/lib/apt/lists/*
|
||||
#13 0.314 Hit:1 http://deb.debian.org/debian trixie InRelease
|
||||
#13 0.586 Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
|
||||
#13 0.747 Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
|
||||
#13 ...
|
||||
|
||||
#14 [builder 6/7] COPY src ./src
|
||||
#14 DONE 0.1s
|
||||
|
||||
#15 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
|
||||
#15 0.147 Resolved 100 packages in 0.76ms
|
||||
#15 0.149 Building mtusi-messenger @ file:///build
|
||||
#15 2.056 Built mtusi-messenger @ file:///build
|
||||
#15 2.060 Prepared 1 package in 1.91s
|
||||
#15 2.065 Installed 1 package in 5ms
|
||||
#15 2.149 Bytecode compiled 2807 files in 83ms
|
||||
#15 2.149 + mtusi-messenger==1.7.0 (from file:///build)
|
||||
#15 DONE 2.2s
|
||||
|
||||
#13 [runtime 2/9] RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends haproxy && rm -rf /var/lib/apt/lists/*
|
||||
#13 7.943 Get:4 http://deb.debian.org/debian trixie/main arm64 Packages [9614 kB]
|
||||
#13 8.084 Get:5 http://deb.debian.org/debian trixie-updates/main arm64 Packages [1108 B]
|
||||
#13 8.310 Get:6 http://deb.debian.org/debian-security trixie-security/main arm64 Packages [303 kB]
|
||||
#13 8.538 Fetched 10.0 MB in 8s (1189 kB/s)
|
||||
#13 8.538 Reading package lists...
|
||||
#13 8.852 Reading package lists...
|
||||
#13 9.155 Building dependency tree...
|
||||
#13 9.232 Reading state information...
|
||||
#13 9.256 Calculating upgrade...
|
||||
#13 9.384 The following packages will be upgraded:
|
||||
#13 9.384 apt ca-certificates libapt-pkg7.0 liblzma5 libpcre2-8-0 libssl3t64 openssl
|
||||
#13 9.384 openssl-provider-legacy tzdata zlib1g
|
||||
#13 9.750 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
|
||||
#13 9.750 Need to get 7977 kB of archives.
|
||||
#13 9.750 After this operation, 0 B of additional disk space will be used.
|
||||
#13 9.750 Get:1 http://deb.debian.org/debian-security trixie-security/main arm64 liblzma5 arm64 5.8.1-1+deb13u2 [303 kB]
|
||||
#13 9.902 Get:2 http://deb.debian.org/debian-security trixie-security/main arm64 openssl-provider-legacy arm64 3.5.7-1~deb13u3 [314 kB]
|
||||
#13 10.25 Get:3 http://deb.debian.org/debian-security trixie-security/main arm64 zlib1g arm64 1:1.3.dfsg+really1.3.1-1+deb13u1 [85.0 kB]
|
||||
#13 10.93 Get:4 http://deb.debian.org/debian-security trixie-security/main arm64 libssl3t64 arm64 3.5.7-1~deb13u3 [2770 kB]
|
||||
#13 11.27 Get:5 http://deb.debian.org/debian-security trixie-security/main arm64 libapt-pkg7.0 arm64 3.0.4 [978 kB]
|
||||
#13 11.87 Get:6 http://deb.debian.org/debian-security trixie-security/main arm64 apt arm64 3.0.4 [1363 kB]
|
||||
#13 12.06 Get:7 http://deb.debian.org/debian-security trixie-security/main arm64 libpcre2-8-0 arm64 10.46-1~deb13u3 [263 kB]
|
||||
#13 12.26 Get:8 http://deb.debian.org/debian trixie-updates/main arm64 tzdata all 2026f-0+deb13u1 [268 kB]
|
||||
#13 12.53 Get:9 http://deb.debian.org/debian-security trixie-security/main arm64 openssl arm64 3.5.7-1~deb13u3 [1473 kB]
|
||||
#13 12.75 Get:10 http://deb.debian.org/debian-security trixie-security/main arm64 ca-certificates all 20250419+deb13u1 [161 kB]
|
||||
#13 12.84 debconf: unable to initialize frontend: Dialog
|
||||
#13 12.84 debconf: (TERM is not set, so the dialog frontend is not usable.)
|
||||
#13 12.84 debconf: falling back to frontend: Readline
|
||||
#13 12.84 debconf: unable to initialize frontend: Readline
|
||||
#13 12.84 debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC entries checked: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/aarch64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 8, <STDIN> line 10.)
|
||||
#13 12.84 debconf: falling back to frontend: Teletype
|
||||
#13 12.84 debconf: unable to initialize frontend: Teletype
|
||||
#13 12.84 debconf: (This frontend requires a controlling tty.)
|
||||
#13 12.84 debconf: falling back to frontend: Noninteractive
|
||||
#13 13.10 Preconfiguring packages ...
|
||||
#13 13.29 Fetched 7977 kB in 3s (2370 kB/s)
|
||||
#13 13.31 (Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 5657 files and directories currently installed.)
|
||||
#13 13.32 Preparing to unpack .../liblzma5_5.8.1-1+deb13u2_arm64.deb ...
|
||||
#13 13.32 Unpacking liblzma5:arm64 (5.8.1-1+deb13u2) over (5.8.1-1+deb13u1) ...
|
||||
#13 13.34 Setting up liblzma5:arm64 (5.8.1-1+deb13u2) ...
|
||||
#13 13.35 (Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 5657 files and directories currently installed.)
|
||||
#13 13.35 Preparing to unpack .../openssl-provider-legacy_3.5.7-1~deb13u3_arm64.deb ...
|
||||
#13 13.36 Unpacking openssl-provider-legacy (3.5.7-1~deb13u3) over (3.5.7-1~deb13u2) ...
|
||||
#13 13.37 Setting up openssl-provider-legacy (3.5.7-1~deb13u3) ...
|
||||
#13 13.38 (Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 5657 files and directories currently installed.)
|
||||
#13 13.38 Preparing to unpack .../zlib1g_1%3a1.3.dfsg+really1.3.1-1+deb13u1_arm64.deb ...
|
||||
#13 13.39 Unpacking zlib1g:arm64 (1:1.3.dfsg+really1.3.1-1+deb13u1) over (1:1.3.dfsg+really1.3.1-1+b1) ...
|
||||
#13 13.40 Setting up zlib1g:arm64 (1:1.3.dfsg+really1.3.1-1+deb13u1) ...
|
||||
#13 13.41 (Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 5656 files and directories currently installed.)
|
||||
#13 13.42 Preparing to unpack .../libssl3t64_3.5.7-1~deb13u3_arm64.deb ...
|
||||
#13 13.42 Unpacking libssl3t64:arm64 (3.5.7-1~deb13u3) over (3.5.7-1~deb13u2) ...
|
||||
#13 13.51 Setting up libssl3t64:arm64 (3.5.7-1~deb13u3) ...
|
||||
#13 13.53 (Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 5656 files and directories currently installed.)
|
||||
#13 13.53 Preparing to unpack .../libapt-pkg7.0_3.0.4_arm64.deb ...
|
||||
#13 13.53 Unpacking libapt-pkg7.0:arm64 (3.0.4) over (3.0.3) ...
|
||||
#13 13.58 Setting up libapt-pkg7.0:arm64 (3.0.4) ...
|
||||
#13 13.59 (Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 5656 files and directories currently installed.)
|
||||
#13 13.60 Preparing to unpack .../archives/apt_3.0.4_arm64.deb ...
|
||||
#13 13.61 Unpacking apt (3.0.4) over (3.0.3) ...
|
||||
#13 13.68 Setting up apt (3.0.4) ...
|
||||
#13 13.78 (Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 5656 files and directories currently installed.)
|
||||
#13 13.78 Preparing to unpack .../libpcre2-8-0_10.46-1~deb13u3_arm64.deb ...
|
||||
#13 13.79 Unpacking libpcre2-8-0:arm64 (10.46-1~deb13u3) over (10.46-1~deb13u2) ...
|
||||
#13 13.81 Setting up libpcre2-8-0:arm64 (10.46-1~deb13u3) ...
|
||||
#13 13.82 (Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 5656 files and directories currently installed.)
|
||||
#13 13.82 Preparing to unpack .../tzdata_2026f-0+deb13u1_all.deb ...
|
||||
#13 13.83 Unpacking tzdata (2026f-0+deb13u1) over (2026c-0+deb13u1) ...
|
||||
#13 14.13 Preparing to unpack .../openssl_3.5.7-1~deb13u3_arm64.deb ...
|
||||
#13 14.13 Unpacking openssl (3.5.7-1~deb13u3) over (3.5.7-1~deb13u2) ...
|
||||
#13 14.20 Preparing to unpack .../ca-certificates_20250419+deb13u1_all.deb ...
|
||||
#13 14.20 Unpacking ca-certificates (20250419+deb13u1) over (20250419) ...
|
||||
#13 14.33 Setting up tzdata (2026f-0+deb13u1) ...
|
||||
#13 14.35 debconf: unable to initialize frontend: Dialog
|
||||
#13 14.35 debconf: (TERM is not set, so the dialog frontend is not usable.)
|
||||
#13 14.35 debconf: falling back to frontend: Readline
|
||||
#13 14.35 debconf: unable to initialize frontend: Readline
|
||||
#13 14.35 debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC entries checked: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/aarch64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 8.)
|
||||
#13 14.35 debconf: falling back to frontend: Teletype
|
||||
#13 14.35 debconf: unable to initialize frontend: Teletype
|
||||
#13 14.35 debconf: (This frontend requires a controlling tty.)
|
||||
#13 14.35 debconf: falling back to frontend: Noninteractive
|
||||
#13 14.37
|
||||
#13 14.37 Current default time zone: 'Etc/UTC'
|
||||
#13 14.37 Local time is now: Fri Nov 13 20:44:00 UTC 2026.
|
||||
#13 14.37 Universal Time is now: Fri Nov 13 20:44:00 UTC 2026.
|
||||
#13 14.37 Run 'dpkg-reconfigure tzdata' if you wish to change it.
|
||||
#13 14.37
|
||||
#13 14.38 Setting up openssl (3.5.7-1~deb13u3) ...
|
||||
#13 14.38 Setting up ca-certificates (20250419+deb13u1) ...
|
||||
#13 14.42 debconf: unable to initialize frontend: Dialog
|
||||
#13 14.42 debconf: (TERM is not set, so the dialog frontend is not usable.)
|
||||
#13 14.42 debconf: falling back to frontend: Readline
|
||||
#13 14.42 debconf: unable to initialize frontend: Readline
|
||||
#13 14.42 debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC entries checked: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/aarch64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 8.)
|
||||
#13 14.42 debconf: falling back to frontend: Teletype
|
||||
#13 14.42 debconf: unable to initialize frontend: Teletype
|
||||
#13 14.42 debconf: (This frontend requires a controlling tty.)
|
||||
#13 14.42 debconf: falling back to frontend: Noninteractive
|
||||
#13 14.86 Updating certificates in /etc/ssl/certs...
|
||||
#13 15.11 rehash: warning: skipping ca-certificates.crt, it does not contain exactly one certificate or CRL
|
||||
#13 15.11 0 added, 2 removed; done.
|
||||
#13 15.12 Processing triggers for libc-bin (2.41-12+deb13u4) ...
|
||||
#13 15.14 Processing triggers for ca-certificates (20250419+deb13u1) ...
|
||||
#13 15.15 Updating certificates in /etc/ssl/certs...
|
||||
#13 15.30 0 added, 0 removed; done.
|
||||
#13 15.30 Running hooks in /etc/ca-certificates/update.d...
|
||||
#13 15.30 done.
|
||||
#13 15.31 Reading package lists...
|
||||
#13 15.59 Building dependency tree...
|
||||
#13 15.66 Reading state information...
|
||||
#13 15.76 The following additional packages will be installed:
|
||||
#13 15.76 libjemalloc2 liblua5.4-0 libopentracing-c-wrapper0t64 libopentracing1
|
||||
#13 15.76 Suggested packages:
|
||||
#13 15.76 vim-haproxy haproxy-doc
|
||||
#13 15.78 The following NEW packages will be installed:
|
||||
#13 15.78 haproxy libjemalloc2 liblua5.4-0 libopentracing-c-wrapper0t64
|
||||
#13 15.78 libopentracing1
|
||||
#13 16.28 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
|
||||
#13 16.28 Need to get 2931 kB of archives.
|
||||
#13 16.28 After this operation, 7673 kB of additional disk space will be used.
|
||||
#13 16.28 Get:1 http://deb.debian.org/debian trixie/main arm64 libjemalloc2 arm64 5.3.0-3 [216 kB]
|
||||
#13 16.51 Get:2 http://deb.debian.org/debian trixie/main arm64 liblua5.4-0 arm64 5.4.7-1+b2 [134 kB]
|
||||
#13 16.76 Get:3 http://deb.debian.org/debian trixie/main arm64 libopentracing1 arm64 1.6.0-4+b2 [50.0 kB]
|
||||
#13 17.02 Get:4 http://deb.debian.org/debian trixie/main arm64 libopentracing-c-wrapper0t64 arm64 1.1.3-3.1+b1 [28.3 kB]
|
||||
#13 17.83 Get:5 http://deb.debian.org/debian-security trixie-security/main arm64 haproxy arm64 3.0.11-1+deb13u4 [2502 kB]
|
||||
#13 17.89 debconf: unable to initialize frontend: Dialog
|
||||
#13 17.89 debconf: (TERM is not set, so the dialog frontend is not usable.)
|
||||
#13 17.89 debconf: falling back to frontend: Readline
|
||||
#13 17.89 debconf: unable to initialize frontend: Readline
|
||||
#13 17.89 debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC entries checked: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/aarch64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 8, <STDIN> line 5.)
|
||||
#13 17.89 debconf: falling back to frontend: Teletype
|
||||
#13 17.89 debconf: unable to initialize frontend: Teletype
|
||||
#13 17.89 debconf: (This frontend requires a controlling tty.)
|
||||
#13 17.89 debconf: falling back to frontend: Noninteractive
|
||||
#13 18.20 Fetched 2931 kB in 2s (1430 kB/s)
|
||||
#13 18.21 Selecting previously unselected package libjemalloc2:arm64.
|
||||
#13 18.21 (Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 5654 files and directories currently installed.)
|
||||
#13 18.21 Preparing to unpack .../libjemalloc2_5.3.0-3_arm64.deb ...
|
||||
#13 18.22 Unpacking libjemalloc2:arm64 (5.3.0-3) ...
|
||||
#13 18.24 Selecting previously unselected package liblua5.4-0:arm64.
|
||||
#13 18.24 Preparing to unpack .../liblua5.4-0_5.4.7-1+b2_arm64.deb ...
|
||||
#13 18.24 Unpacking liblua5.4-0:arm64 (5.4.7-1+b2) ...
|
||||
#13 18.25 Selecting previously unselected package libopentracing1:arm64.
|
||||
#13 18.25 Preparing to unpack .../libopentracing1_1.6.0-4+b2_arm64.deb ...
|
||||
#13 18.26 Unpacking libopentracing1:arm64 (1.6.0-4+b2) ...
|
||||
#13 18.27 Selecting previously unselected package libopentracing-c-wrapper0t64:arm64.
|
||||
#13 18.27 Preparing to unpack .../libopentracing-c-wrapper0t64_1.1.3-3.1+b1_arm64.deb ...
|
||||
#13 18.27 Unpacking libopentracing-c-wrapper0t64:arm64 (1.1.3-3.1+b1) ...
|
||||
#13 18.28 Selecting previously unselected package haproxy.
|
||||
#13 18.28 Preparing to unpack .../haproxy_3.0.11-1+deb13u4_arm64.deb ...
|
||||
#13 18.29 Unpacking haproxy (3.0.11-1+deb13u4) ...
|
||||
#13 18.37 Setting up libjemalloc2:arm64 (5.3.0-3) ...
|
||||
#13 18.37 Setting up liblua5.4-0:arm64 (5.4.7-1+b2) ...
|
||||
#13 18.38 Setting up libopentracing1:arm64 (1.6.0-4+b2) ...
|
||||
#13 18.38 Setting up libopentracing-c-wrapper0t64:arm64 (1.1.3-3.1+b1) ...
|
||||
#13 18.38 Setting up haproxy (3.0.11-1+deb13u4) ...
|
||||
#13 18.45 invoke-rc.d: could not determine current runlevel
|
||||
#13 18.45 invoke-rc.d: policy-rc.d denied execution of start.
|
||||
#13 18.49 Processing triggers for libc-bin (2.41-12+deb13u4) ...
|
||||
#13 DONE 18.5s
|
||||
|
||||
#16 [runtime 3/9] RUN python -m pip uninstall -y pip setuptools
|
||||
#16 0.702 Found existing installation: pip 26.2.1
|
||||
#16 0.718 Uninstalling pip-26.2.1:
|
||||
#16 0.806 Successfully uninstalled pip-26.2.1
|
||||
#16 0.811 WARNING: Skipping setuptools as it is not installed.
|
||||
#16 0.811 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
|
||||
#16 DONE 0.8s
|
||||
|
||||
#17 [runtime 4/9] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
|
||||
#17 0.114 useradd warning: messenger's uid 10001 is greater than SYS_UID_MAX 999
|
||||
#17 DONE 0.1s
|
||||
|
||||
#18 [runtime 5/9] COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
||||
#18 DONE 0.5s
|
||||
|
||||
#19 [runtime 6/9] WORKDIR /app
|
||||
#19 DONE 0.1s
|
||||
|
||||
#20 [runtime 7/9] COPY --chown=root:root alembic.ini ./
|
||||
#20 DONE 0.0s
|
||||
|
||||
#21 [runtime 8/9] COPY --chown=root:root alembic ./alembic
|
||||
#21 DONE 0.0s
|
||||
|
||||
#22 [runtime 9/9] COPY --chown=root:root scripts/secure_runtime.py /app/secure_runtime.py
|
||||
#22 DONE 0.0s
|
||||
|
||||
#23 exporting to image
|
||||
#23 exporting layers
|
||||
#23 exporting layers 3.5s done
|
||||
#23 exporting manifest sha256:a0036abaf1dc26192b52ff2c091022ceab20cc9cea9cd610455ad8b805893ceb done
|
||||
#23 exporting config sha256:803afd2b81699b01569b340023bdb8ce3b04bbb5516bf4932104131ec2f4b887 done
|
||||
#23 exporting attestation manifest sha256:0943882cb81d076bc7efc4801fa7d7a6fd440c72672848ec0e88cae548a655d5 done
|
||||
#23 exporting manifest list sha256:f9ed609edabbcad8fd8fad7c8bd936dac23004c7b4b0b0d795ddf0741ae65dd6 done
|
||||
#23 naming to docker.io/library/mtusi-messenger:mtusi2026lab7 done
|
||||
#23 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab7
|
||||
#23 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab7 0.8s done
|
||||
#23 DONE 4.3s
|
||||
|
||||
#24 resolving provenance for metadata file
|
||||
#24 DONE 0.0s
|
||||
api Built
|
||||
@@ -0,0 +1,91 @@
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 432B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 1.88kB done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 196B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [internal] load build context
|
||||
#6 transferring context: 73.97kB done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#7 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 0.0s done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#8 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d 0.0s done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
||||
#10 CACHED
|
||||
|
||||
#11 [builder 3/7] WORKDIR /build
|
||||
#11 CACHED
|
||||
|
||||
#12 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
|
||||
#12 CACHED
|
||||
|
||||
#13 [builder 6/7] COPY src ./src
|
||||
#13 DONE 0.0s
|
||||
|
||||
#14 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
|
||||
#14 0.199 Resolved 100 packages in 9ms
|
||||
#14 0.215 Building mtusi-messenger @ file:///build
|
||||
#14 2.103 Built mtusi-messenger @ file:///build
|
||||
#14 2.107 Prepared 1 package in 1.89s
|
||||
#14 2.111 Installed 1 package in 3ms
|
||||
#14 2.236 Bytecode compiled 2807 files in 125ms
|
||||
#14 2.236 + mtusi-messenger==1.7.0 (from file:///build)
|
||||
#14 DONE 2.3s
|
||||
|
||||
#15 [runtime 2/8] RUN apt-get update && apt-get install -y --no-install-recommends haproxy && rm -rf /var/lib/apt/lists/*
|
||||
#15 CACHED
|
||||
|
||||
#16 [runtime 3/8] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
|
||||
#16 CACHED
|
||||
|
||||
#17 [runtime 4/8] COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
||||
#17 DONE 0.6s
|
||||
|
||||
#18 [runtime 5/8] WORKDIR /app
|
||||
#18 DONE 0.0s
|
||||
|
||||
#19 [runtime 6/8] COPY --chown=root:root alembic.ini ./
|
||||
#19 DONE 0.0s
|
||||
|
||||
#20 [runtime 7/8] COPY --chown=root:root alembic ./alembic
|
||||
#20 DONE 0.0s
|
||||
|
||||
#21 [runtime 8/8] COPY --chown=root:root scripts/secure_runtime.py /app/secure_runtime.py
|
||||
#21 DONE 0.0s
|
||||
|
||||
#22 exporting to image
|
||||
#22 exporting layers
|
||||
#22 exporting layers 3.0s done
|
||||
#22 exporting manifest sha256:2dd9d90263b945b433decb3e4e88025e71db828435e834e192f7db244e7f9a03 done
|
||||
#22 exporting config sha256:f45b3bc323b75ed7ed9e129a9984a941140c4e33470af9b28f8a0a93df7b2098 done
|
||||
#22 exporting attestation manifest sha256:5d2feb213f2276f5fc3f53fd4c785818db775c52c6bbc5af3e89714cdb4d6239 done
|
||||
#22 exporting manifest list sha256:65434998dd3e65d8f35ee6528ffccf302cbdefce28e3592295bbf535be95ea33 done
|
||||
#22 naming to docker.io/library/mtusi-messenger:mtusi2026lab7 done
|
||||
#22 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab7
|
||||
#22 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab7 0.7s done
|
||||
#22 DONE 3.8s
|
||||
|
||||
#23 resolving provenance for metadata file
|
||||
#23 DONE 0.0s
|
||||
api Built
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved 100 packages in 540ms
|
||||
Updated certifi v2026.7.22 -> v2026.10.23
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "https://localhost:18443" --ca-file "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/secrets/pki/operator/ca.crt"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 129, "failed_attempts": 0, "first_recovery_seconds": 3.154}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,16 @@
|
||||
[
|
||||
{
|
||||
"target": "d4eee6af7034",
|
||||
"successful_writes": 30,
|
||||
"failed_attempts": 0,
|
||||
"first_recovery_seconds": 2.756,
|
||||
"message_attachment_session_preserved": true
|
||||
},
|
||||
{
|
||||
"target": "58f9d8b2ba51",
|
||||
"successful_writes": 30,
|
||||
"failed_attempts": 0,
|
||||
"first_recovery_seconds": 2.734,
|
||||
"message_attachment_session_preserved": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,16 @@
|
||||
[
|
||||
{
|
||||
"target": "d4eee6af7034",
|
||||
"successful_writes": 30,
|
||||
"failed_attempts": 0,
|
||||
"first_recovery_seconds": 2.756,
|
||||
"message_attachment_session_preserved": true
|
||||
},
|
||||
{
|
||||
"target": "58f9d8b2ba51",
|
||||
"successful_writes": 30,
|
||||
"failed_attempts": 0,
|
||||
"first_recovery_seconds": 2.734,
|
||||
"message_attachment_session_preserved": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,212 @@
|
||||
{
|
||||
"containers": [
|
||||
{
|
||||
"service": "api",
|
||||
"user": "10001:10001",
|
||||
"readonly": true,
|
||||
"memory_bytes": 536870912,
|
||||
"cpu_quota": 1.0,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "api",
|
||||
"user": "10001:10001",
|
||||
"readonly": true,
|
||||
"memory_bytes": 536870912,
|
||||
"cpu_quota": 1.0,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "broker",
|
||||
"user": "100:101",
|
||||
"readonly": true,
|
||||
"memory_bytes": 536870912,
|
||||
"cpu_quota": 1.0,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "broker-tls",
|
||||
"user": "haproxy",
|
||||
"readonly": true,
|
||||
"memory_bytes": 67108864,
|
||||
"cpu_quota": 0.25,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "grafana",
|
||||
"user": "472",
|
||||
"readonly": false,
|
||||
"memory_bytes": 402653184,
|
||||
"cpu_quota": 0.5,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "grafana-tls",
|
||||
"user": "haproxy",
|
||||
"readonly": true,
|
||||
"memory_bytes": 67108864,
|
||||
"cpu_quota": 0.25,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "lb",
|
||||
"user": "haproxy",
|
||||
"readonly": true,
|
||||
"memory_bytes": 134217728,
|
||||
"cpu_quota": 1.0,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "loki",
|
||||
"user": "10001",
|
||||
"readonly": false,
|
||||
"memory_bytes": 402653184,
|
||||
"cpu_quota": 0.5,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "loki-tls",
|
||||
"user": "haproxy",
|
||||
"readonly": true,
|
||||
"memory_bytes": 67108864,
|
||||
"cpu_quota": 0.25,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "openbao",
|
||||
"user": "100:1000",
|
||||
"readonly": true,
|
||||
"memory_bytes": 268435456,
|
||||
"cpu_quota": 0.5,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "otel-collector",
|
||||
"user": "10001:10001",
|
||||
"readonly": false,
|
||||
"memory_bytes": 402653184,
|
||||
"cpu_quota": 0.5,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "otel-collector-tls",
|
||||
"user": "haproxy",
|
||||
"readonly": true,
|
||||
"memory_bytes": 67108864,
|
||||
"cpu_quota": 0.25,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "postgres",
|
||||
"user": "70:70",
|
||||
"readonly": false,
|
||||
"memory_bytes": 1073741824,
|
||||
"cpu_quota": 2.0,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "prometheus",
|
||||
"user": "nobody",
|
||||
"readonly": false,
|
||||
"memory_bytes": 536870912,
|
||||
"cpu_quota": 0.5,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "prometheus-tls",
|
||||
"user": "haproxy",
|
||||
"readonly": true,
|
||||
"memory_bytes": 67108864,
|
||||
"cpu_quota": 0.25,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "relay",
|
||||
"user": "10001:10001",
|
||||
"readonly": true,
|
||||
"memory_bytes": 201326592,
|
||||
"cpu_quota": 0.5,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "s3",
|
||||
"user": "rustfs",
|
||||
"readonly": true,
|
||||
"memory_bytes": 536870912,
|
||||
"cpu_quota": 1.0,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "s3-tls",
|
||||
"user": "haproxy",
|
||||
"readonly": true,
|
||||
"memory_bytes": 67108864,
|
||||
"cpu_quota": 0.25,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "tempo",
|
||||
"user": "10001:10001",
|
||||
"readonly": false,
|
||||
"memory_bytes": 402653184,
|
||||
"cpu_quota": 0.5,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "tempo-tls",
|
||||
"user": "haproxy",
|
||||
"readonly": true,
|
||||
"memory_bytes": 67108864,
|
||||
"cpu_quota": 0.25,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "valkey",
|
||||
"user": "999:1000",
|
||||
"readonly": false,
|
||||
"memory_bytes": 134217728,
|
||||
"cpu_quota": 0.5,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "valkey-tls",
|
||||
"user": "haproxy",
|
||||
"readonly": true,
|
||||
"memory_bytes": 67108864,
|
||||
"cpu_quota": 0.25,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"service": "worker",
|
||||
"user": "10001:10001",
|
||||
"readonly": true,
|
||||
"memory_bytes": 1073741824,
|
||||
"cpu_quota": 2.0,
|
||||
"only_own_keys": true,
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"passed": true
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
2026-11-13T23:44:40+03:00 INFO [vuln] Vulnerability scanning is enabled
|
||||
2026-11-13T23:44:41+03:00 INFO [python] Licenses acquired from one or more METADATA files may be subject to additional terms. Use `--debug` flag to see all affected packages.
|
||||
2026-11-13T23:44:41+03:00 INFO Detected OS family="debian" version="13.7"
|
||||
2026-11-13T23:44:41+03:00 INFO [debian] Detecting vulnerabilities... os_version="13" pkg_num=92
|
||||
2026-11-13T23:44:41+03:00 INFO Number of language-specific files num=1
|
||||
2026-11-13T23:44:41+03:00 INFO [python-pkg] Detecting vulnerabilities...
|
||||
2026-11-13T23:44:41+03:00 WARN Using severities from other vendors for some vulnerabilities. Read https://trivy.dev/docs/v0.76/guide/scanner/vulnerability#severity-selection for details.
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
2026-11-13T23:42:00+03:00 INFO [vuln] Vulnerability scanning is enabled
|
||||
2026-11-13T23:42:00+03:00 WARN Third-party SBOM may lead to inaccurate vulnerability detection
|
||||
2026-11-13T23:42:00+03:00 WARN Recommend using Trivy to generate SBOMs
|
||||
2026-11-13T23:42:00+03:00 INFO [python] Licenses acquired from one or more METADATA files may be subject to additional terms. Use `--debug` flag to see all affected packages.
|
||||
2026-11-13T23:42:01+03:00 INFO Detected OS family="debian" version="13.7"
|
||||
2026-11-13T23:42:01+03:00 INFO [debian] Detecting vulnerabilities... os_version="13" pkg_num=92
|
||||
2026-11-13T23:42:01+03:00 INFO Number of language-specific files num=1
|
||||
2026-11-13T23:42:01+03:00 INFO [python-pkg] Detecting vulnerabilities...
|
||||
2026-11-13T23:42:01+03:00 WARN Using severities from other vendors for some vulnerabilities. Read https://trivy.dev/docs/v0.76/guide/scanner/vulnerability#severity-selection for details.
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"memory_kib": 19456,
|
||||
"iterations": 2,
|
||||
"parallelism": 1,
|
||||
"results": [
|
||||
{
|
||||
"concurrency": 1,
|
||||
"samples": 100,
|
||||
"median_ms": 10.341,
|
||||
"p95_ms": 11.651,
|
||||
"cpu_ms_per_verify": 10.531,
|
||||
"wall_seconds": 1.058,
|
||||
"peak_rss_kib": 41632
|
||||
},
|
||||
{
|
||||
"concurrency": 2,
|
||||
"samples": 100,
|
||||
"median_ms": 11.587,
|
||||
"p95_ms": 65.264,
|
||||
"cpu_ms_per_verify": 11.647,
|
||||
"wall_seconds": 1.134,
|
||||
"peak_rss_kib": 61088
|
||||
},
|
||||
{
|
||||
"concurrency": 4,
|
||||
"samples": 100,
|
||||
"median_ms": 85.386,
|
||||
"p95_ms": 94.708,
|
||||
"cpu_ms_per_verify": 15.126,
|
||||
"wall_seconds": 1.496,
|
||||
"peak_rss_kib": 100000
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lifecycle": {
|
||||
"sealed_api_stop_seconds": 56.955,
|
||||
"unseal_recovery_seconds": 12.595,
|
||||
"bao_restart_stays_sealed": true,
|
||||
"persistent_configuration": true,
|
||||
"session_and_message_preserved": true
|
||||
},
|
||||
"login_limit": {
|
||||
"attempts": 30,
|
||||
"kdf_admitted": 20,
|
||||
"rate_limited": 10,
|
||||
"instances": 2,
|
||||
"retry_after_present": true,
|
||||
"elapsed_seconds": 0.32
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
OpenBao unsealed by operator; shares not displayed.
|
||||
{
|
||||
"lifecycle": {
|
||||
"sealed_api_stop_seconds": 56.955,
|
||||
"unseal_recovery_seconds": 12.595,
|
||||
"bao_restart_stays_sealed": true,
|
||||
"persistent_configuration": true,
|
||||
"session_and_message_preserved": true
|
||||
},
|
||||
"login_limit": {
|
||||
"attempts": 30,
|
||||
"kdf_admitted": 20,
|
||||
"rate_limited": 10,
|
||||
"instances": 2,
|
||||
"retry_after_present": true,
|
||||
"elapsed_seconds": 0.32
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.venv/bin/ruff check src student-tests scripts/pki.py scripts/security_operator.py scripts/secure_runtime.py scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
E501 Line too long (102 > 100)
|
||||
--> scripts/security_operator.py:190:101
|
||||
|
|
||||
188 | for role in ["worker", "relay"]:
|
||||
189 | sql(
|
||||
190 | "GRANT SELECT, INSERT, UPDATE, DELETE ON attachments, attachment_variants, jobs, outbox, "
|
||||
| ^^
|
||||
191 | "job_events TO messenger_" + role + ";"
|
||||
192 | )
|
||||
|
|
||||
|
||||
Found 1 error.
|
||||
make: *** [lint] Error 1
|
||||
@@ -0,0 +1,2 @@
|
||||
.. [100%]
|
||||
2 passed in 1.80s
|
||||
@@ -0,0 +1,135 @@
|
||||
F. [100%]
|
||||
=================================== FAILURES ===================================
|
||||
______________ test_login_budget_shared_between_independent_apps _______________
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py:526: in _prepare_and_execute
|
||||
prepared_stmt, attributes = await adapt_connection._prepare(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py:773: in _prepare
|
||||
prepared_stmt = await self._connection.prepare(
|
||||
.venv/lib/python3.14/site-packages/asyncpg/connection.py:661: in prepare
|
||||
return await self._prepare(
|
||||
.venv/lib/python3.14/site-packages/asyncpg/connection.py:680: in _prepare
|
||||
stmt = await self._get_statement(
|
||||
.venv/lib/python3.14/site-packages/asyncpg/connection.py:466: in _get_statement
|
||||
statement = await self._protocol.prepare(
|
||||
asyncpg/protocol/protocol.pyx:161: in prepare
|
||||
???
|
||||
E asyncpg.exceptions.PostgresSyntaxError: syntax error at or near "window"
|
||||
|
||||
The above exception was the direct cause of the following exception:
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py:1967: in _exec_single_context
|
||||
self.dialect.do_execute(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/engine/default.py:952: in do_execute
|
||||
cursor.execute(statement, parameters)
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py:585: in execute
|
||||
self._adapt_connection.await_(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/util/_concurrency_py3k.py:132: in await_only
|
||||
return current.parent.switch(awaitable) # type: ignore[no-any-return,attr-defined] # noqa: E501
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/util/_concurrency_py3k.py:196: in greenlet_spawn
|
||||
value = await result
|
||||
^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py:563: in _prepare_and_execute
|
||||
self._handle_exception(error)
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py:513: in _handle_exception
|
||||
self._adapt_connection._handle_exception(error)
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py:797: in _handle_exception
|
||||
raise translated_error from error
|
||||
E sqlalchemy.dialects.postgresql.asyncpg.AsyncAdapt_asyncpg_dbapi.ProgrammingError: <class 'asyncpg.exceptions.PostgresSyntaxError'>: syntax error at or near "window"
|
||||
|
||||
The above exception was the direct cause of the following exception:
|
||||
student-tests/adapters/test_login_protection.py:20: in test_login_budget_shared_between_independent_apps
|
||||
responses = await asyncio.gather(
|
||||
.venv/lib/python3.14/site-packages/httpx/_client.py:1859: in post
|
||||
return await self.request(
|
||||
.venv/lib/python3.14/site-packages/httpx/_client.py:1540: in request
|
||||
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/httpx/_client.py:1629: in send
|
||||
response = await self._send_handling_auth(
|
||||
.venv/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth
|
||||
response = await self._send_handling_redirects(
|
||||
.venv/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects
|
||||
response = await self._send_single_request(request)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request
|
||||
response = await transport.handle_async_request(request)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/httpx/_transports/asgi.py:170: in handle_async_request
|
||||
await self.app(scope, receive, send)
|
||||
.venv/lib/python3.14/site-packages/fastapi/applications.py:1163: in __call__
|
||||
await super().__call__(scope, receive, send)
|
||||
.venv/lib/python3.14/site-packages/starlette/applications.py:96: in __call__
|
||||
await self.middleware_stack(scope, receive, send)
|
||||
.venv/lib/python3.14/site-packages/starlette/middleware/errors.py:186: in __call__
|
||||
raise exc
|
||||
.venv/lib/python3.14/site-packages/starlette/middleware/errors.py:164: in __call__
|
||||
await self.app(scope, receive, _send)
|
||||
.venv/lib/python3.14/site-packages/dishka/integrations/starlette.py:68: in __call__
|
||||
return await self.app(scope, receive, send)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
src/messenger/shared/entrypoints/pipeline.py:163: in __call__
|
||||
rejection = await self._guard(scope) or self._oversized(scope, limit)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
src/messenger/identity/entrypoints/authentication.py:69: in guard
|
||||
user = await verify(*credentials) if credentials else None
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
src/messenger/identity/application/queries.py:41: in __call__
|
||||
if self._maintenance and (retry := await self._maintenance.consume()):
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
src/messenger/identity/infrastructure/login_protection.py:46: in consume
|
||||
await session.execute(statement, {"window": self._window, "limit": self._limit})
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/ext/asyncio/session.py:449: in execute
|
||||
result = await greenlet_spawn(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/util/_concurrency_py3k.py:201: in greenlet_spawn
|
||||
result = context.throw(*sys.exc_info())
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/orm/session.py:2351: in execute
|
||||
return self._execute_internal(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/orm/session.py:2258: in _execute_internal
|
||||
result = conn.execute(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py:1419: in execute
|
||||
return meth(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/sql/elements.py:527: in _execute_on_connection
|
||||
return connection._execute_clauseelement(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py:1641: in _execute_clauseelement
|
||||
ret = self._execute_context(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py:1846: in _execute_context
|
||||
return self._exec_single_context(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py:1986: in _exec_single_context
|
||||
self._handle_dbapi_exception(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py:2363: in _handle_dbapi_exception
|
||||
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py:1967: in _exec_single_context
|
||||
self.dialect.do_execute(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/engine/default.py:952: in do_execute
|
||||
cursor.execute(statement, parameters)
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py:585: in execute
|
||||
self._adapt_connection.await_(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/util/_concurrency_py3k.py:132: in await_only
|
||||
return current.parent.switch(awaitable) # type: ignore[no-any-return,attr-defined] # noqa: E501
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/util/_concurrency_py3k.py:196: in greenlet_spawn
|
||||
value = await result
|
||||
^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py:563: in _prepare_and_execute
|
||||
self._handle_exception(error)
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py:513: in _handle_exception
|
||||
self._adapt_connection._handle_exception(error)
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py:797: in _handle_exception
|
||||
raise translated_error from error
|
||||
E sqlalchemy.exc.ProgrammingError: (sqlalchemy.dialects.postgresql.asyncpg.ProgrammingError) <class 'asyncpg.exceptions.PostgresSyntaxError'>: syntax error at or near "window"
|
||||
E [SQL:
|
||||
E INSERT INTO login_budget (id, window, attempts)
|
||||
E VALUES (1, floor(extract(epoch FROM statement_timestamp()) / $1), 1)
|
||||
E ON CONFLICT (id) DO UPDATE SET
|
||||
E window = EXCLUDED.window,
|
||||
E attempts = CASE WHEN login_budget.window = EXCLUDED.window
|
||||
E THEN login_budget.attempts + 1 ELSE 1 END
|
||||
E WHERE login_budget.window <> EXCLUDED.window OR login_budget.attempts < $2
|
||||
E RETURNING attempts
|
||||
E ]
|
||||
E [SQL parameters hidden due to hide_parameters=True]
|
||||
E (Background on this error at: https://sqlalche.me/e/20/f405)
|
||||
=========================== short test summary info ============================
|
||||
FAILED student-tests/adapters/test_login_protection.py::test_login_budget_shared_between_independent_apps
|
||||
1 failed, 1 passed in 1.95s
|
||||
@@ -0,0 +1,10 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
.venv/bin/ruff check src student-tests scripts/security_lifecycle.py scripts/security_inventory.py scripts/security_evidence.py scripts/privilege_compare.py scripts/security_failover.py scripts/security_probe.py scripts/worker_compromise.py scripts/security_benchmark.py scripts/pki.py scripts/security_operator.py scripts/secure_runtime.py scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests scripts/security_lifecycle.py scripts/security_inventory.py scripts/security_evidence.py scripts/privilege_compare.py scripts/security_failover.py scripts/security_probe.py scripts/worker_compromise.py scripts/security_benchmark.py scripts/pki.py scripts/security_operator.py scripts/secure_runtime.py scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
230 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
@@ -0,0 +1,10 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
.venv/bin/ruff check src student-tests scripts/pki.py scripts/security_operator.py scripts/secure_runtime.py scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests scripts/pki.py scripts/security_operator.py scripts/secure_runtime.py scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
222 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
@@ -0,0 +1 @@
|
||||
Resolved 100 packages in 931ms
|
||||
@@ -0,0 +1,3 @@
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "https://localhost:18443" --ca-file "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/secrets/pki/operator/ca.crt"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,6 @@
|
||||
.venv/bin/ruff check src student-tests scripts/security_lifecycle.py scripts/security_inventory.py scripts/security_evidence.py scripts/privilege_compare.py scripts/security_failover.py scripts/security_probe.py scripts/worker_compromise.py scripts/security_benchmark.py scripts/pki.py scripts/security_operator.py scripts/secure_runtime.py scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests scripts/security_lifecycle.py scripts/security_inventory.py scripts/security_evidence.py scripts/privilege_compare.py scripts/security_failover.py scripts/security_probe.py scripts/worker_compromise.py scripts/security_benchmark.py scripts/pki.py scripts/security_operator.py scripts/secure_runtime.py scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
230 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/smoke.py --base-url "https://localhost:18443" --ca-file "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/secrets/pki/operator/ca.crt"
|
||||
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
|
||||
python3 tests/security.py --base-url "https://localhost:18443" --ca-file "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/secrets/pki/operator/ca.crt"
|
||||
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/smoke.py --base-url "https://localhost:18443" --ca-file "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/secrets/pki/operator/ca.crt"
|
||||
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
|
||||
python3 tests/security.py --base-url "https://localhost:18443" --ca-file "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/secrets/pki/operator/ca.crt"
|
||||
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
|
||||
@@ -0,0 +1,16 @@
|
||||
Container mtusi2026lab7-worker-1 Recreate
|
||||
Container mtusi2026lab7-relay-1 Recreate
|
||||
Container mtusi2026lab7-api-2 Recreate
|
||||
Container mtusi2026lab7-api-1 Recreate
|
||||
Container mtusi2026lab7-worker-1 Recreated
|
||||
Container mtusi2026lab7-relay-1 Recreated
|
||||
Container mtusi2026lab7-api-2 Recreated
|
||||
Container mtusi2026lab7-api-1 Recreated
|
||||
Container mtusi2026lab7-relay-1 Starting
|
||||
Container mtusi2026lab7-worker-1 Starting
|
||||
Container mtusi2026lab7-api-2 Starting
|
||||
Container mtusi2026lab7-api-2 Started
|
||||
Container mtusi2026lab7-api-1 Starting
|
||||
Container mtusi2026lab7-worker-1 Started
|
||||
Container mtusi2026lab7-relay-1 Started
|
||||
Container mtusi2026lab7-api-1 Started
|
||||
@@ -0,0 +1,6 @@
|
||||
Building mtusi-messenger @ file:///Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7
|
||||
Built mtusi-messenger @ file:///Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7
|
||||
Uninstalled 1 package in 1ms
|
||||
Installed 1 package in 1ms
|
||||
......................................... [100%]
|
||||
41 passed in 66.61s (0:01:06)
|
||||
@@ -0,0 +1,8 @@
|
||||
scripts/restore.sh
|
||||
Container mtusi2026lab7-api-1 Running
|
||||
Container mtusi2026lab7-api-2 Starting
|
||||
Container mtusi2026lab7-api-2 Started
|
||||
Container mtusi2026lab7-api-1 Waiting
|
||||
Container mtusi2026lab7-api-2 Waiting
|
||||
Container mtusi2026lab7-api-1 Healthy
|
||||
Container mtusi2026lab7-api-2 Healthy
|
||||
@@ -0,0 +1,15 @@
|
||||
........................................................................ [ 7%]
|
||||
........................................................................ [ 14%]
|
||||
........................................................................ [ 21%]
|
||||
........................................................................ [ 28%]
|
||||
........................................................................ [ 36%]
|
||||
........................................................................ [ 43%]
|
||||
........................................................................ [ 50%]
|
||||
........................................................................ [ 57%]
|
||||
........................................................................ [ 64%]
|
||||
........................................................................ [ 72%]
|
||||
................................................s....................... [ 79%]
|
||||
........................................................................ [ 86%]
|
||||
........................................................................ [ 93%]
|
||||
......s........................................................ [100%]
|
||||
997 passed, 2 skipped, 19 deselected in 173.99s (0:02:53)
|
||||
@@ -0,0 +1,50 @@
|
||||
........................................................................ [ 7%]
|
||||
........................................................................ [ 14%]
|
||||
........................................................................ [ 21%]
|
||||
........................................................................ [ 28%]
|
||||
............................................................F........... [ 36%]
|
||||
........................................................................ [ 43%]
|
||||
........................................................................ [ 50%]
|
||||
........................................................................ [ 57%]
|
||||
........................................................................ [ 64%]
|
||||
........................................................................ [ 72%]
|
||||
................................................s....................... [ 79%]
|
||||
........................................................................ [ 86%]
|
||||
........................................................................ [ 93%]
|
||||
......s........................................................ [100%]
|
||||
=================================== FAILURES ===================================
|
||||
___________ test_context_survives_outbox_delivery_and_lease_recovery ___________
|
||||
|
||||
client = <httpx.AsyncClient object at 0x128a83590>
|
||||
|
||||
async def test_context_survives_outbox_delivery_and_lease_recovery(client: AsyncClient) -> None:
|
||||
provider = TracerProvider(shutdown_on_exit=False)
|
||||
tracer = provider.get_tracer("test")
|
||||
with tracer.start_as_current_span("upload", kind=SpanKind.SERVER):
|
||||
origin = capture_context()
|
||||
_, _, attachment_id = await accepted(client)
|
||||
job = await job_of(attachment_id)
|
||||
async with sql_connection() as connection:
|
||||
assert (
|
||||
await connection.scalar(select(JobRow.trace_context).where(JobRow.job_id == job.id))
|
||||
== origin
|
||||
)
|
||||
assert (
|
||||
await connection.scalar(
|
||||
select(OutboxRow.trace_context).where(OutboxRow.job_id == job.id)
|
||||
)
|
||||
== origin
|
||||
)
|
||||
pipeline = await pipeline_of(client)
|
||||
await pipeline.publish()
|
||||
> assert pipeline.publisher.contexts == [origin]
|
||||
E AssertionError: assert [{}, {'tracep...0c95827a-03'}] == [{'traceparen...0c95827a-03'}]
|
||||
E
|
||||
E At index 0 diff: {} != {'traceparent': '00-c10c079f76aa2b71e389ac3cbb0e8676-3bb4c2360c95827a-03'}
|
||||
E Left contains one more item: {'traceparent': '00-c10c079f76aa2b71e389ac3cbb0e8676-3bb4c2360c95827a-03'}
|
||||
E Use -v to get more diff
|
||||
|
||||
student-tests/api/test_trace_context.py:37: AssertionError
|
||||
=========================== short test summary info ============================
|
||||
FAILED student-tests/api/test_trace_context.py::test_context_survives_outbox_delivery_and_lease_recovery
|
||||
1 failed, 996 passed, 2 skipped, 19 deselected in 171.38s (0:02:51)
|
||||
@@ -0,0 +1,87 @@
|
||||
..!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
/Users/artemkostylev/.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/asyncio/runners.py:132: KeyboardInterrupt
|
||||
(to show a full traceback on KeyboardInterrupt use --full-trace)
|
||||
Traceback (most recent call last):
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/bin/pytest", line 10, in <module>
|
||||
sys.exit(_console_main())
|
||||
~~~~~~~~~~~~~^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/config/__init__.py", line 253, in _console_main
|
||||
code = _main(prog=_get_prog_name(sys.argv))
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/config/__init__.py", line 229, in _main
|
||||
ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/pluggy/_hooks.py", line 512, in __call__
|
||||
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
|
||||
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/pluggy/_manager.py", line 120, in _hookexec
|
||||
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
|
||||
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/pluggy/_callers.py", line 167, in _multicall
|
||||
raise exception
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/pluggy/_callers.py", line 121, in _multicall
|
||||
res = hook_impl.function(*args)
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/main.py", line 377, in pytest_cmdline_main
|
||||
return wrap_session(config, _main)
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/main.py", line 365, in wrap_session
|
||||
config.hook.pytest_sessionfinish(
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
|
||||
session=session, exitstatus=session.exitstatus
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
)
|
||||
^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/pluggy/_hooks.py", line 512, in __call__
|
||||
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
|
||||
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/pluggy/_manager.py", line 120, in _hookexec
|
||||
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
|
||||
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/pluggy/_callers.py", line 167, in _multicall
|
||||
raise exception
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/pluggy/_callers.py", line 139, in _multicall
|
||||
teardown.throw(exception)
|
||||
~~~~~~~~~~~~~~^^^^^^^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/logging.py", line 888, in pytest_sessionfinish
|
||||
return (yield)
|
||||
^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/pluggy/_callers.py", line 139, in _multicall
|
||||
teardown.throw(exception)
|
||||
~~~~~~~~~~~~~~^^^^^^^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/terminal.py", line 961, in pytest_sessionfinish
|
||||
result = yield
|
||||
^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/pluggy/_callers.py", line 139, in _multicall
|
||||
teardown.throw(exception)
|
||||
~~~~~~~~~~~~~~^^^^^^^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/warnings.py", line 119, in pytest_sessionfinish
|
||||
return (yield)
|
||||
^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/pluggy/_callers.py", line 121, in _multicall
|
||||
res = hook_impl.function(*args)
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/runner.py", line 112, in pytest_sessionfinish
|
||||
session._setupstate.teardown_exact(None)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/runner.py", line 568, in teardown_exact
|
||||
fin()
|
||||
~~~^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/fixtures.py", line 1166, in finish
|
||||
raise exceptions[0]
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/fixtures.py", line 1156, in finish
|
||||
fin()
|
||||
~~~^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/.venv/lib/python3.14/site-packages/_pytest/fixtures.py", line 1014, in _teardown_yield_fixture
|
||||
next(it)
|
||||
~~~~^^^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/student-tests/adapters/test_rabbitmq.py", line 112, in rabbitmq
|
||||
subprocess.run(["docker", "rm", "-f", name], capture_output=True, check=False)
|
||||
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Users/artemkostylev/.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/subprocess.py", line 557, in run
|
||||
stdout, stderr = process.communicate(input, timeout=timeout)
|
||||
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Users/artemkostylev/.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/subprocess.py", line 1221, in communicate
|
||||
stdout, stderr = self._communicate(input, endtime, timeout)
|
||||
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Users/artemkostylev/.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/subprocess.py", line 2153, in _communicate
|
||||
ready = selector.select(timeout)
|
||||
File "/Users/artemkostylev/.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/selectors.py", line 398, in select
|
||||
fd_event_list = self._selector.poll(timeout)
|
||||
KeyboardInterrupt
|
||||
@@ -0,0 +1,233 @@
|
||||
..EEEEE................................................................. [ 7%]
|
||||
........................................................................ [ 14%]
|
||||
....FFFFFFFFF..................FF..F.................................... [ 21%]
|
||||
........................................................................ [ 28%]
|
||||
........................................................................ [ 36%]
|
||||
........................................................................ [ 43%]
|
||||
........................................................................ [ 50%]
|
||||
........................................................................ [ 57%]
|
||||
........................................................................ [ 64%]
|
||||
........................................................................ [ 72%]
|
||||
................................................s....................... [ 79%]
|
||||
........................................................................ [ 86%]
|
||||
........................................................................ [ 93%]
|
||||
......s........................................................ [100%]
|
||||
==================================== ERRORS ====================================
|
||||
__________ ERROR at setup of test_confirmed_job_is_consumed_and_acked __________
|
||||
student-tests/adapters/test_rabbitmq.py:101: in rabbitmq
|
||||
assert time.monotonic() < deadline, "RabbitMQ не стал готов"
|
||||
E AssertionError: RabbitMQ не стал готов
|
||||
E assert 1484532.602456583 < 1484531.669322458
|
||||
E + where 1484532.602456583 = <built-in function monotonic>()
|
||||
E + where <built-in function monotonic> = time.monotonic
|
||||
_ ERROR at setup of test_message_off_the_schema_goes_to_the_dead_letter_queue __
|
||||
student-tests/adapters/test_rabbitmq.py:101: in rabbitmq
|
||||
assert time.monotonic() < deadline, "RabbitMQ не стал готов"
|
||||
E AssertionError: RabbitMQ не стал готов
|
||||
E assert 1484532.602456583 < 1484531.669322458
|
||||
E + where 1484532.602456583 = <built-in function monotonic>()
|
||||
E + where <built-in function monotonic> = time.monotonic
|
||||
_____ ERROR at setup of test_failed_processing_is_requeued_and_retried[1] ______
|
||||
student-tests/adapters/test_rabbitmq.py:101: in rabbitmq
|
||||
assert time.monotonic() < deadline, "RabbitMQ не стал готов"
|
||||
E AssertionError: RabbitMQ не стал готов
|
||||
E assert 1484532.602456583 < 1484531.669322458
|
||||
E + where 1484532.602456583 = <built-in function monotonic>()
|
||||
E + where <built-in function monotonic> = time.monotonic
|
||||
_____ ERROR at setup of test_failed_processing_is_requeued_and_retried[12] _____
|
||||
student-tests/adapters/test_rabbitmq.py:101: in rabbitmq
|
||||
assert time.monotonic() < deadline, "RabbitMQ не стал готов"
|
||||
E AssertionError: RabbitMQ не стал готов
|
||||
E assert 1484532.602456583 < 1484531.669322458
|
||||
E + where 1484532.602456583 = <built-in function monotonic>()
|
||||
E + where <built-in function monotonic> = time.monotonic
|
||||
_____________ ERROR at setup of test_worker_account_cannot_publish _____________
|
||||
student-tests/adapters/test_rabbitmq.py:101: in rabbitmq
|
||||
assert time.monotonic() < deadline, "RabbitMQ не стал готов"
|
||||
E AssertionError: RabbitMQ не стал готов
|
||||
E assert 1484532.602456583 < 1484531.669322458
|
||||
E + where 1484532.602456583 = <built-in function monotonic>()
|
||||
E + where <built-in function monotonic> = time.monotonic
|
||||
=================================== FAILURES ===================================
|
||||
__________________ test_migrations_are_ordered_and_versioned ___________________
|
||||
student-tests/api/test_migrations.py:283: in test_migrations_are_ordered_and_versioned
|
||||
assert [script.revision for script in reversed(list(scripts.walk_revisions()))] == VERSIONS
|
||||
E AssertionError: assert ['0001_init',...rantine', ...] == ['0001_init',...rantine', ...]
|
||||
E
|
||||
E Left contains one more item: '0008_login_budget'
|
||||
E Use -v to get more diff
|
||||
_______________________ test_fresh_schema_matches_models _______________________
|
||||
student-tests/api/test_migrations.py:290: in test_fresh_schema_matches_models
|
||||
assert (
|
||||
E AssertionError: assert [[('modify_ty...GINT(), ...)]] == []
|
||||
E
|
||||
E Left contains one more item: [('modify_type', None, 'login_budget', 'window', {'existing_nullable': False, 'existing_server_default': False, 'existing_comment': None}, BIGINT(), ...)]
|
||||
E Use -v to get more diff
|
||||
__________________________ test_rerun_changes_nothing __________________________
|
||||
student-tests/api/test_migrations.py:305: in test_rerun_changes_nothing
|
||||
assert await revision(empty_database) == VERSIONS[-1]
|
||||
E AssertionError: assert '0008_login_budget' == '0007_trace_context'
|
||||
E
|
||||
E - 0007_trace_context
|
||||
E + 0008_login_budget
|
||||
__________________ test_legacy_upgrade_preserves_every_row[1] __________________
|
||||
student-tests/api/test_migrations.py:320: in test_legacy_upgrade_preserves_every_row
|
||||
assert await revision(empty_database) == VERSIONS[-1]
|
||||
E AssertionError: assert '0008_login_budget' == '0007_trace_context'
|
||||
E
|
||||
E - 0007_trace_context
|
||||
E + 0008_login_budget
|
||||
__________________ test_legacy_upgrade_preserves_every_row[2] __________________
|
||||
student-tests/api/test_migrations.py:320: in test_legacy_upgrade_preserves_every_row
|
||||
assert await revision(empty_database) == VERSIONS[-1]
|
||||
E AssertionError: assert '0008_login_budget' == '0007_trace_context'
|
||||
E
|
||||
E - 0007_trace_context
|
||||
E + 0008_login_budget
|
||||
__________________ test_legacy_upgrade_preserves_every_row[3] __________________
|
||||
student-tests/api/test_migrations.py:320: in test_legacy_upgrade_preserves_every_row
|
||||
assert await revision(empty_database) == VERSIONS[-1]
|
||||
E AssertionError: assert '0008_login_budget' == '0007_trace_context'
|
||||
E
|
||||
E - 0007_trace_context
|
||||
E + 0008_login_budget
|
||||
__________________ test_legacy_upgrade_preserves_every_row[4] __________________
|
||||
student-tests/api/test_migrations.py:320: in test_legacy_upgrade_preserves_every_row
|
||||
assert await revision(empty_database) == VERSIONS[-1]
|
||||
E AssertionError: assert '0008_login_budget' == '0007_trace_context'
|
||||
E
|
||||
E - 0007_trace_context
|
||||
E + 0008_login_budget
|
||||
__________________ test_legacy_upgrade_preserves_every_row[5] __________________
|
||||
student-tests/api/test_migrations.py:320: in test_legacy_upgrade_preserves_every_row
|
||||
assert await revision(empty_database) == VERSIONS[-1]
|
||||
E AssertionError: assert '0008_login_budget' == '0007_trace_context'
|
||||
E
|
||||
E - 0007_trace_context
|
||||
E + 0008_login_budget
|
||||
__________________ test_legacy_upgrade_preserves_every_row[6] __________________
|
||||
student-tests/api/test_migrations.py:320: in test_legacy_upgrade_preserves_every_row
|
||||
assert await revision(empty_database) == VERSIONS[-1]
|
||||
E AssertionError: assert '0008_login_budget' == '0007_trace_context'
|
||||
E
|
||||
E - 0007_trace_context
|
||||
E + 0008_login_budget
|
||||
____________ test_simultaneous_migration_processes_serialize[False] ____________
|
||||
student-tests/api/test_migrations.py:415: in test_simultaneous_migration_processes_serialize
|
||||
assert await revision(empty_database) == VERSIONS[-1]
|
||||
E AssertionError: assert '0008_login_budget' == '0007_trace_context'
|
||||
E
|
||||
E - 0007_trace_context
|
||||
E + 0008_login_budget
|
||||
____________ test_simultaneous_migration_processes_serialize[True] _____________
|
||||
student-tests/api/test_migrations.py:415: in test_simultaneous_migration_processes_serialize
|
||||
assert await revision(empty_database) == VERSIONS[-1]
|
||||
E AssertionError: assert '0008_login_budget' == '0007_trace_context'
|
||||
E
|
||||
E - 0007_trace_context
|
||||
E + 0008_login_budget
|
||||
_______________ test_failed_revision_rolls_back_ddl_and_version ________________
|
||||
.venv/lib/python3.14/site-packages/alembic/script/base.py:217: in _catch_revision_errors
|
||||
yield
|
||||
.venv/lib/python3.14/site-packages/alembic/script/base.py:425: in _upgrade_revs
|
||||
for script in reversed(list(revs))
|
||||
^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/alembic/script/revision.py:814: in iterate_revisions
|
||||
revisions, heads = fn(
|
||||
.venv/lib/python3.14/site-packages/alembic/script/revision.py:1447: in _collect_upgrade_revisions
|
||||
for rev in self._parse_upgrade_target(
|
||||
.venv/lib/python3.14/site-packages/alembic/script/revision.py:1234: in _parse_upgrade_target
|
||||
return self.get_revisions(target)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/alembic/script/revision.py:544: in get_revisions
|
||||
resolved_id, branch_label = self._resolve_revision_number(id_)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/alembic/script/revision.py:778: in _resolve_revision_number
|
||||
current_head = self.get_current_head(branch_label)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/alembic/script/revision.py:508: in get_current_head
|
||||
raise MultipleHeads(
|
||||
E alembic.script.revision.MultipleHeads: Multiple heads are present for given argument 'head'; 0003_failure, 0008_login_budget
|
||||
|
||||
The above exception was the direct cause of the following exception:
|
||||
student-tests/api/test_migrations.py:465: in test_failed_revision_rolls_back_ddl_and_version
|
||||
await asyncio.to_thread(command.upgrade, config, "head")
|
||||
../../../../../.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/asyncio/threads.py:25: in to_thread
|
||||
return await loop.run_in_executor(None, func_call)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
../../../../../.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/concurrent/futures/thread.py:86: in run
|
||||
result = ctx.run(self.task)
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
../../../../../.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/concurrent/futures/thread.py:73: in run
|
||||
return fn(*args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/alembic/command.py:483: in upgrade
|
||||
script.run_env()
|
||||
.venv/lib/python3.14/site-packages/alembic/script/base.py:549: in run_env
|
||||
util.load_python_file(self.dir, "env.py")
|
||||
.venv/lib/python3.14/site-packages/alembic/util/pyfiles.py:116: in load_python_file
|
||||
module = load_module_py(module_id, path)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/alembic/util/pyfiles.py:136: in load_module_py
|
||||
spec.loader.exec_module(module) # type: ignore
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
<frozen importlib._bootstrap_external>:759: in exec_module
|
||||
???
|
||||
<frozen importlib._bootstrap>:491: in _call_with_frames_removed
|
||||
???
|
||||
/private/var/folders/mv/1d_0hqt94jj1lb13qxh20b8c0000gn/T/pytest-of-artemkostylev/pytest-317/test_failed_revision_rolls_bac0/alembic/env.py:111: in <module>
|
||||
asyncio.run(run_async_migrations())
|
||||
../../../../../.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/asyncio/runners.py:204: in run
|
||||
return runner.run(main)
|
||||
^^^^^^^^^^^^^^^^
|
||||
../../../../../.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/asyncio/runners.py:127: in run
|
||||
return self._loop.run_until_complete(task)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
../../../../../.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/asyncio/base_events.py:719: in run_until_complete
|
||||
return future.result()
|
||||
^^^^^^^^^^^^^^^
|
||||
/private/var/folders/mv/1d_0hqt94jj1lb13qxh20b8c0000gn/T/pytest-of-artemkostylev/pytest-317/test_failed_revision_rolls_bac0/alembic/env.py:94: in run_async_migrations
|
||||
await connection.run_sync(run_migrations)
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/ext/asyncio/engine.py:888: in run_sync
|
||||
return await greenlet_spawn(
|
||||
.venv/lib/python3.14/site-packages/sqlalchemy/util/_concurrency_py3k.py:203: in greenlet_spawn
|
||||
result = context.switch(value)
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
/private/var/folders/mv/1d_0hqt94jj1lb13qxh20b8c0000gn/T/pytest-of-artemkostylev/pytest-317/test_failed_revision_rolls_bac0/alembic/env.py:68: in run_migrations
|
||||
context.run_migrations()
|
||||
<string>:8: in run_migrations
|
||||
???
|
||||
.venv/lib/python3.14/site-packages/alembic/runtime/environment.py:946: in run_migrations
|
||||
self.get_context().run_migrations(**kw)
|
||||
.venv/lib/python3.14/site-packages/alembic/runtime/migration.py:615: in run_migrations
|
||||
for step in self._migrations_fn(heads, self):
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/alembic/command.py:472: in upgrade
|
||||
return script._upgrade_revs(revision, rev)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
.venv/lib/python3.14/site-packages/alembic/script/base.py:413: in _upgrade_revs
|
||||
with self._catch_revision_errors(
|
||||
../../../../../.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/contextlib.py:162: in __exit__
|
||||
self.gen.throw(value)
|
||||
.venv/lib/python3.14/site-packages/alembic/script/base.py:243: in _catch_revision_errors
|
||||
raise util.CommandError(multiple_heads) from mh
|
||||
E alembic.util.exc.CommandError: Multiple head revisions are present for given argument 'head'; please specify a specific target revision, '<branchname>@head' to narrow to a specific head, or 'heads' for all heads
|
||||
=========================== short test summary info ============================
|
||||
FAILED student-tests/api/test_migrations.py::test_migrations_are_ordered_and_versioned
|
||||
FAILED student-tests/api/test_migrations.py::test_fresh_schema_matches_models
|
||||
FAILED student-tests/api/test_migrations.py::test_rerun_changes_nothing - Ass...
|
||||
FAILED student-tests/api/test_migrations.py::test_legacy_upgrade_preserves_every_row[1]
|
||||
FAILED student-tests/api/test_migrations.py::test_legacy_upgrade_preserves_every_row[2]
|
||||
FAILED student-tests/api/test_migrations.py::test_legacy_upgrade_preserves_every_row[3]
|
||||
FAILED student-tests/api/test_migrations.py::test_legacy_upgrade_preserves_every_row[4]
|
||||
FAILED student-tests/api/test_migrations.py::test_legacy_upgrade_preserves_every_row[5]
|
||||
FAILED student-tests/api/test_migrations.py::test_legacy_upgrade_preserves_every_row[6]
|
||||
FAILED student-tests/api/test_migrations.py::test_simultaneous_migration_processes_serialize[False]
|
||||
FAILED student-tests/api/test_migrations.py::test_simultaneous_migration_processes_serialize[True]
|
||||
FAILED student-tests/api/test_migrations.py::test_failed_revision_rolls_back_ddl_and_version
|
||||
ERROR student-tests/adapters/test_rabbitmq.py::test_confirmed_job_is_consumed_and_acked
|
||||
ERROR student-tests/adapters/test_rabbitmq.py::test_message_off_the_schema_goes_to_the_dead_letter_queue
|
||||
ERROR student-tests/adapters/test_rabbitmq.py::test_failed_processing_is_requeued_and_retried[1]
|
||||
ERROR student-tests/adapters/test_rabbitmq.py::test_failed_processing_is_requeued_and_retried[12]
|
||||
ERROR student-tests/adapters/test_rabbitmq.py::test_worker_account_cannot_publish
|
||||
12 failed, 980 passed, 2 skipped, 19 deselected, 5 errors in 256.73s (0:04:16)
|
||||
@@ -0,0 +1 @@
|
||||
Broad permissions and telemetry leakage checks passed.
|
||||
@@ -0,0 +1,7 @@
|
||||
Traceback (most recent call last):
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/scripts/security_evidence.py", line 85, in <module>
|
||||
leakage()
|
||||
~~~~~~~^^
|
||||
File "/Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab7/scripts/security_evidence.py", line 80, in leakage
|
||||
raise RuntimeError("Telemetry presence/leakage audit failed")
|
||||
RuntimeError: Telemetry presence/leakage audit failed
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"known_secret_values_checked": 31,
|
||||
"compose_log_bytes": 421635,
|
||||
"telemetry_bytes": 2152712,
|
||||
"metric_series": 3062,
|
||||
"log_streams": 1000,
|
||||
"traces": 20,
|
||||
"exact_secret_matches": 3,
|
||||
"passed": false
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"known_secret_values_checked": 26,
|
||||
"nonsecret_s3_identity_matches": 3,
|
||||
"compose_log_bytes": 473186,
|
||||
"telemetry_bytes": 2166419,
|
||||
"metric_series": 3084,
|
||||
"log_streams": 1000,
|
||||
"traces": 20,
|
||||
"exact_secret_matches": 0,
|
||||
"passed": true
|
||||
}
|
||||
@@ -0,0 +1,434 @@
|
||||
{
|
||||
"checks": [
|
||||
{
|
||||
"test": "mtls:api:8443:lb",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:api:8443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:api:8443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:api:8443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:api:8443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:api",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:s3:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:worker",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:broker:5671",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:api",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:otel-collector:44318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:grafana",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:prometheus:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:grafana",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:loki:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:grafana",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:tempo:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:otel-collector",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:tempo:44318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:operator",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:grafana:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:api",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:valkey:6380",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:api:8080",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:s3:9000",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:5672",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:15672",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:15692",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:25672",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:4369",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:valkey:6379",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:otel-collector:4318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:otel-collector:8888",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:otel-collector:13133",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:prometheus:9090",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:loki:3100",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:loki:9096",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:tempo:3200",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:tempo:4318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:tempo:9095",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:grafana:3000",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "bao-scope:api",
|
||||
"passed": true,
|
||||
"own": 200,
|
||||
"foreign": 403,
|
||||
"admin": 403
|
||||
},
|
||||
{
|
||||
"test": "bao-scope:worker",
|
||||
"passed": true,
|
||||
"own": 200,
|
||||
"foreign": 403,
|
||||
"admin": 403
|
||||
},
|
||||
{
|
||||
"test": "bao-scope:relay",
|
||||
"passed": true,
|
||||
"own": 200,
|
||||
"foreign": 403,
|
||||
"admin": 403
|
||||
},
|
||||
{
|
||||
"test": "telemetry-query:prometheus",
|
||||
"passed": true,
|
||||
"bytes": 572
|
||||
},
|
||||
{
|
||||
"test": "telemetry-query:loki",
|
||||
"passed": true,
|
||||
"bytes": 75
|
||||
},
|
||||
{
|
||||
"test": "telemetry-query:tempo",
|
||||
"passed": true,
|
||||
"bytes": 1997
|
||||
},
|
||||
{
|
||||
"test": "collector-read-denied:prometheus",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "collector-read-denied:loki",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "grafana-write-denied:prometheus",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "grafana-write-denied:loki",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "api-replica:172.25.0.13:lb",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "api-replica:172.25.0.13:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "api-replica:172.25.0.13:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "api-replica:172.25.0.13:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "api-replica:172.25.0.9:lb",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "api-replica:172.25.0.9:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "api-replica:172.25.0.9:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "api-replica:172.25.0.9:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-db:jobs-readable",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-db:users-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-db:sessions-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-db:ddl-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:PUT:variants/security-probe",
|
||||
"passed": true,
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:GET:variants/security-probe",
|
||||
"passed": true,
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:PUT:staging/security-probe",
|
||||
"passed": true,
|
||||
"status": 403
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:GET:private/security-probe",
|
||||
"passed": true,
|
||||
"status": 403
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:DELETE:variants/security-probe",
|
||||
"passed": true,
|
||||
"status": 403
|
||||
},
|
||||
{
|
||||
"test": "worker-queue:consume",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-queue:publish-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-queue:configure-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "valkey:own-prefix",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "valkey:foreign-prefix-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "valkey:admin-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "postgres:plaintext-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "postgres:untrusted-ca-denied",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"passed": true
|
||||
}
|
||||
@@ -0,0 +1,351 @@
|
||||
{
|
||||
"checks": [
|
||||
{
|
||||
"test": "mtls:api:8443:lb",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:api:8443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:api:8443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:api:8443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:api:8443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:api",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:s3:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:worker",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:broker:5671",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:api",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:otel-collector:44318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:grafana",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:prometheus:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:grafana",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:loki:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:grafana",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:tempo:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:otel-collector",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:tempo:44318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:operator",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:grafana:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:api",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:valkey:6380",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:api:8080",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:s3:9000",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:5672",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:15672",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:15692",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:25672",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:4369",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:valkey:6379",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:otel-collector:4318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:otel-collector:8888",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:otel-collector:13133",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:prometheus:9090",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:loki:3100",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:loki:9096",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:tempo:3200",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:tempo:4318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:tempo:9095",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:grafana:3000",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "bao-scope:api",
|
||||
"passed": true,
|
||||
"own": 200,
|
||||
"foreign": 403,
|
||||
"admin": 403
|
||||
},
|
||||
{
|
||||
"test": "bao-scope:worker",
|
||||
"passed": true,
|
||||
"own": 200,
|
||||
"foreign": 403,
|
||||
"admin": 403
|
||||
},
|
||||
{
|
||||
"test": "bao-scope:relay",
|
||||
"passed": true,
|
||||
"own": 200,
|
||||
"foreign": 403,
|
||||
"admin": 403
|
||||
},
|
||||
{
|
||||
"test": "worker-db:jobs-readable",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-db:users-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-db:sessions-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-db:ddl-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:PUT:variants/security-probe",
|
||||
"passed": false,
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:GET:variants/security-probe",
|
||||
"passed": false,
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:PUT:staging/security-probe",
|
||||
"passed": false,
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:GET:private/security-probe",
|
||||
"passed": false,
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:DELETE:variants/security-probe",
|
||||
"passed": false,
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"test": "worker-queue:consume",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-queue:publish-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-queue:configure-denied",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"passed": false
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,351 @@
|
||||
{
|
||||
"checks": [
|
||||
{
|
||||
"test": "mtls:api:8443:lb",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:api:8443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:api:8443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:api:8443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:api:8443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:api",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:s3:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:s3:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:worker",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:broker:5671:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:broker:5671",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:api",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:otel-collector:44318:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:otel-collector:44318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:grafana",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:prometheus:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:prometheus:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:grafana",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:loki:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:loki:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:grafana",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:tempo:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:otel-collector",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:tempo:44318:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:tempo:44318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:operator",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:grafana:9443:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:grafana:9443",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:api",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:None",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:outsider",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "mtls:valkey:6380:foreign",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "hostname:valkey:6380",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:api:8080",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:s3:9000",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:5672",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:15672",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:15692",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:25672",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:broker:4369",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:valkey:6379",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:otel-collector:4318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:otel-collector:8888",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:otel-collector:13133",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:prometheus:9090",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:loki:3100",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:loki:9096",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:tempo:3200",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:tempo:4318",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:tempo:9095",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "plaintext-closed:grafana:3000",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "bao-scope:api",
|
||||
"passed": true,
|
||||
"own": 200,
|
||||
"foreign": 403,
|
||||
"admin": 403
|
||||
},
|
||||
{
|
||||
"test": "bao-scope:worker",
|
||||
"passed": true,
|
||||
"own": 200,
|
||||
"foreign": 403,
|
||||
"admin": 403
|
||||
},
|
||||
{
|
||||
"test": "bao-scope:relay",
|
||||
"passed": true,
|
||||
"own": 200,
|
||||
"foreign": 403,
|
||||
"admin": 403
|
||||
},
|
||||
{
|
||||
"test": "worker-db:jobs-readable",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-db:users-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-db:sessions-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-db:ddl-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:PUT:variants/security-probe",
|
||||
"passed": true,
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:GET:variants/security-probe",
|
||||
"passed": true,
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:PUT:staging/security-probe",
|
||||
"passed": true,
|
||||
"status": 403
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:GET:private/security-probe",
|
||||
"passed": true,
|
||||
"status": 403
|
||||
},
|
||||
{
|
||||
"test": "worker-s3:DELETE:variants/security-probe",
|
||||
"passed": true,
|
||||
"status": 403
|
||||
},
|
||||
{
|
||||
"test": "worker-queue:consume",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-queue:publish-denied",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "worker-queue:configure-denied",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"passed": true
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
........................................................................ [ 11%]
|
||||
........................................................................ [ 22%]
|
||||
........................................................................ [ 34%]
|
||||
........................................................................ [ 45%]
|
||||
........................................................................ [ 57%]
|
||||
.....................................s.................................. [ 68%]
|
||||
........................................................................ [ 80%]
|
||||
...................................................................s.... [ 91%]
|
||||
.................................................... [100%]
|
||||
626 passed, 2 skipped in 10.89s
|
||||
@@ -0,0 +1,104 @@
|
||||
[
|
||||
{
|
||||
"run": 1,
|
||||
"authorization_stop_seconds": 51.881,
|
||||
"recovery_seconds": 12.897,
|
||||
"queued": 3,
|
||||
"ready": 3,
|
||||
"checksums_preserved": true,
|
||||
"revoked": {
|
||||
"checks": [
|
||||
{
|
||||
"test": "revoked-cert:broker",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:s3",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:otel-collector",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-bao-cert",
|
||||
"passed": true,
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"test": "rotated-db-password",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"passed": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 2,
|
||||
"authorization_stop_seconds": 57.562,
|
||||
"recovery_seconds": 13.133,
|
||||
"queued": 3,
|
||||
"ready": 3,
|
||||
"checksums_preserved": true,
|
||||
"revoked": {
|
||||
"checks": [
|
||||
{
|
||||
"test": "revoked-cert:broker",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:s3",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:otel-collector",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-bao-cert",
|
||||
"passed": true,
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"test": "rotated-db-password",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"passed": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 3,
|
||||
"authorization_stop_seconds": 57.202,
|
||||
"recovery_seconds": 13.181,
|
||||
"queued": 3,
|
||||
"ready": 3,
|
||||
"checksums_preserved": true,
|
||||
"revoked": {
|
||||
"checks": [
|
||||
{
|
||||
"test": "revoked-cert:broker",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:s3",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:otel-collector",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-bao-cert",
|
||||
"passed": true,
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"test": "rotated-db-password",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"passed": true
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
{"run": 1, "authorization_stop_seconds": 51.881, "recovery_seconds": 12.897, "queued": 3, "ready": 3, "checksums_preserved": true, "revoked": {"checks": [{"test": "revoked-cert:broker", "passed": true}, {"test": "revoked-cert:s3", "passed": true}, {"test": "revoked-cert:otel-collector", "passed": true}, {"test": "revoked-bao-cert", "passed": true, "status": 400}, {"test": "rotated-db-password", "passed": true}], "passed": true}}
|
||||
{"run": 2, "authorization_stop_seconds": 57.562, "recovery_seconds": 13.133, "queued": 3, "ready": 3, "checksums_preserved": true, "revoked": {"checks": [{"test": "revoked-cert:broker", "passed": true}, {"test": "revoked-cert:s3", "passed": true}, {"test": "revoked-cert:otel-collector", "passed": true}, {"test": "revoked-bao-cert", "passed": true, "status": 400}, {"test": "rotated-db-password", "passed": true}], "passed": true}}
|
||||
{"run": 3, "authorization_stop_seconds": 57.202, "recovery_seconds": 13.181, "queued": 3, "ready": 3, "checksums_preserved": true, "revoked": {"checks": [{"test": "revoked-cert:broker", "passed": true}, {"test": "revoked-cert:s3", "passed": true}, {"test": "revoked-cert:otel-collector", "passed": true}, {"test": "revoked-bao-cert", "passed": true, "status": 400}, {"test": "rotated-db-password", "passed": true}], "passed": true}}
|
||||
@@ -0,0 +1,164 @@
|
||||
[
|
||||
{
|
||||
"run": 1,
|
||||
"authorization_stop_seconds": 60.285,
|
||||
"recovery_seconds": 12.923,
|
||||
"queued": 3,
|
||||
"ready": 3,
|
||||
"checksums_preserved": true,
|
||||
"publications": [
|
||||
{
|
||||
"attachment_id": "01a1d6b1-0483-7309-b485-fba89094dd76",
|
||||
"jobs": 1,
|
||||
"variants": 3,
|
||||
"published_version": 1
|
||||
},
|
||||
{
|
||||
"attachment_id": "01a1d6b1-04a4-730a-9dec-a96456e3da54",
|
||||
"jobs": 1,
|
||||
"variants": 3,
|
||||
"published_version": 1
|
||||
},
|
||||
{
|
||||
"attachment_id": "01a1d6b1-04c8-728f-9a41-8e5e0740a8bc",
|
||||
"jobs": 1,
|
||||
"variants": 3,
|
||||
"published_version": 1
|
||||
}
|
||||
],
|
||||
"revoked": {
|
||||
"checks": [
|
||||
{
|
||||
"test": "revoked-cert:broker",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:s3",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:otel-collector",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-bao-cert",
|
||||
"passed": true,
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"test": "rotated-db-password",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"passed": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 2,
|
||||
"authorization_stop_seconds": 56.717,
|
||||
"recovery_seconds": 20.992,
|
||||
"queued": 3,
|
||||
"ready": 3,
|
||||
"checksums_preserved": true,
|
||||
"publications": [
|
||||
{
|
||||
"attachment_id": "01a1d6b2-1afc-7231-a4b6-d11ed9a73c78",
|
||||
"jobs": 1,
|
||||
"variants": 3,
|
||||
"published_version": 1
|
||||
},
|
||||
{
|
||||
"attachment_id": "01a1d6b2-1b1c-77c5-a6c0-022c0407f957",
|
||||
"jobs": 1,
|
||||
"variants": 3,
|
||||
"published_version": 1
|
||||
},
|
||||
{
|
||||
"attachment_id": "01a1d6b2-1b3a-711c-84c7-229afb945dbb",
|
||||
"jobs": 1,
|
||||
"variants": 3,
|
||||
"published_version": 1
|
||||
}
|
||||
],
|
||||
"revoked": {
|
||||
"checks": [
|
||||
{
|
||||
"test": "revoked-cert:broker",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:s3",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:otel-collector",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-bao-cert",
|
||||
"passed": true,
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"test": "rotated-db-password",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"passed": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 3,
|
||||
"authorization_stop_seconds": 56.953,
|
||||
"recovery_seconds": 12.906,
|
||||
"queued": 3,
|
||||
"ready": 3,
|
||||
"checksums_preserved": true,
|
||||
"publications": [
|
||||
{
|
||||
"attachment_id": "01a1d6b3-51bc-77de-8485-e6ef064ca92b",
|
||||
"jobs": 1,
|
||||
"variants": 3,
|
||||
"published_version": 1
|
||||
},
|
||||
{
|
||||
"attachment_id": "01a1d6b3-51d9-71c4-9945-08af74e833d9",
|
||||
"jobs": 1,
|
||||
"variants": 3,
|
||||
"published_version": 1
|
||||
},
|
||||
{
|
||||
"attachment_id": "01a1d6b3-51f1-766e-ac4c-c12e5b93bc7c",
|
||||
"jobs": 1,
|
||||
"variants": 3,
|
||||
"published_version": 1
|
||||
}
|
||||
],
|
||||
"revoked": {
|
||||
"checks": [
|
||||
{
|
||||
"test": "revoked-cert:broker",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:s3",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-cert:otel-collector",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"test": "revoked-bao-cert",
|
||||
"passed": true,
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"test": "rotated-db-password",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"passed": true
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
{"run": 1, "authorization_stop_seconds": 60.285, "recovery_seconds": 12.923, "queued": 3, "ready": 3, "checksums_preserved": true, "publications": [{"attachment_id": "01a1d6b1-0483-7309-b485-fba89094dd76", "jobs": 1, "variants": 3, "published_version": 1}, {"attachment_id": "01a1d6b1-04a4-730a-9dec-a96456e3da54", "jobs": 1, "variants": 3, "published_version": 1}, {"attachment_id": "01a1d6b1-04c8-728f-9a41-8e5e0740a8bc", "jobs": 1, "variants": 3, "published_version": 1}], "revoked": {"checks": [{"test": "revoked-cert:broker", "passed": true}, {"test": "revoked-cert:s3", "passed": true}, {"test": "revoked-cert:otel-collector", "passed": true}, {"test": "revoked-bao-cert", "passed": true, "status": 400}, {"test": "rotated-db-password", "passed": true}], "passed": true}}
|
||||
{"run": 2, "authorization_stop_seconds": 56.717, "recovery_seconds": 20.992, "queued": 3, "ready": 3, "checksums_preserved": true, "publications": [{"attachment_id": "01a1d6b2-1afc-7231-a4b6-d11ed9a73c78", "jobs": 1, "variants": 3, "published_version": 1}, {"attachment_id": "01a1d6b2-1b1c-77c5-a6c0-022c0407f957", "jobs": 1, "variants": 3, "published_version": 1}, {"attachment_id": "01a1d6b2-1b3a-711c-84c7-229afb945dbb", "jobs": 1, "variants": 3, "published_version": 1}], "revoked": {"checks": [{"test": "revoked-cert:broker", "passed": true}, {"test": "revoked-cert:s3", "passed": true}, {"test": "revoked-cert:otel-collector", "passed": true}, {"test": "revoked-bao-cert", "passed": true, "status": 400}, {"test": "rotated-db-password", "passed": true}], "passed": true}}
|
||||
{"run": 3, "authorization_stop_seconds": 56.953, "recovery_seconds": 12.906, "queued": 3, "ready": 3, "checksums_preserved": true, "publications": [{"attachment_id": "01a1d6b3-51bc-77de-8485-e6ef064ca92b", "jobs": 1, "variants": 3, "published_version": 1}, {"attachment_id": "01a1d6b3-51d9-71c4-9945-08af74e833d9", "jobs": 1, "variants": 3, "published_version": 1}, {"attachment_id": "01a1d6b3-51f1-766e-ac4c-c12e5b93bc7c", "jobs": 1, "variants": 3, "published_version": 1}], "revoked": {"checks": [{"test": "revoked-cert:broker", "passed": true}, {"test": "revoked-cert:s3", "passed": true}, {"test": "revoked-cert:otel-collector", "passed": true}, {"test": "revoked-bao-cert", "passed": true, "status": 400}, {"test": "rotated-db-password", "passed": true}], "passed": true}}
|
||||
Reference in New Issue
Block a user