Skip to content

fix(#9) : swgger Failed to load remote configuration 이슈 해결#61

Closed
Hgyeol wants to merge 1 commit intodevelopfrom
fix/#9
Closed

fix(#9) : swgger Failed to load remote configuration 이슈 해결#61
Hgyeol wants to merge 1 commit intodevelopfrom
fix/#9

Conversation

@Hgyeol
Copy link
Member

@Hgyeol Hgyeol commented Aug 31, 2025

📌 swagger 'Failed to load remote configuration' 이슈 해결


📑 개요

swagger 'Failed to load remote configuration' 이슈 해결


✅ 작업 내용

  • "/h2-console/", "/favicon.ico", "/error", "/swagger-ui/", "/swagger-resources/", "/v3/api-docs/" 인가 제외

🔗 관련 이슈

Close fix/#9


📌 체크리스트

  • 코드 컨벤션을 지켰나요?
  • 커밋 메시지 컨벤션을 지켰나요?
  • 테스트를 완료했나요?

Summary by CodeRabbit

  • 신기능
    • 비인증 접근 허용 범위를 확대했습니다. 이제 /h2-console/, /favicon.ico, /error, /swagger-resources/, /v3/api-docs/** 경로에 로그인 없이 접근할 수 있습니다. 기존 공개 엔드포인트는 그대로 유지되며, 그 외 요청은 기존과 동일하게 인증이 필요합니다. 이로써 개발용 콘솔과 API 문서 접근 편의성이 향상되었습니다.

@coderabbitai
Copy link

coderabbitai bot commented Aug 31, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

SecurityConfig의 공개 접근 허용 경로가 확장되었습니다. 기존 허용 목록에 /h2-console/**, /favicon.ico, /error, /swagger-resources/**, /v3/api-docs/**가 추가되었고, 그 외 보안 설정과 메서드 시그니처는 변경되지 않았습니다.

Changes

Cohort / File(s) Change summary
Security allowlist update
src/main/java/hello/cluebackend/global/config/SecurityConfig.java
permitAll 경로 목록에 /h2-console/**, /favicon.ico, /error, /swagger-resources/**, /v3/api-docs/** 추가. 나머지 CORS/CSRF/OAuth2/JWT 설정 및 anyRequest().authenticated() 유지.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant C as Client
  participant S as Spring Security
  participant A as Auth Provider (JWT/OAuth2)

  Note over C,S: 요청 흐름 (변경된 퍼블릭 경로 포함)

  C->>S: HTTP 요청 /{path}
  alt 경로가 permitAll에 포함됨<br/>(/, /refresh-token, /register, /first-register, /api/timetable/**,<br/>/test, /swagger-ui/**, /h2-console/**, /favicon.ico, /error,<br/>/swagger-resources/**, /v3/api-docs/**)
    S-->>C: 인증 없이 접근 허용
  else 기타 모든 경로
    S->>A: 인증/토큰 검증
    alt 인증 성공
      S-->>C: 접근 허용
    else 인증 실패
      S-->>C: 401/403 응답
    end
  end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • Feat/#7 #52: Swagger/OpenAPI 설정 및 UI 추가와 연계되어 SecurityConfig에 swagger 관련 경로 허용을 다룹니다.
  • Fix/#8 #60: 동일 파일(SecurityConfig.java)의 permitAll 리스트를 조정한 선행 변경과 직접적으로 연관됩니다.

Suggested labels

버그

Poem

작은 발로 탭탭, 문지기 문열렸네
스웨거 길도 반짝, 콘솔 길도 환하네 ✨
토큰은 뒤에서 조용히 지키고
오류와 아이콘도 “어서 오세요” 🐇
오늘도 깡충, 안전한 길만 골라 뛰네


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 7bb6177 and 22d3f34.

📒 Files selected for processing (1)
  • src/main/java/hello/cluebackend/global/config/SecurityConfig.java (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/#9

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Hgyeol Hgyeol closed this Aug 31, 2025
@fixgramwork fixgramwork deleted the fix/#9 branch November 19, 2025 06:49
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.

1 participant