Refactor auth-service to iam-service and update related documentation

- Renamed auth-service to iam-service across various files for consistency.
- Updated Dockerfiles, deployment configurations, and documentation to reflect the service name change.
- Enhanced testing commands in documentation to point to the new iam-service.
- Removed outdated auth-service files and configurations to streamline the project structure.
- Improved bilingual documentation for clarity on the new service structure and usage.
This commit is contained in:
Ho Ngoc Hai
2025-12-30 20:54:21 +07:00
parent 7a4bda8da7
commit b104fafa85
246 changed files with 35630 additions and 2867 deletions

View File

@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: auth-service-config
name: iam-service-config
namespace: staging
data:
NODE_ENV: "staging"
@@ -9,6 +9,6 @@ data:
API_VERSION: "v1"
CORS_ORIGIN: "https://staging.goodgo.vn"
LOG_LEVEL: "info"
SERVICE_NAME: "auth-service"
# Note: DATABASE_URL is stored in secrets (auth-service-secrets)
SERVICE_NAME: "iam-service"
# Note: DATABASE_URL is stored in secrets (iam-service-secrets)
# DATABASE_URL should point to Neon staging branch

View File

@@ -1,21 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth-service
name: iam-service
namespace: staging
spec:
replicas: 2
selector:
matchLabels:
app: auth-service
app: iam-service
template:
metadata:
labels:
app: auth-service
app: iam-service
spec:
containers:
- name: auth-service
image: goodgo/auth-service:latest
- name: iam-service
image: goodgo/iam-service:latest
ports:
- containerPort: 5001
env:
@@ -24,12 +24,12 @@ spec:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: auth-service-secrets
name: iam-service-secrets
key: database-url
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: auth-service-secrets
name: iam-service-secrets
key: jwt-secret
- name: REDIS_HOST
value: "redis-service"
@@ -57,11 +57,11 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: auth-service
name: iam-service
namespace: staging
spec:
selector:
app: auth-service
app: iam-service
ports:
- protocol: TCP
port: 5001

View File

@@ -15,13 +15,55 @@ spec:
pathType: Prefix
backend:
service:
name: auth-service
name: iam-service
port:
number: 5001
- path: /api/v1/users
pathType: Prefix
backend:
service:
name: auth-service
name: iam-service
port:
number: 5001
- path: /api/v1/identity
pathType: Prefix
backend:
service:
name: iam-service
port:
number: 5001
- path: /api/v1/access
pathType: Prefix
backend:
service:
name: iam-service
port:
number: 5001
- path: /api/v1/governance
pathType: Prefix
backend:
service:
name: iam-service
port:
number: 5001
- path: /api/v1/rbac
pathType: Prefix
backend:
service:
name: iam-service
port:
number: 5001
- path: /api/v1/mfa
pathType: Prefix
backend:
service:
name: iam-service
port:
number: 5001
- path: /api/v1/sessions
pathType: Prefix
backend:
service:
name: iam-service
port:
number: 5001