fix: refuse admin tokens under 32 characters and throttle wrong token attempts per source
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2
tests/fixtures/capture-postgres.py
vendored
2
tests/fixtures/capture-postgres.py
vendored
@@ -174,7 +174,7 @@ def main():
|
||||
})
|
||||
assert "provider_config" not in legacy
|
||||
command(BIN / "tessera", "--hub-url", hub_url, "snap", "--orbit", "legacy-fixture",
|
||||
env={**fixture_env(), "TESSERA_ADMIN_TOKEN": "fixture-admin"}, stdout=DEVNULL)
|
||||
env={**fixture_env(), "TESSERA_ADMIN_TOKEN": "fixture-admin-token-0123456789abcdef"}, stdout=DEVNULL)
|
||||
assert any(snap["orbit_id"] == legacy["id"] for snap in api("snapshots"))
|
||||
for log in (hub_log, agent_log):
|
||||
log.seek(0)
|
||||
|
||||
Reference in New Issue
Block a user