Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: joncode/vibe-devops-rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6275d5c
Choose a base ref
...
head repository: joncode/vibe-devops-rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 48298cc
Choose a head ref
  • 4 commits
  • 43 files changed
  • 1 contributor

Commits on Feb 5, 2026

  1. feat: Add soft-delete and hex_id to all tables

    Phase 1 of overnight work queue:
    
    Soft-Delete:
    - Added deleted_at column to all tables that were missing it
    - Updated all repository queries to scope by deleted_at IS NULL
    - Converted hard-delete operations to soft-delete
    - Cleanup functions now soft-delete instead of DELETE
    
    Hex ID:
    - Added hex_id module with HexId trait (src/models/hex_id.rs)
    - Each model defines its own PREFIX constant (no case statements)
    - Safe charset: a-k, m-z, 0, 2-9 (34 chars, no l/1 confusion)
    - Format: {prefix}_{10 random chars}
    - Prefixes: usr_, sid_, pwd_, stk_, rtk_
    - API responses now use hex_id as public 'id' field
    - Added find_by_hex_id methods to repositories
    
    Migration:
    - 003_soft_delete_and_hex_id.sql adds columns and backfills existing records
    
    All 7 hex_id unit tests pass.
    
    Based on Ruby gist: https://gist.github.com/joncode/a39791fdcdd7c19a695e3e6e7af16d7e
    joncode committed Feb 5, 2026
    Configuration menu
    Copy the full SHA
    128b19e View commit details
    Browse the repository at this point in the history
  2. docs: Add 5 specs from Notion VIBE CODE INFRA page

    Phase 3 of overnight work queue:
    
    Specs organized from Notion toggle lists:
    1. Deployer Agent - GitOps orchestration layer
    2. Git Push CLI - Heroku-style deployment flow
    3. Claude Agent Deployment - Claude AI with structured tools
    4. ChatGPT Agent Deployment - OpenAI agents with tool calling
    5. Server Infrastructure - k3s, GitOps, multi-env setup
    
    These define the implementation roadmap for the Manifest
    deployment platform. Next: spawn agents to implement each spec.
    joncode committed Feb 5, 2026
    Configuration menu
    Copy the full SHA
    2121191 View commit details
    Browse the repository at this point in the history
  3. feat(claude-agent): Add service accounts and API key usage tables

    This migration adds:
    - app_service_accounts: Service accounts for programmatic API access
      - hex_id for public-facing identifiers
      - Argon2 hashed API keys with prefix for lookup
      - JSONB permissions array for scopes
      - Per-account rate limiting
      - Soft delete support
    
    - app_api_key_usage: Audit trail for API calls
      - Tracks endpoint, method, status, response time
      - Links to service accounts
      - Soft delete support
    
    Part of Claude Agent Deployment spec (03-claude-agent-deployment.md)
    joncode committed Feb 5, 2026
    Configuration menu
    Copy the full SHA
    cb48e80 View commit details
    Browse the repository at this point in the history
  4. feat(claude-agent): Implement service accounts for programmatic API a…

    …ccess
    
    This implements the Claude Agent Deployment spec with:
    
    Models:
    - ServiceAccount: hex_id, Argon2 hashed API keys, JSONB permissions, rate limits
    - ApiKeyUsage: Audit trail for API calls with response times and status codes
    - PermissionScope enum with scope hierarchy (admin implies all, etc.)
    
    Repositories:
    - ServiceAccountRepository: CRUD with soft-delete, prefix-based key lookup
    - ApiKeyUsageRepository: Usage tracking and statistics aggregation
    
    Services:
    - api_key: Secure key generation (vds_prefix_secret format), Argon2 hashing
    
    API:
    - AuthenticatedServiceAccount extractor for Bearer token auth
    - Handlers: create, list, get, update, delete, rotate-key, usage stats
    - Routes at /api/v1/service-accounts/*
    
    Tests:
    - Permission hierarchy tests
    - API key generation and verification tests
    - hex_id generation tests
    
    Implements spec: dev-docs/specs/03-claude-agent-deployment.md
    joncode committed Feb 5, 2026
    Configuration menu
    Copy the full SHA
    48298cc View commit details
    Browse the repository at this point in the history
Loading