تخطَّ إلى المحتوى

Missing Authorization (ARCH8120)

هذا المحتوى غير متوفر بلغتك بعد.

Key kotlin.security.missing-authorization · Severity warning · Category security · CWE CWE-862

Flags a @RestController with state-changing mappings and no @PreAuthorize / @Secured / @RolesAllowed anywhere in the class.

@RestController
class AdminController { @DeleteMapping("/users/{id}") fun delete(...) }
@RestController
@PreAuthorize("hasRole('ADMIN')")
class AdminController { ... }

Guard the class or each mutating action with an authorization annotation.