Skip to content

Feat/admin credentials pr limit - #19

Merged
MengMengCode merged 3 commits into
masterfrom
feat/admin-credentials-pr-limit
Aug 14, 2026
Merged

MengMengCode merged 3 commits into
masterfrom
feat/admin-credentials-pr-limit

Conversation

@MengMengCode

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 14, 2026 13:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the admin credential management flows by lowering minimum password length requirements, adding a privileged admin credential reset path (intended for local/root recovery), and introducing automation to enforce a pull request size limit.

Changes:

  • Reduce admin password minimum length from 12 to 6 across password change, bootstrap, and related UI/API messaging.
  • Add ResetAdminCredentials to reset the single admin username/password without requiring the previous password, revoking existing sessions.
  • Add a GitHub Actions workflow to automatically close PRs exceeding 5,000 changed lines.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/server/general_api.go Updates weak-password detection to match new 6-character minimum for password change responses.
internal/auth/service.go Adds ResetAdminCredentials and reduces ChangePassword minimum length to 6.
internal/auth/service_test.go Adds tests covering credential reset behavior (including session revocation) and input validation.
cmd/vocat/menu.go Updates the root menu flow to reset admin credentials (including username) without asking for the current password.
cmd/vocat/menu_test.go Adds tests ensuring credential reset prompts don’t request the current password and show current username.
cmd/vocat/bootstrap_admin.go Lowers bootstrap password minimum length to 6.
.gitignore Ignores /fix.
.github/workflows/pr-size-limit.yml Adds workflow to enforce a 5,000 changed-line PR limit by closing oversized PRs and commenting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/pr-size-limit.yml
…als-pr-limit

# Conflicts:
#	cmd/vocat/menu.go
#	internal/auth/service.go
@MengMengCode
MengMengCode merged commit 2dceb74 into master Aug 14, 2026
6 of 7 checks passed
@MengMengCode
MengMengCode deleted the feat/admin-credentials-pr-limit branch August 14, 2026 13:54
@MengMengCode
MengMengCode restored the feat/admin-credentials-pr-limit branch August 14, 2026 15:02
@MengMengCode
MengMengCode deleted the feat/admin-credentials-pr-limit branch August 14, 2026 15:04
MengMengCode added a commit that referenced this pull request Aug 15, 2026
* feat: reset admin credentials without requiring current password and update related prompts

* feat: update password requirements to a minimum of 6 characters for admin credentials
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