7 Commits

Author SHA1 Message Date
64032861e0 [update] header test
All checks were successful
Build And Test / build-and-push (push) Successful in 2m29s
2025-12-08 13:52:54 +09:00
ec866f2d05 update
All checks were successful
Build And Test / build-and-push (push) Successful in 2m54s
2025-12-05 16:16:32 +09:00
89c126b469 [update] Trace Endpoint-env
All checks were successful
Build And Test / build-and-push (push) Successful in 3m54s
2025-12-05 14:33:45 +09:00
118398fa68 [update] Trace Endpoint
All checks were successful
Build And Test / build-and-push (push) Successful in 2m52s
2025-12-05 12:40:05 +09:00
05f4ed5b2a modify endpoint
All checks were successful
Build And Test / build-and-push (push) Successful in 1m43s
2025-09-30 00:55:25 +09:00
ec39ba59be Update jaeger Endpoint
All checks were successful
Build And Test / build-and-push (push) Successful in 2m9s
2025-09-29 23:23:28 +09:00
cf8466aaf6 modify paylaod
All checks were successful
Build And Test / build-and-push (push) Successful in 1m44s
2025-09-29 00:25:24 +09:00
6 changed files with 28 additions and 4 deletions

4
.gitignore vendored
View File

@ -165,4 +165,6 @@ _media/cluster/
wheelhouse wheelhouse
# RS256 을 위한 적용 keys 폴더 # RS256 을 위한 적용 keys 폴더
keys keys
msa-django-auth.code-workspace

View File

@ -12,6 +12,16 @@ python3 manage.py runserver 0.0.0.0:8000
gunicorn auth_prj.wsgi:application --bind 0.0.0.0:8000 --workers 3 gunicorn auth_prj.wsgi:application --bind 0.0.0.0:8000 --workers 3
``` ```
## 2025-12-05 TRACE ENDPOINT 변경 ( v0.0.15 )
* 변경전 static
* 변경후 변수 처리
* TRACE_ENDPOINT='test'
* TRACE_SERVICE_NAME=''
## 2025-09-29 jaeger Endpoint 변경 ( v0.0.14 )
* 변경전: endpoint="http://jaeger-collector.istio-system:4317",
* 변경후: endpoint="http://jaeger-collector.observability.svc.cluster.local:4317",
## 2025-09-28 RS256변경 적용 ( v0.0.13 ) ## 2025-09-28 RS256변경 적용 ( v0.0.13 )
* Docker Build base image 변경. * Docker Build base image 변경.
* python:3.10-slim-buster > python:3.10-slim-bullseye * python:3.10-slim-buster > python:3.10-slim-bullseye

View File

@ -34,6 +34,9 @@ else:
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get('SECRET_KEY', 'django-insecure-ec9me^z%x7-2vwee5#qq(kvn@^cs!!22_*f-im(320_k5-=0j5') SECRET_KEY = os.environ.get('SECRET_KEY', 'django-insecure-ec9me^z%x7-2vwee5#qq(kvn@^cs!!22_*f-im(320_k5-=0j5')
SERVICE_PLATFORM = os.getenv("SERVICE_PLATFORM", "none")
TRACE_SERVICE_NAME = os.getenv("TRACE_SERVICE_NAME", "msa-django-auth")
TRACE_ENDPOINT = os.getenv("TRACE_ENDPOINT", "none")
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = int(os.environ.get('DEBUG', 1)) DEBUG = int(os.environ.get('DEBUG', 1))

View File

@ -27,14 +27,22 @@ if not settings.DEBUG:
trace.set_tracer_provider( trace.set_tracer_provider(
TracerProvider( TracerProvider(
resource=Resource.create({ resource=Resource.create({
"service.name": "msa-django-auth", "service.platform": settings.SERVICE_PLATFORM,
# "service.name": "msa-django-auth",
"service.name": settings.TRACE_SERVICE_NAME,
}) })
) )
) )
otlp_exporter = OTLPSpanExporter( otlp_exporter = OTLPSpanExporter(
endpoint="http://jaeger-collector.istio-system:4317", # endpoint="http://jaeger-collector.istio-system:4317",
# endpoint="jaeger-collector.observability.svc.cluster.local:4317",
endpoint=settings.TRACE_ENDPOINT,
insecure=True, insecure=True,
headers={
"X-Scope-OrgID": settings.SERVICE_PLATFORM,
"X-Service": settings.TRACE_SERVICE_NAME
}
) )
trace.get_tracer_provider().add_span_processor( trace.get_tracer_provider().add_span_processor(

View File

@ -27,6 +27,7 @@ class CustomTokenObtainPairSerializer(TokenObtainPairSerializer):
token["name"] = user.name token["name"] = user.name
token["grade"] = user.grade token["grade"] = user.grade
token["email"] = user.email # 선택적으로 추가 가능 token["email"] = user.email # 선택적으로 추가 가능
token["sub"] = user.email # 선택적으로 추가 가능
# Kong JWT 플러그인용 issuer 정보 추가 # Kong JWT 플러그인용 issuer 정보 추가
token["iss"] = "msa-user" token["iss"] = "msa-user"

View File

@ -1 +1 @@
v0.0.13 v0.0.16_t1