From e373656b29fffbee55805a2a696038577c4505e1 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Mar 2026 20:44:07 +0900 Subject: [PATCH] docs: fix gitea credential helper setting --- .../260309_gitea_git_credential_helper_표준화.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/journey/troubleshooting/260309_gitea_git_credential_helper_표준화.md b/journey/troubleshooting/260309_gitea_git_credential_helper_표준화.md index 973de5a..a659fb1 100644 --- a/journey/troubleshooting/260309_gitea_git_credential_helper_표준화.md +++ b/journey/troubleshooting/260309_gitea_git_credential_helper_표준화.md @@ -24,7 +24,7 @@ tags: [infra, git, gitea, credential, auth, troubleshooting] - 전용 credential 파일: `/home/admin/.config/git/gitea-credentials` - 파일 권한: `600` - 전역 helper: `credential.https://git.ro-being.com.helper=store --file /home/admin/.config/git/gitea-credentials` - - 전역 옵션: `credential.useHttpPath=true` + - Gitea 전용 옵션: `credential.https://git.ro-being.com.useHttpPath=false` - 검증 결과: - `git ls-remote https://git.ro-being.com/ivada-infra/DOCS.git HEAD` 성공 - `infra/DOCS`의 새 커밋 `c898949`를 `origin/main`에 push 성공 @@ -38,13 +38,15 @@ tags: [infra, git, gitea, credential, auth, troubleshooting] 1. 로컬 전용 인증 흔적에서 현재 유효한 Gitea 자격 증명 확인 2. `/home/admin/.config/git/gitea-credentials` 생성 및 `600` 권한 적용 3. `git.ro-being.com` 전용 credential helper를 전역 Git 설정에 등록 -4. `credential.useHttpPath=true`로 저장소 경로 기준 credential 재사용 정책 고정 +4. Gitea에 대해서는 `credential.https://git.ro-being.com.useHttpPath=false`로 호스트 단위 credential 매칭 정책 고정 5. `git ls-remote`로 원격 읽기 검증 6. `infra/DOCS` 커밋 `c898949` push로 실제 쓰기 검증 ## 검증 - `git config --global --get-all credential.https://git.ro-being.com.helper` - `store --file /home/admin/.config/git/gitea-credentials` +- `git config --global --get credential.https://git.ro-being.com.useHttpPath` + - `false` - `stat -c '%a' /home/admin/.config/git/gitea-credentials` - `600` - `git ls-remote https://git.ro-being.com/ivada-infra/DOCS.git HEAD`