Conversation
Summary of ChangesHello @kalbasit, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the security of the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request hardens the security of the narinfo route by enforcing a stricter pattern for the hash at the router level. This is a good improvement. The associated test changes are mostly correct, though a test name could be more descriptive. I've also noted an opportunity for further cleanup in related handlers to maintain consistency with the changes made.
ad39796 to
a3fc32b
Compare
af8d25f to
abf888a
Compare
a3fc32b to
a9db580
Compare
abf888a to
72c518e
Compare
a9db580 to
f516d91
Compare
72c518e to
0cc36f7
Compare
f516d91 to
a5bdc92
Compare
15b5c18 to
714c33b
Compare
a5bdc92 to
e276ea3
Compare
714c33b to
d7e4ebc
Compare
e276ea3 to
ad68338
Compare
ad68338 to
e6e447c
Compare
d7e4ebc to
05cd73e
Compare
The narinfo hash was updated in #840 to reflect the upstream definition in NixOS/nix#15004 and so the server should only allow narinfo requests that match this pattern.
e6e447c to
be06e36
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #841 +/- ##
=====================================
Coverage 3.96% 3.96%
=====================================
Files 6 6
Lines 429 429
=====================================
Hits 17 17
Misses 409 409
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The narinfo hash was updated in #840 to reflect the upstream definition in NixOS/nix#15004 and so the server should only allow narinfo requests that match this pattern. (cherry picked from commit e91ec45)
|
Successfully created backport PR for |
Bot-based backport to `release-0.8`, triggered by a label in #841. The narinfo hash was updated in #840 to reflect the upstream definition in NixOS/nix#15004 and so the server should only allow narinfo requests that match this pattern.

The narinfo hash was updated in #840 to reflect the upstream definition
in NixOS/nix#15004 and so the server should only allow narinfo requests
that match this pattern.