Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

데이터베이스 사용자를 분리한다. #35

Open
3Juhwan opened this issue Feb 5, 2025 · 0 comments
Open

데이터베이스 사용자를 분리한다. #35

3Juhwan opened this issue Feb 5, 2025 · 0 comments
Assignees
Labels
개선 프로덕트에 개선이 필요해요.

Comments

@3Juhwan
Copy link
Member

3Juhwan commented Feb 5, 2025

작업할 내용

MySQL 사용자를 분리하고 적절한 권한을 부여한다.

사용자

  • 어드민
  • 크롤러 서버
  • 백엔드 서버

사용자 접속 가능 호스트

  • 어드민: 개발자 IP
  • 크롤러 서버: 동일 VPC 내 크롤러 서버의 private ip
  • 백엔드 서버: 동일 VPC 내 백엔드 서버의 private ip

사용자 권한

어드민

  • 모든 권한

크롤러 서버

  • insert, select: 모든 데이터베이스와 테이블
  • delete, update: 제한
  • DDL: 제한

백엔드 서버

  • db.prod 이외에 모든 db: 제한
  • insert, select
    • db.prod 이외에 모든 db: 제한
    • db.prod의 크롤링 데이터 테이블(departments, subjects, baskets): 제한
    • 이외의 운영 테이블: 허용
  • delete, update: 제한
  • DDL: 제한
@3Juhwan 3Juhwan added the 개선 프로덕트에 개선이 필요해요. label Feb 5, 2025
@3Juhwan 3Juhwan self-assigned this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
개선 프로덕트에 개선이 필요해요.
Projects
None yet
Development

No branches or pull requests

1 participant