Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "src/**"
- "Cargo.toml"
- "Cargo.lock"
- "ghp/**"
- "obk/**"
- ".github/workflows/ci.yml"

env:
Expand All @@ -24,18 +24,18 @@ jobs:
with:
workspaces: |
.
ghp
obk
- name: cargo check
run: cargo check
- name: cargo clippy
run: cargo clippy -- -D warnings
- name: cargo test
run: cargo test
# ghp is a separate crate (not a workspace member): the git credential
# obk is a separate crate (not a workspace member): the git credential
# helper's fail-closed contract must be enforced in CI too.
- name: ghp clippy
- name: obk clippy
run: cargo clippy --all-targets -- -D warnings
working-directory: ghp
- name: ghp test
working-directory: obk
- name: obk test
run: cargo test
working-directory: ghp
working-directory: obk
10 changes: 5 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ jobs:
- name: e2e — MCP reverse proxy against hosted endpoint
env:
GITHUB_TOKEN: ${{ steps.app.outputs.token }}
# App-backend mode section (ghpool mints its own tokens)
# App-backend mode section (octobroker mints its own tokens)
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
run: ./scripts/e2e-mcp.sh
- name: Upload ghpool server log on failure
- name: Upload octobroker server log on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: ghpool-e2e-log
name: octobroker-e2e-log
path: |
ghpool-e2e.log
ghpool-e2e-app.log
octobroker-e2e.log
octobroker-e2e-app.log
if-no-files-found: ignore
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ jobs:
- name: Build
run: |
cargo build --release --target ${{ matrix.target }}
cd ghp && cargo build --release --target ${{ matrix.target }}
cd obk && cargo build --release --target ${{ matrix.target }}

- name: Package
shell: bash
env:
VERSION: ${{ steps.tag.outputs.version }}
run: |
NAME="ghpool-${VERSION}-${{ matrix.os }}-${{ matrix.arch }}"
NAME="octobroker-${VERSION}-${{ matrix.os }}-${{ matrix.arch }}"
mkdir -p dist
cp target/${{ matrix.target }}/release/ghpool${{ matrix.ext }} dist/
cp ghp/target/${{ matrix.target }}/release/ghp${{ matrix.ext }} dist/
cp target/${{ matrix.target }}/release/octobroker${{ matrix.ext }} dist/
cp obk/target/${{ matrix.target }}/release/obk${{ matrix.ext }} dist/
cp config.example.toml dist/
cd dist
tar czf ../${NAME}.tar.gz *
Expand All @@ -100,14 +100,14 @@ jobs:
VERSION: ${{ steps.tag.outputs.version }}
shell: bash
run: |
NAME="ghpool-${VERSION}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz"
NAME="octobroker-${VERSION}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz"
gh release upload "$TAG" "$NAME" --clobber

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ghpool-${{ matrix.os }}-${{ matrix.arch }}
path: ghpool-*.tar.gz
name: octobroker-${{ matrix.os }}-${{ matrix.arch }}
path: octobroker-*.tar.gz
retention-days: 7

docker:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/target
config.toml
/ghp/target
/obk/target
4 changes: 2 additions & 2 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
@@ -1,8 +1,8 @@
[package]
name = "ghpool"
name = "octobroker"
version = "0.6.0"
edition = "2021"
description = "Internal GitHub API proxy with PAT pooling and caching"
description = "Secure GitHub gateway for AI agents — MCP, REST, and git push via short-lived, repo-scoped App tokens"
license = "MIT"

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ RUN cargo build --release

FROM debian:trixie-slim
RUN apt-get update && apt-get install -y ca-certificates curl && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/ghpool /ghpool
COPY --from=builder /app/target/release/octobroker /octobroker
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD curl -sf http://localhost:8080/healthz || exit 1
ENTRYPOINT ["/ghpool"]
ENTRYPOINT ["/octobroker"]
Loading