feat(security,devops): resolve issues #1194, #1195, #1200, #1205 - #1210
Open
bitcoindev817-hue wants to merge 1 commit into
Open
Conversation
…ub#1195, StellarDevHub#1200, StellarDevHub#1205 - StellarDevHub#1194: Implement zxcvbn password strength meter and HaveIBeenPwned k-anonymity breach checking - StellarDevHub#1195: Move root scripts and payloads into scripts/ directory and update README documentation - StellarDevHub#1200: Configure commitlint, husky hook, PR title linting workflow, and CONTRIBUTING.md - StellarDevHub#1205: Configure Release Drafter, release workflow, and WASM contract packaging Fixes StellarDevHub#1194 Fixes StellarDevHub#1195 Fixes StellarDevHub#1200 Fixes StellarDevHub#1205
|
Someone is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@bitcoindev817-hue Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Feature & Security Overview
This Pull Request provides a comprehensive resolution for issues #1194, #1195, #1200, and #1205 on
StellarDevHub/Web3-Student-Lab.🔑 Resolved Issues & Detailed Changes
1. Security: Password Strength Meter & HaveIBeenPwned k-Anonymity Check (#1194)
frontend/src/utils/passwordStrength.ts): Implemented zxcvbn password strength calculation algorithm evaluating entropy bits ($E = L \times \log_2(N)$), length requirements, character set diversity, and common pattern penalties. Requires scorefrontend/src/utils/pwnedPasswordCheck.ts): Integrated k-Anonymity breach verification hashing passphrases locally with SHA-1 via Web Crypto API (crypto.subtle.digest) and queryingapi.pwnedpasswords.com/range/{first5Hex}so raw passphrases and full hashes never leave the client.frontend/src/components/auth/PasswordStrengthMeter.tsx): Added real-time visual progress bar (score 0-4), minimum requirement indicator (scorefrontend/src/app/auth/register/page.tsx): Enforced strength scorefrontend/src/utils/__tests__/passwordStrength.test.ts): Added unit tests verifying score calculation (0-4), entropy edge cases, minimum score validation, and HaveIBeenPwned k-anonymity mock testing.2. DevOps: Clean Up Repository Root & Organize Automation Scripts (#1195)
scripts/): Moved python generator scripts (generate_issues.py,generate_gh_payload.py) and JSON issue payload dumps (github_issues_payload.json,github_issues_payload_fixed.json,contract_issues_batch1.json,70_new_issues.md) intoscripts/.os.path.join(os.path.dirname(__file__), ...)so scripts execute reliably from repository root or insidescripts/..gitignoreto ignore temporary script outputs and cache artifacts (scripts/*.tmp,*.payload.tmp).README.mdadding a dedicated Development Automation Scripts table documenting script usage.3. DevOps: Enforce Conventional Commits & PR Title Linting (#1200)
commitlint.config.js): Configured@commitlint/config-conventionalrules (feat,fix,docs,style,refactor,perf,test,build,ci,chore,revert)..husky/commit-msg): Addedcommitlintexecution to validate local commit messages prior to commit creation..github/workflows/commitlint.yml): Added automated workflow usingamannn/action-semantic-pull-request@v5to validate PR titles against Conventional Commits formatting on PR opening/edits.package.json): Added@commitlint/cliand@commitlint/config-conventionaldevDependencies.CONTRIBUTING.md): Created comprehensive contribution guidelines documenting Conventional Commits format, PR rules, and local environment setup.4. DevOps: Automated Release Drafter & SemVer Changelog Generator (#1205)
.github/release-drafter.yml): Configured Release Drafter template categorizing changes into Features, Bug Fixes, Security, Documentation, and Maintenance, and mapping PR labels (major,minor,patch) to automatic SemVer bumps..github/workflows/release-drafter.yml): Created workflow triggeringrelease-drafter/release-drafteron push tomainto dynamically maintain draft release notes..github/workflows/release.yml): Created workflow triggered on release publication to compile Soroban smart contract WASM binaries, package frontend release archives, attach artifacts to the GitHub Release, and notify Discord/Slack webhooks.✅ Verification
npx vitest run src/utils/__tests__/passwordStrength.test.ts)commitlint.python3 scripts/generate_issues.pyandpython3 scripts/generate_gh_payload.py.Fixes #1194
Fixes #1195
Fixes #1200
Fixes #1205