Skip to content

feat: Organization/Role menu sync, Credentials/Connections 화면, IAM API 개선#73

Merged
MZC-CSC merged 19 commits into
m-cmp:mainfrom
MZC-CSC:develop
Jun 5, 2026
Merged

feat: Organization/Role menu sync, Credentials/Connections 화면, IAM API 개선#73
MZC-CSC merged 19 commits into
m-cmp:mainfrom
MZC-CSC:develop

Conversation

@dogfootman

@dogfootman dogfootman commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

  • 조직/역할 메뉴 개선

    • 조직 관련 메뉴 및 companyinfo 화면 추가
    • roles 페이지에 menus_api.js 로드 추가로 사이드바 갱신 동작 수정
  • Credentials/Connections 화면 기능 개선 (feat-web-cloud-env-001)

    • mc-infra-manager(cb-tumblebug) 기반 Credential Holder 목록 조회 및 등록
    • RSA-OAEP + AES-256-CBC 암호화 적용 (cb-tumblebug 호환)
    • Connection Config 목록 조회 및 필터 패널 추가
    • MC_WEB_CONSOLE_USE_REGISTRY_URL 환경변수 추가
  • IAM API 개선

    • assignGroupPlatformRole, getGroupPlatformRoles API 추가 (api.yaml)
    • users_api.js 누락 함수 구현 (updateUser, deleteUser, addUserRole)
    • Users 화면 API 등록

yh-noh and others added 19 commits April 14, 2026 16:19
…c-infra-manager)

- conf: clouddrivers/regions 메뉴 제거, credentials/connections isaction true로 활성화
- 신규: cloudconnection_api.js (RSA+AES 암호화 credential 등록, connConfig 조회)
- 신규: credentials.html/js (Credential Holder 목록, 3-Step 암호화 등록 폼)
- 신규: connections.html/js (ConnConfig 조회, 필터, 상세 패널)
… 집계로 변경

- listCredentialHolders(): GetCredentialHolderList 대신 GetConnConfigList 결과에서 holder 집계
- queryParams boolean → String() 변환 (map[string]string 호환)
- MC_WEB_CONSOLE_API_SCHEME 환경변수 추가 (env.go)
- proxy.go: http:// 하드코딩 → API_SCHEME 동적 처리
- scripts/start-remote.sh: Front 서버 단독 기동 스크립트 추가
- conf/api.yaml: 11개 서비스 baseurl을 mciam.onecloudcon.com으로 일괄 변경
  - mc-infra-connector: spider_url → mciam.onecloudcon.com:1024
  - mc-infra-manager: 52.79.163.111 → mciam.onecloudcon.com:1323
  - mc-observability, mc-application-manager, mc-workflow-manager 등 placeholder 제거
- scripts/start-remote.sh: API + Front 서버 양쪽 로컬 기동으로 변경
- RSA 공개키 파싱: PKCS#1(BEGIN RSA PUBLIC KEY) + PKIX 양쪽 지원
- AES 암호화: GCM → CBC (IV(16B)+ciphertext, PKCS7 패딩)
- mc-iam-manager 포트: 5006 → 5000
- API: MC_WEB_CONSOLE_USE_REGISTRY_URL 환경변수 추가
  - false로 설정 시 MCIAM 레지스트리 BaseURL 덮어쓰기 비활성화
  - 로컬 개발 환경에서 api.yaml 설정이 항상 유효하게 동작

- Credentials: Tabulator rowClick 이벤트 리스너 방식으로 변경 (v5 호환)
  - DOM 모듈 로드 시점 null 참조 수정 (document.getElementById 직접 호출)
  - Provider 선택 시 cb-spider 기대 키 이름 자동 입력 (PROVIDER_KEYS)

- Connections: Tabulator rowClick 이벤트 리스너 방식으로 변경 (v5 호환)
  - DOM 모듈 로드 시점 null 참조 수정
  - height: 400px 설정으로 테이블 내부 스크롤 활성화
  - 외부 컨테이너 overflow:hidden 제거로 페이지네이션 컨트롤 표시
  - 필터 패널 추가 (Field/Type/Value/Clear, networks.html 패턴 적용)
feat(cloud-env): Credentials/Connections 클라우드 환경 등록 기능 개선
사이드바 메뉴가 로그인 시 localStorage에 캐시된 후 갱신되지 않아
역할 메뉴 권한 변경 후 재로그인해야 반영되는 문제 수정.

- menus_api.js: refreshAvailableMenus() 추가
  GetAllAvailableMenus 재조회 → localStorage 갱신 → refresh-sidebar 이벤트 dispatch
- sidebar.js: refresh-sidebar CustomEvent 리스너 추가 → updatemenu() 재호출
- organizations/menus.js: create/update/delete 성공 시 refreshAvailableMenus() 호출
- roles.js: saveRole/updateRole 성공 시 refreshAvailableMenus() 호출

Fixes: WEB-BUG-016
- WEB-BUG-015: webconsole_menu_resources.yaml에 groups 메뉴 항목 누락 추가
- WEB-TECH-008: companyinfo 화면 구현 (HTML 템플릿 + JS)
  - 최상위 조직 정보 조회 및 표시
  - Edit/Cancel 모드 전환 기능
  - Users 화면 스타일 기준으로 Edit 버튼 통일
- fix: mc-iam-manager baseurl 포트 5006 → 5000 수정
조직 메뉴 추가 및 companyinfo 화면 추가
- conf/api.yaml: removePlatformRole 신규 등록 (DELETE /api/roles/unassign/platform-role)
- conf/api.yaml: Deleteuser/Updateuser resourcePath 오타 수정 (/api/user/ → /api/users/, userid → userId)
- users_api.js: updateUser, deleteUser, addUserRole, removeUserRole 함수 추가
WEB-BUG-016 근본 원인: roles.html 템플릿에 menus_api.js 번들이 로드되지 않아
webconsolejs["common/api/services/menus_api"]가 undefined였음.
역할 저장 후 refreshAvailableMenus() 호출 시 TypeError가 발생했으나
outer catch에서 조용히 무시되어 사이드바가 갱신되지 않았음.

- roles.html: menus_api.js script tag 추가 (roles_api.js 뒤에 로드)
- menus_api.js: orphaned 노드 루트 처리 추가, 빈 배열 방어 로직 추가
- login.js: orphaned 메뉴 노드 루트 처리 (refreshAvailableMenus와 동일 패턴)
[Fix] WEB-BUG-016: 역할 메뉴 저장 후 사이드바 즉시 갱신
…from upstream and improved addUserRole from stash
@MZC-CSC MZC-CSC merged commit d1784db into m-cmp:main Jun 5, 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