## Summary - move the Laravel application into `apps/platform` and keep the repository root for orchestration, docs, and tooling - update the local command model, Sail/Docker wiring, runtime paths, and ignore rules around the new platform location - add relocation quickstart/contracts plus focused smoke coverage for bootstrap, command model, routes, and runtime behavior ## Validation - `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/PlatformRelocation` - integrated browser smoke validated `/up`, `/`, `/admin`, `/admin/choose-workspace`, and tenant route semantics for `200`, `403`, and `404` ## Remaining Rollout Checks - validate Dokploy build context and working-directory assumptions against the new `apps/platform` layout - confirm web, queue, and scheduler processes all start from the expected working directory in staging/production - verify no legacy volume mounts or asset-publish paths still point at the old root-level `public/` or `storage/` locations Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #213
96 lines
3.4 KiB
PHP
96 lines
3.4 KiB
PHP
<?php
|
|
|
|
namespace App\Support\Providers;
|
|
|
|
final class ProviderReasonCodes
|
|
{
|
|
public const string ProviderConnectionMissing = 'provider_connection_missing';
|
|
|
|
public const string ProviderConnectionInvalid = 'provider_connection_invalid';
|
|
|
|
public const string ProviderCredentialMissing = 'provider_credential_missing';
|
|
|
|
public const string ProviderCredentialInvalid = 'provider_credential_invalid';
|
|
|
|
public const string ProviderConnectionTypeInvalid = 'provider_connection_type_invalid';
|
|
|
|
public const string PlatformIdentityMissing = 'platform_identity_missing';
|
|
|
|
public const string PlatformIdentityIncomplete = 'platform_identity_incomplete';
|
|
|
|
public const string DedicatedCredentialMissing = 'dedicated_credential_missing';
|
|
|
|
public const string DedicatedCredentialInvalid = 'dedicated_credential_invalid';
|
|
|
|
public const string ProviderConsentMissing = 'provider_consent_missing';
|
|
|
|
public const string ProviderConsentFailed = 'provider_consent_failed';
|
|
|
|
public const string ProviderConsentRevoked = 'provider_consent_revoked';
|
|
|
|
public const string ProviderConnectionReviewRequired = 'provider_connection_review_required';
|
|
|
|
public const string ProviderAuthFailed = 'provider_auth_failed';
|
|
|
|
public const string ProviderPermissionMissing = 'provider_permission_missing';
|
|
|
|
public const string ProviderPermissionDenied = 'provider_permission_denied';
|
|
|
|
public const string ProviderPermissionRefreshFailed = 'provider_permission_refresh_failed';
|
|
|
|
public const string IntuneRbacPermissionMissing = 'intune_rbac.permission_missing';
|
|
|
|
public const string TenantTargetMismatch = 'tenant_target_mismatch';
|
|
|
|
public const string NetworkUnreachable = 'network_unreachable';
|
|
|
|
public const string RateLimited = 'rate_limited';
|
|
|
|
public const string UnknownError = 'unknown_error';
|
|
|
|
public const string IntuneRbacNotConfigured = 'intune_rbac.not_configured';
|
|
|
|
public const string IntuneRbacUnhealthy = 'intune_rbac.unhealthy';
|
|
|
|
public const string IntuneRbacStale = 'intune_rbac.stale';
|
|
|
|
/**
|
|
* @return array<int, string>
|
|
*/
|
|
public static function all(): array
|
|
{
|
|
return [
|
|
self::ProviderConnectionMissing,
|
|
self::ProviderConnectionInvalid,
|
|
self::ProviderCredentialMissing,
|
|
self::ProviderCredentialInvalid,
|
|
self::ProviderConnectionTypeInvalid,
|
|
self::PlatformIdentityMissing,
|
|
self::PlatformIdentityIncomplete,
|
|
self::DedicatedCredentialMissing,
|
|
self::DedicatedCredentialInvalid,
|
|
self::ProviderConsentMissing,
|
|
self::ProviderConsentFailed,
|
|
self::ProviderConsentRevoked,
|
|
self::ProviderConnectionReviewRequired,
|
|
self::ProviderAuthFailed,
|
|
self::ProviderPermissionMissing,
|
|
self::ProviderPermissionDenied,
|
|
self::ProviderPermissionRefreshFailed,
|
|
self::IntuneRbacPermissionMissing,
|
|
self::TenantTargetMismatch,
|
|
self::NetworkUnreachable,
|
|
self::RateLimited,
|
|
self::UnknownError,
|
|
self::IntuneRbacNotConfigured,
|
|
self::IntuneRbacUnhealthy,
|
|
self::IntuneRbacStale,
|
|
];
|
|
}
|
|
|
|
public static function isKnown(string $reasonCode): bool
|
|
{
|
|
return in_array($reasonCode, self::all(), true) || str_starts_with($reasonCode, 'ext.');
|
|
}
|
|
}
|