From 9c2a92c10129a407210da2feabc2d3f9165c87cb Mon Sep 17 00:00:00 2001 From: claude-bot Date: Sun, 12 Jul 2026 01:06:05 +0900 Subject: [PATCH] docs: align account section with account.local.json + scrypt reality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 계정 section still described account.json as the account store and scrypt hashing as future work; both are now implemented. Point it at the gitignored account.local.json (0600) seed/scrypt flow, consistent with the migration section below. Co-Authored-By: Claude Opus 4.7 --- docs/admin-site.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/admin-site.md b/docs/admin-site.md index a8185f2..99ebf98 100644 --- a/docs/admin-site.md +++ b/docs/admin-site.md @@ -50,7 +50,9 @@ npm start # 기본 포트 3000. ## 계정 -`account.json` 에 정의합니다(루트 디렉터리). **외부 HTTP 로 절대 노출되지 않도록 라우팅에서 제외돼 있습니다.** +운영 계정은 **gitignore 된 `account.local.json`**(루트 디렉터리, 0600, scrypt 해시)에 저장됩니다. 추적되는 `account.json` 은 서버에 `account.local.json` 이 없을 때만 읽는 **시드 소스**로, 서버 시작 시 자동으로 `account.local.json`(0600) 으로 복사됩니다. 두 파일 모두 **외부 HTTP 로 절대 노출되지 않도록 라우팅에서 제외돼 있습니다.** + +시드 포맷(`account.json`): ```json [ @@ -58,7 +60,7 @@ npm start # 기본 포트 3000. ] ``` -> 운영 환경에서는 평문 비밀번호 대신 해시를 쓰도록 추후 보강할 여지가 있습니다. +평문 비밀번호로 시드해도 로그인 성공 시 자동으로 scrypt 해시(`scrypt$$`)로 업그레이드되어 `account.local.json` 에만 저장됩니다. 자세한 마이그레이션 절차는 아래 "운영 계정 파일 마이그레이션" 을 참고하세요. ## 대시보드 (`/op/dashboard`)