Skip to content

Comments

fix(#7): CI와 CD 설정 파일 수정#12

Merged
Yoonchulchung merged 2 commits intodevfrom
fix(#7)ci-cd-fix
Jan 16, 2026
Merged

fix(#7): CI와 CD 설정 파일 수정#12
Yoonchulchung merged 2 commits intodevfrom
fix(#7)ci-cd-fix

Conversation

@ParkJiYeoung8297
Copy link
Contributor

related_to : #7

📝 작업 내용

CI와 CD 설정 파일 수정

✅ 변경 사항

  • 앱 이름 spot → application으로 수정
  • Ci 테스트를 위한 DB postgre → mysql로 수정

📷 스크린샷 (선택)

💬 리뷰어에게

CI 테스트 시 실제 운영 db에 연결해 테스트하는 것은 위험할 것 같아서, 테스트용 db로 변경했습니다. 테스트를 위한 가짜 값이기 때문에 따로 시크릿 처리하지 않았습니다.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @ParkJiYeoung8297, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 CI/CD 설정 파일을 수정하여 애플리케이션의 이름과 CI 테스트 환경을 개선합니다. 특히, CI 테스트 시 실제 운영 DB 연결의 위험을 줄이기 위해 테스트용 DB를 PostgreSQL에서 MySQL로 변경하고, 관련 의존성을 정리했습니다. 또한, API 경로를 간소화하여 일관성을 높였습니다.

Highlights

  • 애플리케이션 이름 변경: 운영 및 테스트 환경 설정 파일에서 애플리케이션 이름을 'Spot'에서 'Realmatch'로 변경했습니다.
  • CI 테스트 데이터베이스 변경: CI 테스트 환경에서 사용되는 데이터베이스를 PostgreSQL에서 MySQL로 변경하고, 관련 의존성을 제거했습니다.
  • API 경로 간소화: 보안 설정에서 /api/v1/test/api/v1/test-auth 경로를 각각 /api/test/api/test-auth로 수정하여 경로를 간소화했습니다.
Ignored Files
  • Ignored by pattern: .github/workflows/** (2)
    • .github/workflows/cd-prod.yml
    • .github/workflows/pr-check.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이 PR은 CI/CD 설정을 PostgreSQL에서 MySQL로 변경하고 애플리케이션 이름을 수정하는 작업을 포함하고 있습니다. 전반적으로 올바른 방향의 수정이지만, 몇 가지 중요한 문제가 발견되었습니다. application-test.yml 파일에 테스트용 데이터베이스의 자격 증명이 하드코딩되어 있어 보안상 위험이 있으며, 더 치명적으로는 데이터베이스가 MySQL로 변경되었음에도 불구하고 Hibernate dialect 설정이 PostgreSQL로 남아있어 test 프로파일 실행 시 애플리케이션이 실패할 것입니다. 아래의 리뷰 코멘트를 확인하여 수정해 주시기 바랍니다.

url: jdbc:mysql://localhost:3306/test_db
username: test_user
password: test
driver-class-name: com.mysql.cj.jdbc.Driver
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

데이터베이스 드라이버를 MySQL로 올바르게 변경하셨지만, 관련 설정인 JPA Hibernate dialect가 여전히 PostgreSQL로 되어 있습니다 (31번째 줄: dialect: org.hibernate.dialect.PostgreSQLDialect). 이 설정은 test 프로파일에서 애플리케이션이 시작되지 않거나 쿼리 실행 시 오류를 발생시키는 원인이 됩니다. prod 프로파일과 같이 org.hibernate.dialect.MySQL8Dialect로 수정해야 합니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

수정 완료

Comment on lines +16 to +17
username: test_user
password: test
Copy link
Contributor

Choose a reason for hiding this comment

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

security-high high

테스트용이라 할지라도 데이터베이스 자격 증명을 소스 코드에 직접 포함하는 것은 보안상 위험할 수 있습니다. 이 정보가 유출될 경우를 대비하여, 환경 변수를 통해 주입하는 방식을 사용하는 것이 좋습니다. application-prod.yml에서 사용하는 방식과 같이 환경 변수를 사용하도록 변경하는 것을 권장합니다.

    username: ${TEST_DB_USERNAME}
    password: ${TEST_DB_PASSWORD}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CI에서만 뜨는 임시 MySQL 컨테이너이기 때문에, 유출되어도 크게 보안상 위험하지 않을 것 같습니다.
실제 배포 DB 연결은 CD 워크플로우에서 수행합니다.

Copy link
Member

@Yoonchulchung Yoonchulchung left a comment

Choose a reason for hiding this comment

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

넵 좋습니다

@Yoonchulchung Yoonchulchung merged commit ea853bb into dev Jan 16, 2026
1 check passed
@Yoonchulchung Yoonchulchung deleted the fix(#7)ci-cd-fix branch January 16, 2026 11:37
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.

2 participants