-
Notifications
You must be signed in to change notification settings - Fork 14.4k
feat(caretaker): implement Cloud Run webhook ingestion service #28015
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
Merged
gundermanc
merged 21 commits into
google-gemini:main
from
chadd28:feature/caretaker-agent
Jun 30, 2026
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8d23977
chore(ingestion): initialize project setup and environment configuration
chadd28 c9cbd86
feat(ingestion): implement Firestore IssuesStore for new documents
chadd28 2d09842
feat(ingestion): add GitHub webhook HMAC signature verification
chadd28 a6ef7a9
feat(ingestion): create Express server and webhook ingestion route
chadd28 40c59c1
test(ingestion): add unit tests for GitHub webhook signature verifica…
chadd28 a8a0fe8
feat(ingestion): skip Pub/Sub publishing for duplicate issues
chadd28 5650049
fix(ingestion): secure GitHub signature verification against DoS and …
chadd28 7c2a01b
fix(ingestion): Improve build, config, and code style
chadd28 afa05a5
fix(ingestion): resolve webhook robustness and security issues in ing…
chadd28 812b530
refactor(ingestion): split ingestion service into app and server modules
chadd28 05334cc
test(ingestion): Add unit tests for webhook endpoint
chadd28 ca0de47
chore: resolve package-lock.json merge conflict
chadd28 177e670
fix(ingestion): address feedback for github signature verification
chadd28 e3aabc4
fix(ingestion): validate webhook payload and repository format strictly
chadd28 799aefb
chore(ingestion): address transaction await, logging, and documentati…
chadd28 df24dbb
chore(ingestion): enable eslint to tools folder and apply lint changes
chadd28 02edc10
fix(ingestion): remove unsafe as casts
chadd28 ed4870d
chore: merge upstream main and resolve package-lock.json conflict
chadd28 503e006
chore(ingestion): add rate limiting middleware and resolve codeql sec…
chadd28 d1ce311
chore(ingestion): remove unused eslint-disable comment directive
chadd28 c210f2d
Revert package-lock.json changes.
gundermanc 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
12 changes: 12 additions & 0 deletions
12
tools/caretaker-agent/cloudrun/ingestion-service/.dockerignore
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,12 @@ | ||
| node_modules | ||
| dist | ||
| npm-debug.log | ||
| .git | ||
| .gitignore | ||
| *.py | ||
| *.pyc | ||
| __pycache__ | ||
| requirements.txt | ||
| project.toml | ||
| **/*.test.ts | ||
|
|
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,9 @@ | ||
| FROM node:20-slim | ||
| WORKDIR /app | ||
| COPY package*.json ./ | ||
| RUN npm ci | ||
| COPY . . | ||
| RUN npm run build | ||
| EXPOSE 8080 | ||
| CMD ["node", "dist/server.js"] | ||
|
|
||
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.
[P1] Production anti-pattern.
Running
tsx(orts-node) in a production container introduces significant memory overhead and startup latency. Add a"build": "tsc"script topackage.jsonand run the compiled JavaScript here instead.