Skip to content

feat: env prefix standardization, iframe URL fix & cost optimizer clear#72

Merged
MZC-CSC merged 6 commits into
m-cmp:mainfrom
MZC-CSC:develop
May 26, 2026
Merged

feat: env prefix standardization, iframe URL fix & cost optimizer clear#72
MZC-CSC merged 6 commits into
m-cmp:mainfrom
MZC-CSC:develop

Conversation

@dogfootman

@dogfootman dogfootman commented May 26, 2026

Copy link
Copy Markdown
Member

Summary

  • refactor(env): 환경변수 명칭을 MC_WEB_CONSOLE_* / MC_ADMIN_CLI_* prefix로 표준화
  • fix(WEB-BUG-014): iframe URL 변환 로직 추가 (resolveIframeUrl)
  • fix(costanalysis): iframe 로딩 전 #costIframe 초기화 처리

Test plan

  • 환경변수 MC_WEB_CONSOLE_* / MC_ADMIN_CLI_* prefix 정상 인식 확인
  • iframe URL resolveIframeUrl 변환 동작 확인 (WEB-BUG-014)
  • cost optimizer 페이지 재진입 시 iframe 초기화 정상 동작 확인

dogfootman and others added 6 commits May 21, 2026 08:03
…I_* prefix

Renames all os.Getenv calls in mc-web-console to follow the MC_<FRAMEWORK>_*
prefix convention established in mc-admin-cli PR #30.

Key changes:
- api/internal/config/config.go: 14 env var renames (DB_*, API_*, GO_ENV,
  MCIAM_*, MCWEBCONSOLE_MENUYAML, MCADMINCLI_APIYAML, IFRAME_TARGET_IS_HOST)
- api/cmd/main.go: JWT_SECRET → MC_WEB_CONSOLE_JWT_SECRET,
  DB_HOST check → MC_WEB_CONSOLE_POSTGRES_HOST
- front/actions/env.go: FRONT_*, API_*, SESSION_SECRET renamed
- front/actions/render.go: FRONT_DEV → MC_WEB_CONSOLE_FRONT_DEV
- conf/.env.sample: updated to match new variable names

Fixes MC_WEB_CONSOLE_MENUYAML and MC_ADMIN_CLI_APIYAML injection
(previously these were never injected due to name mismatch — fixes
FR-CLOUD-ADMIN-006-08 yaml reachability check).

Relates-to: WEB-TECH-001
- Docker 내부 hostname을 브라우저 hostname으로 자동 변환
- localhost 접근 시 http://localhost:PORT 로 변환 (로컬 Docker 환경)
- HTTPS 페이지에서 HTTP URL protocol 업그레이드
- trailing slash 제거로 //web/path 이중슬래시 방지
addIframe() appends to existing innerHTML, so the initial warning div
persisted even after workspace/project were selected. Clear the container
first to ensure a clean state before inserting the iframe.
refactor: standardize env var names to MC_WEB_CONSOLE_* / MC_ADMIN_CLI_* prefix
fix(WEB-BUG-014): iframe 플러그인 URL 정규화 (resolveIframeUrl)
fix(costanalysis): clear #costIframe before loading iframe
@MZC-CSC MZC-CSC merged commit a449909 into m-cmp:main May 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants