securitylog

package
v0.0.0-...-24d4c74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatID

func FormatID(id int64) string

FormatID converts an int64 to string for use as resource_id.

func GetPrincipal

func GetPrincipal(c echo.Context) (orgID, userID, principalType string)

GetPrincipal extracts principal information from the echo context.

func IsMutatingMethod

func IsMutatingMethod(method string) bool

IsMutatingMethod returns true for POST, PUT, PATCH, DELETE.

func LogAuthFailure

func LogAuthFailure(reason, remoteAddr string)

LogAuthFailure logs an authentication failure security event (EOI-7).

func LogAuthzFailure

func LogAuthzFailure(c echo.Context, reason string)

LogAuthzFailure logs an authorization failure security event (EOI-8).

func LogCrud

func LogCrud(c echo.Context, action, resourceType, resourceID, outcome string)

LogCrud logs a CRUD security event, extracting the principal from echo.Context.

func LogShutdown

func LogShutdown(outcome, reason string)

LogShutdown logs a process shutdown security event (EOI-5).

func LogStartup

func LogStartup(outcome string)

LogStartup logs a process startup security event (EOI-5).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL