security: 보안 강제 시스템 구축 + 하드코딩 비밀번호 제거

보안 감사 결과 CRITICAL 2건, HIGH 5건 발견 → 수정 완료 + 자동화 구축.

[보안 수정]
- issue-view.js: 하드코딩 비밀번호 → crypto.getRandomValues() 랜덤 생성
- pushSubscriptionController.js: ntfy 비밀번호 → process.env.NTFY_SUB_PASSWORD
- DEPLOY-GUIDE.md/PROGRESS.md/migration SQL: 평문 비밀번호 → placeholder
- docker-compose.yml/.env.example: NTFY_SUB_PASSWORD 환경변수 추가

[보안 강제 시스템 - 신규]
- scripts/security-scan.sh: 8개 규칙 (CRITICAL 2, HIGH 4, MEDIUM 2)
  3모드(staged/all/diff), severity, .securityignore, MEDIUM 임계값
- .githooks/pre-commit: 로컬 빠른 피드백
- .githooks/pre-receive-server.sh: Gitea 서버 최종 차단
  bypass 거버넌스([SECURITY-BYPASS: 사유] + 사용자 제한 + 로그)
- SECURITY-CHECKLIST.md: 10개 카테고리 자동/수동 구분
- docs/SECURITY-GUIDE.md: 운영자 가이드 (워크플로우, bypass, FAQ)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-10 09:44:21 +09:00
parent bbffa47a9d
commit ba9ef32808
257 changed files with 786 additions and 18 deletions

View File

@@ -0,0 +1,108 @@
/* ✅ /css/workreport.css */
body {
font-family: 'Malgun Gothic', sans-serif;
background-color: #f8f9fa;
margin: 0;
padding: 30px;
color: #333;
}
h2 {
text-align: center;
color: #1976d2;
margin-bottom: 20px;
}
#calendar {
max-width: 500px;
margin: 0 auto 30px;
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
text-align: center;
}
#calendar .nav {
grid-column: span 7;
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
#calendar button {
padding: 8px;
background-color: #ffffff;
border: 1px solid #ccc;
cursor: pointer;
border-radius: 4px;
}
#calendar button:hover {
background-color: #e3f2fd;
}
.selected-date {
background-color: #4caf50 !important;
color: white;
font-weight: bold;
}
table {
width: 100%;
max-width: 1200px;
margin: auto;
border-collapse: collapse;
background-color: white;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
th, td {
border: 1px solid #ddd;
padding: 10px;
text-align: center;
}
th {
background-color: #f1f3f4;
color: #333;
}
select,
input[type="text"] {
width: 100%;
padding: 6px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
.remove-btn {
background-color: #d9534f;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
}
.remove-btn:hover {
background-color: #c9302c;
}
.submit-btn {
display: block;
margin: 30px auto;
padding: 12px 30px;
font-size: 1rem;
font-weight: bold;
background-color: #1976d2;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
}
.submit-btn:hover {
background-color: #1565c0;
}