Skip to content

Commit 3bccc01

Browse files
authored
Merge pull request #70 from git-pkgs/add-hex-cooldown
Add cooldown support for Hex
2 parents 9708fe3 + 43a164e commit 3bccc01

5 files changed

Lines changed: 637 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Currently works with npm, PyPI, pub.dev, Composer, and Cargo, which all include
3030
| Cargo | Rust | Yes | ✓ |
3131
| RubyGems | Ruby | Yes | ✓ |
3232
| Go proxy | Go | | ✓ |
33-
| Hex | Elixir | | ✓ |
33+
| Hex | Elixir | Yes* | ✓ |
3434
| pub.dev | Dart | Yes | ✓ |
3535
| PyPI | Python | Yes | ✓ |
3636
| Maven | Java | | ✓ |
@@ -52,6 +52,8 @@ Currently works with npm, PyPI, pub.dev, Composer, and Cargo, which all include
5252

5353
Cooldown requires publish timestamps in metadata. Registries without a "Yes" in the cooldown column either don't expose timestamps or haven't been wired up yet.
5454

55+
\* Hex cooldown requires disabling registry signature verification (`HEX_NO_VERIFY_REPO_ORIGIN=1`) since the proxy re-encodes the protobuf payload.
56+
5557
## Quick Start
5658

5759
```bash

docs/configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ Durations support days (`7d`), hours (`48h`), and minutes (`30m`). Set to `0` to
209209

210210
Resolution order: package override, then ecosystem override, then global default. This lets you set a conservative default while exempting trusted packages.
211211

212-
Currently supported for npm, PyPI, pub.dev, Composer, Cargo, NuGet, Conda, and RubyGems. These ecosystems include publish timestamps in their metadata.
212+
Currently supported for npm, PyPI, pub.dev, Composer, Cargo, NuGet, Conda, RubyGems, and Hex. These ecosystems include publish timestamps in their metadata.
213+
214+
Note: Hex cooldown requires disabling registry signature verification since the proxy re-encodes the protobuf payload without the original signature. Set `HEX_NO_VERIFY_REPO_ORIGIN=1` or configure your repo with `no_verify: true`.
213215

214216
## Docker
215217

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ require (
1717
github.com/prometheus/client_model v0.6.2
1818
github.com/swaggo/swag v1.16.6
1919
gocloud.dev v0.45.0
20+
google.golang.org/protobuf v1.36.11
2021
gopkg.in/yaml.v3 v3.0.1
2122
modernc.org/sqlite v1.47.0
2223
)
@@ -284,7 +285,6 @@ require (
284285
google.golang.org/api v0.269.0 // indirect
285286
google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171 // indirect
286287
google.golang.org/grpc v1.79.1 // indirect
287-
google.golang.org/protobuf v1.36.11 // indirect
288288
gopkg.in/ini.v1 v1.67.0 // indirect
289289
gopkg.in/yaml.v2 v2.4.0 // indirect
290290
honnef.co/go/tools v0.7.0 // indirect

0 commit comments

Comments
 (0)