Skip to content

Conversation

@S0okJu
Copy link
Collaborator

@S0okJu S0okJu commented Sep 25, 2025

Overview

  • Add get_attachment_details tool

Key Changes

  • Add get_attachmet_details that return attchement details
  • Tests are updated and passing

Related Issues

Additional context

  • I hide target portal for security reason.
스크린샷 2025-09-25 오후 4 22 43

- Add get_attachmet_id that return attchement details
- Tests are updated and passing

attachment = conn.block_storage.get_attachment(attachment_id)

# NOTE: We exclude the auth_* fields for security reasons
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auth 관련 필드정보가 필터링 되어야하는 이유가 있을까요?

Copy link
Collaborator Author

@S0okJu S0okJu Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@halucinor
auth_* 부분( auth_mehtod, auth_username, auth_password)을 필터링한 이유는 cinder에 접근하기 위한 중요한 인증 정보이기 때문입니다.

auth_method=CHAP인 경우를 예로 들자면 Cinder에서 볼륨을 attach할때 컴퓨트 노드는 해당 계정을 활용하여 target에 대한 로그인을 수행하고, target은 이를 검증하여 허용된 initiator만 세션을 주고받게 됩니다. (참고)

하지만 이러한 인증 정보가 노출되면 cinder에 대한 무단 접근이 가능해집니다. 이는 데이터 탈취와 같은 심각한 보안 문제가 발생할 수 있습니다.

개인적인 이유로, mcp서버가 관리자 등 다양한 사용자를 대상으로 한다고 할지라도 인증 정보 필터링등 최소한의 안전 장치는 마련해야 한다고 생각합니다.

@S0okJu S0okJu force-pushed the feat/volume-attachment branch from 5ffc0c7 to 0f071d4 Compare October 2, 2025 07:43

# Verify mcp.tool() was called for each method
assert mock_mcp.tool.call_count == 5
assert mock_mcp.tool.call_count == 6
Copy link
Collaborator

@paikend paikend Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mock_mcp.tool.call_count 갯수 확인이 어떤 의미를 주는지 와닿지 않는 상태로 말씀드립니다.

도구가 추가되거나 삭제되면 테스트 케이스를 매번 수정해줘야할 것 같아 유지보수 부담을 줄 수 있을 것 같네요

이런 테스트 케이스는 삭제하면 어떨까요?

요고 리뷰에서 논의되서 지우는 방향으로가면 제가 나머지 테스트 함수들 확인해보겠습니다.

(오늘 멘토링 내용중에 '의미있는 테스트를 작성하는가'에 대한 이야기가 지나가듯이 나와서 영감을 받아 코멘트남깁니다.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

위의 코드에 대해서 비슷한 느낌을 받았습니다.
해당 테스트 케이스를 삭제하겠습니다!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#77
관련해서 디스커션 생성해봤습니다! (디스커션 기능 처음 써 봄)
1~2 팀원분들 추가 의견들어볼게욥! ㅋㅋ

@S0okJu S0okJu merged commit ef46d14 into develop Oct 11, 2025
6 checks passed
@platanus-kr platanus-kr added the feature Request for new feature or functionality enhancement label Oct 11, 2025
halucinor pushed a commit that referenced this pull request Oct 23, 2025
halucinor pushed a commit that referenced this pull request Oct 24, 2025
@S0okJu S0okJu linked an issue Oct 25, 2025 that may be closed by this pull request
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Request for new feature or functionality enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Add volume connection related tools to mcp

6 participants