My App
ServiceIdentity

Runtime Identity

Runtime, container, health, JWKS và local compose wiring của Go Identity Service.

Runtime Identity

Container

ItemGiá trị
Repo/folderidentity-service
Containercenteros-identity-service
Imagedorrissdang/centeros-identity-service:main
Host/container port8081:8081
Container listen port8081
App nameidentity-service

Trong centeros-ops/compose.yaml, image được build từ:

${CENTEROS_DOCKERHUB_ORG:-dorrissdang}/centeros-identity-service:${IDENTITY_IMAGE_TAG:-${CENTEROS_IMAGE_TAG:-main}}

Health và JWKS

EndpointTrạng thái
GET /healthzĐã đóng
GET /.well-known/jwks.jsonĐã đóng

Code cũng expose readiness/actuator/internal readiness endpoints. Checkpoint hiện tại chỉ đóng GET /healthzGET /.well-known/jwks.json.

Local compose

Identity chạy trong profile app và depends on postgres.

Gateway gọi Identity qua Docker network:

http://centeros-identity-service:8081

Gateway JWKS URL:

http://centeros-identity-service:8081/.well-known/jwks.json

PostgreSQL

Confirmed từ centeros-ops/compose.yaml:

ContextHost/port
Host machinelocalhost:5433
Container networkpostgres:5432

Identity container dùng:

  • POSTGRES_HOST
  • POSTGRES_PORT
  • POSTGRES_DB
  • POSTGRES_USER
  • POSTGRES_PASSWORD

Không copy secret hoặc giá trị private từ .env vào docs.

Env vars

Các env var runtime chính, chỉ ghi tên:

Env varDùng cho
APP_NAMEapp name
APP_ENVenvironment
HTTP_HOSTbind host
HTTP_PORTbind port
CENTEROS_HTTP_ACCESS_LOG_ENABLEDaccess log on/off
CENTEROS_DB_MIGRATE_ON_STARTmigration on startup
CENTEROS_DB_SEED_ON_STARTseed local data
CENTEROS_JWT_ISSUERJWT issuer
CENTEROS_JWT_KEY_IDJWKS key id
CENTEROS_JWT_PRIVATE_KEY_BASE64signing private key
CENTEROS_JWT_PUBLIC_KEY_BASE64JWKS public key
CENTEROS_JWT_ACCESS_TOKEN_TTLaccess token TTL
CENTEROS_JWT_REFRESH_TOKEN_TTLrefresh token TTL
CENTEROS_AUTH_REFRESH_COOKIE_NAMErefresh cookie name
CENTEROS_AUTH_COOKIE_PATHrefresh cookie path
CENTEROS_AUTH_COOKIE_SECUREcookie Secure flag
CENTEROS_AUTH_COOKIE_SAME_SITEcookie SameSite

TODO

  • Chưa đóng: production deployment runtime values.

On this page