Skip to content

Improve Observability #10964

@jzheaux

Description

@jzheaux

Making Spring Security's actions observable at runtime will help make applications more secure. Following recommendations from OWASP, we should:

  • Add authorization events
  • Add OAuth2 client authorization events
  • Add defense violation events (CSP violation, CSRF violation, firewall rejection, etc.)
  • Add user/password lifecycle events
  • Consider introducing secure header report-uri endpoints

It would be helpful to have a marker class that security events can be identified by:

  • Add SecurityEvent

When these events are fired, Spring Security should:

  • Pipe authentication events to Micrometer
  • Pipe authorization events to Micrometer
  • Pipe defense violation events to Micrometer
  • Pipe session management events to Micrometer
  • Pipe custom security events to Micrometer

It can also help applications evaluate performance and usage. To that end we should:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions