docs: fix gitea credential helper setting
This commit is contained in:
parent
4474a84262
commit
e373656b29
@ -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`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user