mirror of
https://github.com/dalbodeule/hop-gate.git
synced 2025-12-08 04:45:43 +09:00
[feat](server): add ACME standalone-only mode for certificate management
- Introduced `HOP_ACME_STANDALONE_ONLY` env variable to run the ACME client without starting HTTP/DTLS servers. - Allows certificate issuance/renewal solely and exits upon completion. - Includes initialization of the ACME manager with domain verification, certificate management, and caching mechanisms. DomainService and expand Admin API - Added `DomainServiceImpl` with support for registering, unregistering, and querying domains. - Expanded Admin API with new endpoints: - `GET /api/v1/admin/domains/exists` to check domain registration status. - `GET /api/v1/admin/domains/status` to retrieve detailed domain information. - Updated server initialization to wire `DomainService` and Admin API routes. - Documented new Admin API endpoints in `API.md`.
This commit is contained in:
@@ -157,15 +157,15 @@ This document tracks implementation progress against the HopGate architecture an
|
||||
|
||||
### 3.1 Admin Plane Implementation / 관리 Plane 구현
|
||||
|
||||
- [ ] DomainService 실제 구현 추가: [`internal/admin/service.go`](internal/admin/service.go)
|
||||
- [x] DomainService 실제 구현 추가: [`internal/admin/service.go`](internal/admin/service.go)
|
||||
- ent.Client + PostgreSQL 기반 `RegisterDomain` / `UnregisterDomain` 구현.
|
||||
- domain + client_api_key 유효성 검증 로직 포함.
|
||||
|
||||
- [ ] Admin API와 서버 라우터 연결: [`cmd/server/main.go`](cmd/server/main.go)
|
||||
- [x] Admin API와 서버 라우터 연결: [`cmd/server/main.go`](cmd/server/main.go)
|
||||
- `http.ServeMux` 혹은 router에 `admin.Handler.RegisterRoutes` 연결.
|
||||
- Admin API용 HTTP/HTTPS 엔드포인트 구성.
|
||||
|
||||
- [ ] Admin API 키 관리
|
||||
- [x] Admin API 키 관리
|
||||
- env 혹은 설정에 `ADMIN_API_KEY` 추가 및 로딩.
|
||||
- Admin Handler에 주입.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user