-
Notifications
You must be signed in to change notification settings - Fork 0
fix(gateway): stabilize Fastify runtime, config validation, and CI #21
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
Open
donny-devops
wants to merge
13
commits into
main
Choose a base branch
from
fix/runtime-ci-gateway-hardening
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
03b4e37
fix(package): restore Fastify 4 runtime compatibility and tooling
donny-devops 83fde14
fix(tsconfig): compile config and tests under NodeNext
donny-devops 1d43371
fix(config): validate env parsing and optional Redis settings
donny-devops 5b44ee3
fix(auth): harden public path matching and JWT failures
donny-devops 99a5d35
fix(server): import crypto and make Redis connection optional
donny-devops 2f4610d
fix(plugins): align request context plugin metadata with Fastify runtime
donny-devops 4656650
fix(ddos): remove conflicting catch-all content parser
donny-devops 47ca1d9
build(lint): add flat ESLint config for TypeScript
donny-devops 9c996eb
build(test): add vitest coverage config
donny-devops 067d386
test(auth): add public path coverage
donny-devops 6978586
build(ci): add Node.js quality gates
donny-devops 8fe99a9
Update config/gateway.ts
donny-devops 8092dd0
fix review thread issues from PR #21
Copilot 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
Some comments aren't visible on the classic Files Changed page.
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,44 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - fix/** | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| quality: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [20, 22] | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: npm | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Typecheck | ||
| run: npm run typecheck | ||
|
|
||
| - name: Lint | ||
| run: npm run lint | ||
|
|
||
| - name: Test | ||
| run: npm run test:coverage | ||
|
|
||
| - name: Build | ||
| run: npm run build |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import js from '@eslint/js'; | ||
| import tseslint from 'typescript-eslint'; | ||
|
|
||
| export default tseslint.config( | ||
| js.configs.recommended, | ||
| ...tseslint.configs.recommended, | ||
| { | ||
| files: ['src/**/*.ts', 'config/**/*.ts', 'tests/**/*.ts'], | ||
| languageOptions: { | ||
| globals: { | ||
| process: 'readonly', | ||
| Buffer: 'readonly', | ||
| console: 'readonly', | ||
| }, | ||
| parserOptions: { | ||
| project: './tsconfig.json', | ||
| }, | ||
| }, | ||
|
Comment on lines
+9
to
+18
|
||
| rules: { | ||
| '@typescript-eslint/no-explicit-any': 'warn', | ||
| '@typescript-eslint/consistent-type-imports': 'error', | ||
| }, | ||
| }, | ||
| ); | ||
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.
Uh oh!
There was an error while loading. Please reload this page.