Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
@@ -14,7 +14,8 @@ final readonly class AuthenticationAccountLockedEvent implements SecurityEventIn
|
||||
public function __construct(
|
||||
public string $userId,
|
||||
public int $attempts
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function getEventIdentifier(): string
|
||||
{
|
||||
@@ -50,7 +51,7 @@ final readonly class AuthenticationAccountLockedEvent implements SecurityEventIn
|
||||
'event_identifier' => $this->getEventIdentifier(),
|
||||
'category' => $this->getCategory(),
|
||||
'log_level' => $this->getLogLevel()->value,
|
||||
'requires_alert' => $this->requiresAlert()
|
||||
'requires_alert' => $this->requiresAlert(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,8 @@ final readonly class AuthenticationLoginFailedEvent implements SecurityEventInte
|
||||
public function __construct(
|
||||
public string $userId,
|
||||
public string $reason = 'invalid_credentials'
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function getEventIdentifier(): string
|
||||
{
|
||||
@@ -50,7 +51,7 @@ final readonly class AuthenticationLoginFailedEvent implements SecurityEventInte
|
||||
'event_identifier' => $this->getEventIdentifier(),
|
||||
'category' => $this->getCategory(),
|
||||
'log_level' => $this->getLogLevel()->value,
|
||||
'requires_alert' => $this->requiresAlert()
|
||||
'requires_alert' => $this->requiresAlert(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,8 @@ final readonly class AuthenticationLoginSuccessAfterFailEvent implements Securit
|
||||
public function __construct(
|
||||
public string $userId,
|
||||
public int $retries
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function getEventIdentifier(): string
|
||||
{
|
||||
@@ -50,7 +51,7 @@ final readonly class AuthenticationLoginSuccessAfterFailEvent implements Securit
|
||||
'event_identifier' => $this->getEventIdentifier(),
|
||||
'category' => $this->getCategory(),
|
||||
'log_level' => $this->getLogLevel()->value,
|
||||
'requires_alert' => $this->requiresAlert()
|
||||
'requires_alert' => $this->requiresAlert(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,8 @@ final readonly class AuthenticationLoginSuccessEvent implements SecurityEventInt
|
||||
{
|
||||
public function __construct(
|
||||
public string $userId
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function getEventIdentifier(): string
|
||||
{
|
||||
@@ -47,7 +48,7 @@ final readonly class AuthenticationLoginSuccessEvent implements SecurityEventInt
|
||||
'event_identifier' => $this->getEventIdentifier(),
|
||||
'category' => $this->getCategory(),
|
||||
'log_level' => $this->getLogLevel()->value,
|
||||
'requires_alert' => $this->requiresAlert()
|
||||
'requires_alert' => $this->requiresAlert(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,8 @@ final readonly class AuthorizationAccessDeniedEvent implements SecurityEventInte
|
||||
public string $userId,
|
||||
public string $resource,
|
||||
public string $action = 'access'
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function getEventIdentifier(): string
|
||||
{
|
||||
@@ -51,7 +52,7 @@ final readonly class AuthorizationAccessDeniedEvent implements SecurityEventInte
|
||||
'event_identifier' => $this->getEventIdentifier(),
|
||||
'category' => $this->getCategory(),
|
||||
'log_level' => $this->getLogLevel()->value,
|
||||
'requires_alert' => $this->requiresAlert()
|
||||
'requires_alert' => $this->requiresAlert(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,8 @@ final readonly class AuthorizationAdminActionEvent implements SecurityEventInter
|
||||
public string $userId,
|
||||
public string $resource,
|
||||
public string $action = 'admin_action'
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function getEventIdentifier(): string
|
||||
{
|
||||
@@ -52,7 +53,7 @@ final readonly class AuthorizationAdminActionEvent implements SecurityEventInter
|
||||
'event_identifier' => $this->getEventIdentifier(),
|
||||
'category' => $this->getCategory(),
|
||||
'log_level' => $this->getLogLevel()->value,
|
||||
'requires_alert' => $this->requiresAlert()
|
||||
'requires_alert' => $this->requiresAlert(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Exception\SecurityEvent;
|
||||
|
||||
use App\Framework\Exception\SecurityException;
|
||||
use App\Framework\Exception\SecurityLogLevel;
|
||||
|
||||
/**
|
||||
@@ -15,7 +14,8 @@ final readonly class InputSqlInjectionAttemptEvent implements SecurityEventInter
|
||||
public function __construct(
|
||||
public string $field,
|
||||
public string $detectedPattern = 'generic_sql_pattern'
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function getEventIdentifier(): string
|
||||
{
|
||||
@@ -51,7 +51,7 @@ final readonly class InputSqlInjectionAttemptEvent implements SecurityEventInter
|
||||
'event_identifier' => $this->getEventIdentifier(),
|
||||
'category' => $this->getCategory(),
|
||||
'log_level' => $this->getLogLevel()->value,
|
||||
'requires_alert' => $this->requiresAlert()
|
||||
'requires_alert' => $this->requiresAlert(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,8 @@ final readonly class InputXssAttemptEvent implements SecurityEventInterface
|
||||
public function __construct(
|
||||
public string $field,
|
||||
public string $detectedPattern = 'generic_xss_pattern'
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function getEventIdentifier(): string
|
||||
{
|
||||
@@ -49,7 +50,7 @@ final readonly class InputXssAttemptEvent implements SecurityEventInterface
|
||||
'event_identifier' => $this->getEventIdentifier(),
|
||||
'category' => $this->getCategory(),
|
||||
'log_level' => $this->getLogLevel()->value,
|
||||
'requires_alert' => $this->requiresAlert()
|
||||
'requires_alert' => $this->requiresAlert(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,8 @@ final readonly class SystemExcessiveUseEvent implements SecurityEventInterface
|
||||
public string $identifier,
|
||||
public int $limit,
|
||||
public int $currentUsage
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function getEventIdentifier(): string
|
||||
{
|
||||
@@ -52,7 +53,7 @@ final readonly class SystemExcessiveUseEvent implements SecurityEventInterface
|
||||
'event_identifier' => $this->getEventIdentifier(),
|
||||
'category' => $this->getCategory(),
|
||||
'log_level' => $this->getLogLevel()->value,
|
||||
'requires_alert' => $this->requiresAlert()
|
||||
'requires_alert' => $this->requiresAlert(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user