Skip to content

chore: mkcert 기반 SSL 인증서 자동 생성 스크립트 추가#189

Merged
Yejiin21 merged 2 commits intodevelopfrom
chore/#188/mkcert-script
Jun 23, 2025
Merged

chore: mkcert 기반 SSL 인증서 자동 생성 스크립트 추가#189
Yejiin21 merged 2 commits intodevelopfrom
chore/#188/mkcert-script

Conversation

@Yejiin21
Copy link
Copy Markdown
Contributor

@Yejiin21 Yejiin21 commented Jun 23, 2025

Summary by CodeRabbit

  • Chores
    • mkcert로 생성된 로컬 인증서 파일을 Git 추적에서 제외하도록 .gitignore를 업데이트했습니다.
    • 로컬 TLS 인증서 생성을 자동화하는 스크립트를 추가했습니다.
    • 개발 서버가 HTTPS를 지원하도록 설정을 변경했습니다.

@Yejiin21 Yejiin21 self-assigned this Jun 23, 2025
@Yejiin21 Yejiin21 added the 👨‍🔧 Chore 환경 설정 label Jun 23, 2025
@Yejiin21 Yejiin21 linked an issue Jun 23, 2025 that may be closed by this pull request
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jun 23, 2025

Walkthrough

로컬 개발 환경에서 TLS(HTTPS) 지원을 위해 mkcert를 활용한 SSL 인증서 자동 생성 스크립트가 추가되었습니다. Vite 개발 서버는 새로 생성된 인증서를 사용하도록 HTTPS 옵션이 활성화되었으며, mkcert로 생성된 인증서 파일이 Git에 커밋되지 않도록 .gitignore가 업데이트되었습니다.

Changes

파일/경로 변경 요약
.gitignore mkcert로 생성된 *_wildcard*.pem 인증서 파일 무시 패턴 추가
scripts/setup-cert.sh mkcert 기반 로컬 SSL 인증서 자동 생성 및 설치 스크립트 신규 추가
vite.config.ts Vite 개발 서버에 HTTPS 옵션 추가 및 인증서 파일 동기적 로드 구현

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant setup-cert.sh
    participant mkcert
    participant FileSystem
    participant ViteServer

    Developer->>setup-cert.sh: 스크립트 실행
    setup-cert.sh->>mkcert: mkcert 설치 여부 확인
    setup-cert.sh->>mkcert: mkcert -install (CA 설치)
    setup-cert.sh->>FileSystem: 인증서 파일 존재 여부 확인
    alt 인증서 없음
        setup-cert.sh->>mkcert: 인증서 생성 (*.gotogether.io.kr, 127.0.0.1, ::1)
        mkcert->>FileSystem: 인증서 파일 저장
    else 인증서 있음
        setup-cert.sh->>Developer: 인증서 이미 존재 알림
    end
    Developer->>ViteServer: 개발 서버 실행 (vite.config.ts)
    ViteServer->>FileSystem: 인증서 파일 읽기
    ViteServer->>Developer: HTTPS 개발 서버 구동
Loading

Possibly related issues

Poem

🐰
인증서가 뚝딱, mkcert가 출동!
스크립트 한 번이면 HTTPS도 뚫통!
Vite 서버 반짝, 안전하게 빛나네,
Git엔 비밀, 인증서는 안 올려!
토끼는 신나서 깡총깡총,
보안 개발 환경, 이제 걱정 끝!
🌱🔒

✨ Finishing Touches
  • 📝 Generate Docstrings

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.
    • Explain this complex logic.
    • 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. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • 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 src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

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

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai 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

Documentation and Community

  • 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.

@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@hyeeuncho hyeeuncho left a comment

Choose a reason for hiding this comment

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

good

@Yejiin21 Yejiin21 merged commit f5267f6 into develop Jun 23, 2025
1 of 2 checks passed
@Yejiin21 Yejiin21 deleted the chore/#188/mkcert-script branch June 23, 2025 13:05
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🧹 Nitpick comments (1)
scripts/setup-cert.sh (1)

8-11: mkcert 설치 확인 로직 개선 필요

현재 Homebrew만 언급하고 있어 다른 운영체제 사용자에게 도움이 되지 않습니다.

다음과 같이 더 포괄적인 설치 안내를 제공하세요:

-  echo "❌ mkcert가 설치되어 있지 않습니다. 먼저 'brew install mkcert'로 설치해주세요."
+  echo "❌ mkcert가 설치되어 있지 않습니다."
+  echo "설치 방법:"
+  echo "  macOS: brew install mkcert"
+  echo "  Linux: 패키지 매니저 또는 https://github.com/FiloSottile/mkcert#installation"
+  echo "  Windows: choco install mkcert 또는 수동 설치"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c0ee440 and 69a4561.

📒 Files selected for processing (3)
  • .gitignore (1 hunks)
  • scripts/setup-cert.sh (1 hunks)
  • vite.config.ts (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: storybook
🔇 Additional comments (3)
.gitignore (1)

29-30: 인증서 파일 제외 패턴이 적절합니다.

mkcert로 생성된 인증서 파일을 Git에서 제외하는 패턴이 올바르게 설정되었습니다.

vite.config.ts (1)

6-6: fs 모듈 import가 적절합니다.

인증서 파일을 읽기 위한 fs 모듈 import가 올바르게 추가되었습니다.

scripts/setup-cert.sh (1)

1-2: 셔뱅과 스크립트 시작이 적절합니다.

Bash 스크립트로 올바르게 시작되었습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👨‍🔧 Chore 환경 설정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[chore] mkcert 기반 SSL 인증서 자동 생성 스크립트 추가

2 participants