fix(core,admin-template): GC 스케줄 허용목록 동기 + 스토리지 잔존물 GC 신설 + 스케줄 모달 저장 회귀 수정

공개 후속 전수 조사의 실작업:
- attachments:prune-orphans 관리자 예약 허용목록 등재 + 가드 테스트 도출 규칙을
 런타임 validator 와 일치 (옵션 포함 키는 영원히 매칭되지 않는 죽은 항목)
- layout-previews:cleanup 을 gc-schedules 가드 구간으로 편입 (+onOneServer)
- storage:prune-leftovers 신설: 중단된 업데이트/설치의 _pending 스테이징·코어 임시·
 vendor 스테이징(3일)과 오래된 백업(30일, 최신 1개 상시 보존), 레거시 browser.log 회수
 — 산출물 누적 + 회수 경로 부재( 동형) 7건 해소
- 언어팩 설치 임시 디렉토리 정리를 finally 로 이동 (설치 성공 시 100% 누수)
- 브라우저 콘솔 로그를 daily(7일) 로테이션으로 전환 (단일 파일 989MB 실측)
- 검수 중 발견한 스케줄 등록/수정 모달 저장 불능 수정 (Form id 부재 + 커스텀
 Select/Toggle 값 미전송) + 동형 재발 차단 audit 룰 2종 신설
This commit is contained in:
HeuJung committed 2026-08-17 15:17:20 +09:00
1 parent db49e8b9b8
commit febffb173e
21 files changed
+1185 -29

No files matched your search

@@ -42,6 +42,7 @@ class CoreScheduleRegistrationTest extends TestCase
public function test_core_gc_schedules_are_registered(): void
{
$expected = [
'layout-previews:cleanup' => '*/30 * * * *',
'sanctum:prune-expired' => '0 4 * * *',
'auth:clear-resets' => '5 4 * * *',
'queue:prune-failed' => '10 4 * * *',
@@ -53,6 +54,8 @@ class CoreScheduleRegistrationTest extends TestCase
'identity:prune-logs' => '40 4 * * *',
'activity-log:prune' => '45 4 * * *',
'notification-log:prune' => '50 4 * * *',
'attachments:prune-orphans' => '55 4 * * *',
'storage:prune-leftovers' => '0 5 * * *',
'identity:expire-challenges' => '0 * * * *',
];
@@ -194,6 +197,7 @@ class CoreScheduleRegistrationTest extends TestCase
*
* 손으로 적은 목록은 예약이 늘어도 그대로라 전수를 증명하지 못합니다 —
* 다중 서버 1대 실행(`onOneServer`)으로 선언된 artisan 예약을 그대로 읽습니다.
* 예약 문자열의 옵션은 런타임 validator(`parseArtisanCommand`)와 동일하게 명령명만 남깁니다.
*
* @return array<int, string> 커맨드 이름 목록
*/
@@ -213,7 +217,10 @@ class CoreScheduleRegistrationTest extends TestCase
preg_match_all("/Schedule::command\(\s*'([^']+)'/", $region, $matches);
return array_values(array_unique($matches[1] ?? []));
return array_values(array_unique(array_map(
static fn (string $command): string => (string) strtok($command, ' '),
$matches[1] ?? []
)));
}
/**