Skip to content

Commit 2fa8a0f

Browse files
committed
fix(breg): audit external view reads with the per-client request context
The request audit now records a client reference for every request (BREG-SEC-203). External view reads and their test worker take the same context, so the journal tells OAuth clients apart on these reads too. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
1 parent dc63134 commit 2fa8a0f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎crates/registry-breg/src/postgres/external_runtime.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ impl PostgresExternalViewService {
956956
self.audit.profile(),
957957
ReadTerminalAudit {
958958
terminal: TerminalAudit {
959-
grant: request.context.grant_audit().cloned(),
959+
context: request.context.audit_context().cloned(),
960960
outcome: if permitted {
961961
TerminalAuditOutcome::Returned
962962
} else {
@@ -4013,7 +4013,7 @@ mod postgres_tests {
40134013
"refresh".to_owned(),
40144014
Vec::new(),
40154015
)
4016-
.with_grant_audit(&worker),
4016+
.with_audit_context(&worker),
40174017
correlation: RequestCorrelation::breg_created(),
40184018
view: "view".to_owned(),
40194019
link: "members-link".to_owned(),

0 commit comments

Comments
 (0)