lab7: цикл обновления секретов не зависит от bootCtx, маркеры сбоев на volume, восстановление staging по HTTPS, purge — остаточный риск

This commit is contained in:
2026-11-12 19:27:20 +03:00
parent 627b7ee42f
commit 049b2867a6
11 changed files with 39 additions and 18 deletions
+3 -2
View File
@@ -135,7 +135,7 @@ def scenario_mtls(c):
check(denied(broker[k].get('connect')), 'broker %s not rejected: %s' % (k, broker[k]))
w, r = broker['worker'], broker['relay']
check(w.get('consume attachment.process') == 'allowed' and denied(w.get('publish attachments (job)'))
and denied(w.get('declare queue evil')) and denied(w.get('purge attachment.process')), 'worker ACL: %s' % w)
and denied(w.get('declare queue evil')) and denied(w.get('delete queue attachment.process')), 'worker ACL: %s' % w)
check(r.get('publish attachments (job)') == 'allowed' and denied(r.get('consume attachment.process')), 'relay ACL: %s' % r)
otel = {
@@ -195,7 +195,8 @@ def scenario_acl(c):
res = {}
res['outsider_metadata'] = c.call('GET', '/api/v1/attachments/' + att['id'], (404,), actor=eve)['status']
res['outsider_content'] = c.call('GET', '/api/v1/attachments/%s/content' % att['id'], (404,), actor=eve)['status']
echat = c.call('POST', '/api/v1/chats', 201, actor=eve, body={'title': 'e', 'member_ids': [eve['id']]})['json']
echat = c.call('POST', '/api/v1/chats', 201, actor=eve, body={'title': 'e', 'member_ids': [eve['id']]},
schema='Chat')['json']
res['attach_foreign_file'] = c.call('POST', '/api/v1/chats/%s/messages' % echat['id'], (404,), actor=eve,
body={'text': 'x', 'attachment_ids': [att['id']]},
headers={'Idempotency-Key': uuid.uuid4().hex})['status']