Repository navigation
STU-149 (frontend): reject known provider plus aliases for new magic-link accounts #77
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
Closed
sgardoll
wants to merge
13
commits into
main
from
sgardoll/stu-149-reject-known-provider-plus-aliases-frontend
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d1dc19c
fix: classify SDK dependencies by their pubspec source, not a name list
sgardoll b28b814
ci: gate main with required CI checks and branch protection (STU-345)
sgardoll f479a9a
fix(ci): avoid shell quoting errors in bundle leak scan
sgardoll bf50a2d
feat(auth): provider-aware plus-alias guard for magic-link sign-in
sgardoll 50a5c86
fix: classify a block-form dependency by any nested source key, not j…
sgardoll dad5c48
fix: skip verification conservatively when an unrepresentable source …
sgardoll b7057dd
fix(ci): scan the bundle for every provider endpoint and credential s…
sgardoll 585c580
ci: pin workflow actions to commit SHAs and minimize token permissions
sgardoll b839f1f
test: derive the deploy guard's expected absent bundles from the buil…
sgardoll 8f462d5
fix(auth): derive the magic-link guard contract from the shared fixture
sgardoll 842d3a7
fix(auth): announce the magic-link rejection message to screen readers
sgardoll 303da71
test(auth): assert the exact rejection message instead of substrings
sgardoll 37716b3
fix: scope the verification skip to direct importers and disclose the…
sgardoll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
|
|
||
| # The workflow only checks out code and runs tests; it never needs write access. | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| ci: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| cache: 'npm' | ||
|
|
||
| - name: Set up PHP | ||
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2 | ||
| with: | ||
| php-version: '8.3' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Run tests | ||
| run: npm test | ||
|
|
||
| - name: Build production bundle | ||
| run: npm run build | ||
|
|
||
| - name: Run deploy guard | ||
| run: npm run test:deploy-guard | ||
|
|
||
| - name: Run proxy allowlist tests | ||
| run: npm run test:proxies | ||
|
|
||
| - name: Scan production bundle for API key/endpoint leaks | ||
| run: python3 scripts/scan_bundle_for_leaks.py |
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
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
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
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The asynchronous rejection updates a plain paragraph while keyboard focus remains on the submit button. Because the message element has no live-region semantics, screen-reader users may not be notified when
PLUS_ALIAS_REJECTEDarrives. The inline validation should use an appropriate status or alert live region. Greptile automatically discovered a related ticket stating that the inline rejection message must be accessible, which informed this comment.Knowledge Base Used: FlutterFlow custom code experience
Source Used: Linear — Reject known provider plus aliases when creating new magic-link accounts
Prompt To Fix With AI
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!