Skip to content

Spam "Failed to handle access request event" logs for resource-based Access Requests #55091

Open
@kopiczko

Description

@kopiczko

When resource based Access Request is created:

2025-05-23T11:47:18.751+01:00 ERRO [AUTH:ACCE] Failed to handle access request event. error:[
ERROR REPORT:
Original Error: trace.aggregate cannot automatically review access requests for resources other than 'roles'
Stack Trace:
        /Users/kopiczko/src/gh/gravitational/teleport.kopiczko.request_prompt_v2/lib/accessmonitoring/monitor.go:243 github.com/gravitational/teleport/lib/accessmonitoring.handleEvent
        /Users/kopiczko/src/gh/gravitational/teleport.kopiczko.request_prompt_v2/lib/accessmonitoring/monitor.go:210 github.com/gravitational/teleport/lib/accessmonitoring.(*AccessMonitor).Run.func2
        /opt/local/lib/go/src/runtime/asm_arm64.s:1223 runtime.goexit
User Message: cannot automatically review access requests for resources other than 'roles'] event:Put(AccessRequest(user=myrequester,roles=[access])) accessmonitoring/monitor.go:211

This probably can be simply replaced with return nil:

return trace.BadParameter("cannot automatically review access requests for resources other than 'roles'")

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions