Skip to content

Bootstrap the first admin account from a verified email - #52

Merged
swfs0417 merged 3 commits into
mainfrom
feat/the-first-admin
Jul 30, 2026
Merged

Bootstrap the first admin account from a verified email#52
swfs0417 merged 3 commits into
mainfrom
feat/the-first-admin

Conversation

@swfs0417

Copy link
Copy Markdown
Collaborator

Summary

  • Add configurable BOOTSTRAP_ADMIN_EMAIL support.
  • Automatically grant admin access and active qualification to the first matching Google-authenticated user.
  • Prevent bootstrapping when an admin or president already exists.
  • Add signin and signup coverage for the bootstrap behavior.

Testing

  • Added authentication tests covering first-admin promotion and existing-admin protection.

@swfs0417

Copy link
Copy Markdown
Collaborator Author

누군가는 승인을 해야하기때문에, master@wafflestudio.com 구글 계정으로 로그인하면 운영진이 한명도 없을 때 이 계정이 운영진이 됩니다. 최초 운영진 승인 후 계정 삭제하면 될 것 같아요.

@Mr-chimp1

Copy link
Copy Markdown
Collaborator

잘 작성된 것 같습니다! 그런데 관리자 계정을 삭제하지 않으면 어떨까요? 모든 권한을 갖는 관리자 계정이 하나 정도는 있어도 서비스 운영 차원에서 편리한 점도 있을 것 같습니다.

현재 main branch에 is_superadmin 플래그가 있어서 운영팀(프로젝트) 밖에 있어도 운영팀 권한을 유지할 수 있도록 하는 방법을 마련해놨는데 혹시 이것을 사용하면 어떨까 싶습니다.

다만, 보안 측면에서는 위험성이 있을 것 같긴합니다.

@swfs0417

Copy link
Copy Markdown
Collaborator Author

is_superadmin 사용하는 방식으로 수정했습니다.

@swfs0417
swfs0417 merged commit 0f3d141 into main Jul 30, 2026
1 check passed
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