Implement compliance key lifecycle on main service, add message retention and rate limits

This commit is contained in:
2026-03-25 20:50:03 +03:00
Unverified
parent 3b2928260b
commit f73c92c77c
13 changed files with 545 additions and 336 deletions
+12 -2
View File
@@ -73,11 +73,21 @@ def main():
action="store_true",
help="Output only the public key (for scripts)"
)
parser.add_argument(
"--emit-key-lines",
action="store_true",
help="Print private key line then public key line to stdout only (no file; for generate:env.sh)",
)
args = parser.parse_args()
private_b64, public_b64 = generate_compliance_keypair()
if args.emit_key_lines:
print(private_b64)
print(public_b64)
return
if args.public_only:
# Output only public key for script integration
print(public_b64)