Реализовать лабораторную 7: mTLS, OpenBao и защита worker

This commit is contained in:
wpyatzy
2026-12-04 20:35:40 +03:00
parent 20afc2c790
commit 1b865eac83
146 changed files with 9552 additions and 87 deletions
+8
View File
@@ -0,0 +1,8 @@
"""Trusted operator only: bound retention of old authentication counters."""
from app import store
store.pool.open(wait=True)
try:
with store.connect() as conn:
count=conn.execute("DELETE FROM login_limits WHERE bucket<now()-interval '10 minutes'").rowcount
print('Removed obsolete rate-limit counters:',count)
finally:store.pool.close()