Skip to content
Merged
4 changes: 2 additions & 2 deletions .github/workflows/publish-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
name: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: "actions/checkout@11d5960a326750d5838078e36cf38b85af677262"
with:
# The crate that ships is the crate the release was cut from.
ref: ${{ github.event.release.tag_name || github.ref }}
Expand All @@ -40,7 +40,7 @@ jobs:
rustup toolchain install stable --profile minimal --no-self-update
rustup default stable

- uses: Swatinem/rust-cache@v2
- uses: "Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0"

- name: Check the version matches the release
if: ${{ github.event_name == 'release' }}
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/publish-eggpass-auth-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
outputs:
version: ${{ steps.version.outputs.value }}
steps:
- uses: actions/checkout@v4
- uses: "actions/checkout@11d5960a326750d5838078e36cf38b85af677262"
with:
ref: ${{ github.event.release.tag_name || github.ref }}

- uses: actions/setup-python@v6
- uses: "actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1"
with:
python-version: "3.11"

Expand Down Expand Up @@ -104,11 +104,11 @@ jobs:
manylinux: "off"
interpreter: python
steps:
- uses: actions/checkout@v4
- uses: "actions/checkout@11d5960a326750d5838078e36cf38b85af677262"
with:
ref: ${{ github.event.release.tag_name || github.ref }}

- uses: actions/setup-python@v6
- uses: "actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1"
with:
python-version: "3.11"

Expand All @@ -117,7 +117,7 @@ jobs:
working-directory: python/eggpass-auth

- name: Build stable-ABI wheel
uses: PyO3/maturin-action@v1
uses: "PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b"
with:
maturin-version: v1.16.0
manylinux: ${{ matrix.platform.manylinux }}
Expand All @@ -126,7 +126,7 @@ jobs:
--out dist
working-directory: python/eggpass-auth

- uses: actions/upload-artifact@v4
- uses: "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02"
with:
name: python-dist-${{ matrix.platform.name }}
path: python/eggpass-auth/dist/*.whl
Expand All @@ -138,11 +138,11 @@ jobs:
needs: verify-source
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: "actions/checkout@11d5960a326750d5838078e36cf38b85af677262"
with:
ref: ${{ github.event.release.tag_name || github.ref }}

- uses: actions/setup-python@v6
- uses: "actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1"
with:
python-version: "3.11"

Expand All @@ -162,7 +162,7 @@ jobs:
run: maturin sdist --out dist
working-directory: python/eggpass-auth

- uses: actions/upload-artifact@v4
- uses: "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02"
with:
name: python-dist-sdist
path: python/eggpass-auth/dist/*.tar.gz
Expand All @@ -174,11 +174,11 @@ jobs:
needs: [verify-source, build-wheels, build-sdist]
runs-on: ubuntu-24.04
steps:
- uses: actions/setup-python@v6
- uses: "actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1"
with:
python-version: "3.11"

- uses: actions/download-artifact@v4
- uses: "actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093"
with:
pattern: python-dist-*
path: dist
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
print(f"Validated {len(wheels)} wheels and {sdist.name}")
PY

- uses: actions/upload-artifact@v4
- uses: "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02"
with:
name: verified-distributions
path: dist/*
Expand All @@ -315,12 +315,12 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
- uses: "actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093"
with:
name: verified-distributions
path: dist

- name: Publish with PyPI Trusted Publishing
uses: pypa/gh-action-pypi-publish@release/v1
uses: "pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086"
with:
packages-dir: dist
4 changes: 2 additions & 2 deletions .github/workflows/publish-eggpass-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
name: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: "actions/checkout@11d5960a326750d5838078e36cf38b85af677262"
with:
# Build the exact source associated with a published auth release.
ref: ${{ github.event.release.tag_name || github.ref }}
Expand All @@ -37,7 +37,7 @@ jobs:
rustup toolchain install stable --profile minimal --no-self-update
rustup default stable

- uses: Swatinem/rust-cache@v2
- uses: "Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0"

- name: Check the version matches the release tag
env:
Expand Down
33 changes: 31 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Notable changes to eggpass are listed here. The format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.1.4] - 2026-11-30

### Added

Expand All @@ -17,6 +17,9 @@ Notable changes to eggpass are listed here. The format follows
- Carry request fields with a mechanical Responses equivalent, including
`response_format` to `text.format`, and pass Responses-native tools through.
- Add an optional `server.max_body_bytes` setting, defaulting to 32 MiB.
- Add `server.head_timeout_seconds` and `server.body_stall_timeout_seconds`,
defaulting to 60 and 120 seconds, so a request that stalls part-way through
its head or body is closed.
- Add probe-gated routing for native media endpoints. A route is enabled only
after `eggpass probe media` records a provider-side success for it, so an
unprobed path still answers `404`.
Expand All @@ -43,6 +46,10 @@ Notable changes to eggpass are listed here. The format follows
`user`.
- Answer a chat or Responses request without a readable `model` with
`400 missing_model` instead of routing it to the default provider.
- Split `EDITOR` and `VISUAL` into a program and its arguments, so values such
as `code --wait` and `vim -f` launch the editor that was named.
- Resolve one `eggfetch-core` 0.4.1 across the CLI, `eggpass-auth` and the
Python bindings instead of mixing the lines the updater pulls in.

### Fixed

Expand All @@ -51,6 +58,27 @@ Notable changes to eggpass are listed here. The format follows
- Fail an answer or stream whose content cannot be expressed in the Chat
Completions shape with `unmappable_output_item` instead of empty content.
- Name the limit and the inline-media cause in the `413` response.
- Refuse a request whose body framing is ambiguous instead of guessing. An
unparseable `Content-Length` used to mean "no body", so its bytes were read
as the next request line and could carry a second request past the gate.
- Close a request that stalls part-way through its head or body. The idle
timeout reset on every read, so a peer sending one byte at a time was never
closed: the head now has one absolute budget measured from its first byte,
and a body has a no-progress budget that leaves a slow upload alone.
- Grow a body buffer with the bytes that arrive rather than reserving the
announced length before any of it has been sent, and reject a body that
ends early instead of accepting a truncated one.

### Security

- Pin every third-party action in the three publish workflows to the commit
its tag pointed at, so a moved tag cannot change what a release runs.

### Notes

- The server has no unauthenticated state. With neither an issued key nor a
config `api_key` it refuses every request with `401 no_api_key`, and the
documentation now says so instead of describing an open loopback endpoint.

## [0.1.3] - 2026-11-22

Expand Down Expand Up @@ -162,7 +190,8 @@ First release of the local OpenAI-compatible proxy for Grok and ChatGPT.
- The project was renamed from `grokproxy` to `eggpass`. Existing data is
copied to `~/.config/eggpass`; the old directory is left in place.

[Unreleased]: https://github.com/eggstack/eggpass/compare/v0.1.3...HEAD
[Unreleased]: https://github.com/eggstack/eggpass/compare/v0.1.4...HEAD
[0.1.4]: https://github.com/eggstack/eggpass/compare/v0.1.3...v0.1.4
[0.1.3]: https://github.com/eggstack/eggpass/compare/v0.1.2...v0.1.3
[0.1.2]: https://github.com/eggstack/eggpass/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/eggstack/eggpass/compare/v0.1.0...v0.1.1
Expand Down
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "3"

[package]
name = "eggpass"
version = "0.1.3"
version = "0.1.4"
edition = "2024"
rust-version = "1.89"
description = "A lightweight, local, OpenAI-compatible proxy for Grok and ChatGPT, authenticated with your own subscription over OAuth"
Expand Down Expand Up @@ -33,7 +33,7 @@ include = [
]

[dependencies]
eggpass-auth = { version = "0.1.1", path = "crates/eggpass-auth" }
eggpass-auth = { version = "0.1.2", path = "crates/eggpass-auth" }
base64 = "0.23.1"
# Exact Eggress reverse-client wire/API line used by EggPool.
eggress-protocol-reverse = "=1.0.12"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ settings, timeouts, and files on disk.
| [Commands](docs/commands.md) | Command syntax, options, and effects |
| [Client setup](docs/client-setup.md) | OpenAI SDK, OpenCode, Cline, Continue, and curl |
| [Configuration](docs/configuration.md) | Config settings and files |
| [EggPool](docs/eggpool.md) | Reverse-tunnel enrollment contract and security model |
| [How it works](docs/how-it-works.md) | Routing, translation, authentication, and streaming |
| [Updating](docs/updating.md) | Update verification and rollback |
| [Troubleshooting](docs/troubleshooting.md) | Common errors and fixes |
Expand Down
4 changes: 2 additions & 2 deletions crates/eggpass-auth/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "eggpass-auth"
version = "0.1.1"
version = "0.1.2"
edition = "2024"
rust-version = "1.89"
description = "Async OAuth authentication flows for applications using Eggfetch"
Expand All @@ -14,7 +14,7 @@ include = ["/src", "/README.md", "/LICENSE", "/examples"]

[dependencies]
base64 = "0.23.1"
eggfetch-core = { version = "0.4.0", default-features = false, features = ["native-http1", "tls-rustls"] }
eggfetch-core = { version = "0.4.1", default-features = false, features = ["native-http1", "tls-rustls"] }
form_urlencoded = "1.2.2"
http = "1"
http-body-util = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ The config file's `api_key`, if set, remains accepted alongside issued keys. Rev
eggpass edit
```

Opens the config in `$EDITOR`, then `$VISUAL`, then `helix`, `vim`, or `nano`, falling back to `vi`. The config is validated after the editor exits.
Opens the config in `$EDITOR`, then `$VISUAL`, then `helix`, `vim`, or `nano`, falling back to `vi`. A value may carry arguments — `EDITOR="code -w"` — which are split from the program and never run through a shell; an unbalanced quote is reported instead of being skipped. The config is validated after the editor exits.

**Exit code:** `0` if the edited config is valid, `1` if the editor fails or validation fails.

Expand Down
6 changes: 5 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ max_connections = 256
max_body_bytes = 33554432
idle_timeout_seconds = 120
write_timeout_seconds = 600
head_timeout_seconds = 60
body_stall_timeout_seconds = 120

[update]
repository = "eggstack/eggpass"
Expand Down Expand Up @@ -60,8 +62,10 @@ default_provider = "xai"
| `log_level` | `info` | `error`, `warn`, `info`, or `debug`. |
| `allow_privileged_port` | `false` | Must be `true` to use a port below 1024. |
| `timeouts.*` | See example | Upstream connection, whole-request, and response-body time limits in seconds. |
| `server.*` | See example | Local connection limit and idle/write timeouts. |
| `server.*` | See example | Local connection limit, idle/write timeouts, and request read deadlines. |
| `server.max_body_bytes` | `33554432` | Largest request body in bytes, including inline base64 media. Clamped to 1–256 MiB; a larger body answers `413 body_too_large`. |
| `server.head_timeout_seconds` | `60` | Budget for the whole request head, counted from its first byte. A head that misses it is closed without a response. Clamped to at least 1. |
| `server.body_stall_timeout_seconds` | `120` | How long a body read may make no progress before the connection is closed. Resets with every read that arrives, so a slow upload that keeps sending still finishes. Clamped to at least 1. |
| `providers.*.enabled` | `true` | Disable a provider without deleting its stored credentials. Routing to a disabled provider will not serve requests. |
| `providers.xai.upstream` | `api` | `api` uses `https://api.x.ai/v1`; `build` uses `https://cli-chat-proxy.grok.com/v1`. |
| `routing.default_provider` | `xai` | Provider used when no model prefix matches. |
Expand Down
13 changes: 8 additions & 5 deletions docs/plans/cli-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -614,11 +614,11 @@ eggpass key revoke --all # revoke every key
whenever the file changes underneath it, so `add` and `revoke` need no
restart. The store has exactly one writer — this command — so the file is
never contended.
7. **Authentication is required when there is a key.** While the store is empty
and the config's `api_key` is empty, the endpoint accepts anything, which is
the safe default for a loopback socket. The moment a key exists, a key is
required. Revoking the last one puts the endpoint back to open, and the
command says so.
7. **Authentication is required, and there is no open state.** A server with
neither an issued key nor a config `api_key` refuses every request with
`401 no_api_key`, and `eggpass run` will not start in that state. The moment
a key exists, a key is required. Revoking the last one closes the endpoint
again rather than opening it, and the command says so.
8. **The config's `api_key` still works.** It is the older, hand-written way
to set one key, and it is accepted alongside the issued ones. It is not
removed, because a configuration file that suddenly stops parsing is worse
Expand Down Expand Up @@ -865,6 +865,9 @@ body_seconds = 1800 # the ceiling on reading the response body
max_connections = 256 # simultaneous connections; beyond it the server answers 503
idle_timeout_seconds = 120 # how long a kept-alive connection may sit idle
write_timeout_seconds = 600 # how long a single write may stall
# The head budget is absolute; the body budget resets with every read.
head_timeout_seconds = 60
body_stall_timeout_seconds = 120

[update]
repository = "eggstack/eggpass"
Expand Down
7 changes: 7 additions & 0 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@ crates.io publication runs only after a human publishes a GitHub release for
that exact tag. Publish the crate before the next Eggpass crates.io release
that depends on it, so Cargo can resolve the dependency.

The order is enforced, not advisory. Until the new `eggpass-auth` version is
on crates.io, `cargo package --locked -p eggpass` cannot select a version
for the requirement `eggpass-auth = "^X.Y.Z"`, because the packaged CLI must
resolve the published crate rather than the path dependency. That failure
means the order is wrong, not that the CLI is broken: release and publish
`eggpass-auth` first, then run the CLI release checks again.

### Python distribution

The Python package in `python/eggpass-auth` has its own version and uses the
Expand Down
Loading
Loading