Skip to content

Commit ccd74cb

Browse files
committed
refactor: update crate name prefixes
1 parent bfd9e3a commit ccd74cb

File tree

166 files changed

+943
-981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+943
-981
lines changed

.config/nextest.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Nextest Configuration for InferaDB Management API
1+
# Nextest Configuration for InferaDB Control
22
# cargo-nextest is a next-generation test runner for Rust
33
#
44
# Installation:
@@ -7,7 +7,7 @@
77
# Usage:
88
# cargo nextest run # Run all tests
99
# cargo nextest run --all-features # Run with all features
10-
# cargo nextest run -p inferadb-management-core # Run specific crate tests
10+
# cargo nextest run -p inferadb-control-core # Run specific crate tests
1111

1212
[profile.default]
1313
# Number of retries for failing tests (0 = no retries)
@@ -52,7 +52,7 @@ slow-timeout = { period = "120s", terminate-after = 5 }
5252
# JUnit XML output for CI
5353
[profile.ci.junit]
5454
path = "target/nextest/ci/junit.xml"
55-
report-name = "InferaDB Management API Tests (CI)"
55+
report-name = "InferaDB Control Tests (CI)"
5656
store-success-output = false
5757
store-failure-output = true
5858

@@ -78,7 +78,7 @@ slow-timeout = { period = "120s", terminate-after = 3 }
7878
# JUnit XML output configuration
7979
[profile.default.junit]
8080
path = "target/nextest/junit.xml"
81-
report-name = "InferaDB Management API Tests"
81+
report-name = "InferaDB Control Tests"
8282
store-success-output = false
8383
store-failure-output = true
8484

.env.example

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# InferaDB Management API Environment Variables
22
# Copy this file to .env and update with your values
33
#
4-
# All environment variables use the INFERADB_MGMT__ prefix with double
4+
# All environment variables use the INFERADB_CTRL__ prefix with double
55
# underscores (__) as separators for nested config. Environment variables
66
# override values from config.yaml.
77

@@ -12,94 +12,94 @@
1212
# Base URL for email verification and password reset links
1313
# Development: http://localhost:9090
1414
# Production: https://app.inferadb.com
15-
INFERADB_MGMT__FRONTEND_BASE_URL=http://localhost:9090
15+
INFERADB_CTRL__FRONTEND_BASE_URL=http://localhost:9090
1616

1717
# =============================================================================
1818
# Server
1919
# =============================================================================
2020

2121
# Public REST API server address (client-facing)
22-
INFERADB_MGMT__SERVER__PUBLIC_REST=127.0.0.1:9090
22+
INFERADB_CTRL__SERVER__PUBLIC_REST=127.0.0.1:9090
2323

2424
# Public gRPC API server address
25-
INFERADB_MGMT__SERVER__PUBLIC_GRPC=127.0.0.1:9091
25+
INFERADB_CTRL__SERVER__PUBLIC_GRPC=127.0.0.1:9091
2626

2727
# Internal/Private REST API server address (server-to-server, JWKS endpoint)
28-
INFERADB_MGMT__SERVER__PRIVATE_REST=0.0.0.0:9092
28+
INFERADB_CTRL__SERVER__PRIVATE_REST=0.0.0.0:9092
2929

3030
# Worker threads for async runtime
31-
INFERADB_MGMT__SERVER__WORKER_THREADS=4
31+
INFERADB_CTRL__SERVER__WORKER_THREADS=4
3232

3333
# =============================================================================
3434
# Storage
3535
# =============================================================================
3636

3737
# Storage backend: "memory" or "foundationdb"
38-
INFERADB_MGMT__STORAGE__BACKEND=memory
38+
INFERADB_CTRL__STORAGE__BACKEND=memory
3939

4040
# FoundationDB cluster file (required if using foundationdb backend)
41-
# INFERADB_MGMT__STORAGE__FDB_CLUSTER_FILE=/etc/foundationdb/fdb.cluster
41+
# INFERADB_CTRL__STORAGE__FDB_CLUSTER_FILE=/etc/foundationdb/fdb.cluster
4242

4343
# =============================================================================
4444
# Authentication
4545
# =============================================================================
4646

4747
# Key encryption secret for encrypting private keys at rest (REQUIRED in production)
4848
# Generate with: openssl rand -base64 32
49-
INFERADB_MGMT__AUTH__KEY_ENCRYPTION_SECRET=change-me-in-production
49+
INFERADB_CTRL__AUTH__KEY_ENCRYPTION_SECRET=change-me-in-production
5050

5151
# WebAuthn configuration
52-
INFERADB_MGMT__AUTH__WEBAUTHN__RP_ID=localhost
53-
INFERADB_MGMT__AUTH__WEBAUTHN__RP_NAME=InferaDB
54-
INFERADB_MGMT__AUTH__WEBAUTHN__ORIGIN=http://localhost:9090
52+
INFERADB_CTRL__AUTH__WEBAUTHN__RP_ID=localhost
53+
INFERADB_CTRL__AUTH__WEBAUTHN__RP_NAME=InferaDB
54+
INFERADB_CTRL__AUTH__WEBAUTHN__ORIGIN=http://localhost:9090
5555

5656
# =============================================================================
5757
# Email (SMTP)
5858
# =============================================================================
5959

60-
INFERADB_MGMT__EMAIL__SMTP_HOST=localhost
61-
INFERADB_MGMT__EMAIL__SMTP_PORT=1025
62-
# INFERADB_MGMT__EMAIL__SMTP_USERNAME=
63-
# INFERADB_MGMT__EMAIL__SMTP_PASSWORD=
64-
INFERADB_MGMT__EMAIL__FROM_EMAIL=noreply@inferadb.local
65-
INFERADB_MGMT__EMAIL__FROM_NAME=InferaDB
60+
INFERADB_CTRL__EMAIL__SMTP_HOST=localhost
61+
INFERADB_CTRL__EMAIL__SMTP_PORT=1025
62+
# INFERADB_CTRL__EMAIL__SMTP_USERNAME=
63+
# INFERADB_CTRL__EMAIL__SMTP_PASSWORD=
64+
INFERADB_CTRL__EMAIL__FROM_EMAIL=noreply@inferadb.local
65+
INFERADB_CTRL__EMAIL__FROM_NAME=InferaDB
6666

6767
# =============================================================================
6868
# Policy Service (InferaDB Server)
6969
# =============================================================================
7070

7171
# Base URL for policy service (without port)
72-
INFERADB_MGMT__POLICY_SERVICE__SERVICE_URL=http://localhost
72+
INFERADB_CTRL__POLICY_SERVICE__SERVICE_URL=http://localhost
7373

7474
# gRPC port for policy engine communication
75-
INFERADB_MGMT__POLICY_SERVICE__GRPC_PORT=8081
75+
INFERADB_CTRL__POLICY_SERVICE__GRPC_PORT=8081
7676

7777
# Internal HTTP port for webhooks and JWKS
78-
INFERADB_MGMT__POLICY_SERVICE__INTERNAL_PORT=8082
78+
INFERADB_CTRL__POLICY_SERVICE__INTERNAL_PORT=8082
7979

8080
# =============================================================================
8181
# ID Generation
8282
# =============================================================================
8383

8484
# Worker ID for Snowflake ID generation (0-1023)
8585
# MUST be unique per instance in multi-instance deployments
86-
INFERADB_MGMT__ID_GENERATION__WORKER_ID=0
86+
INFERADB_CTRL__ID_GENERATION__WORKER_ID=0
8787

8888
# =============================================================================
8989
# Observability
9090
# =============================================================================
9191

92-
INFERADB_MGMT__OBSERVABILITY__LOG_LEVEL=info
93-
INFERADB_MGMT__OBSERVABILITY__METRICS_ENABLED=true
94-
INFERADB_MGMT__OBSERVABILITY__TRACING_ENABLED=false
95-
# INFERADB_MGMT__OBSERVABILITY__OTLP_ENDPOINT=http://localhost:4317
92+
INFERADB_CTRL__OBSERVABILITY__LOG_LEVEL=info
93+
INFERADB_CTRL__OBSERVABILITY__METRICS_ENABLED=true
94+
INFERADB_CTRL__OBSERVABILITY__TRACING_ENABLED=false
95+
# INFERADB_CTRL__OBSERVABILITY__OTLP_ENDPOINT=http://localhost:4317
9696

9797
# =============================================================================
9898
# Cache Invalidation
9999
# =============================================================================
100100

101101
# Webhook timeout in milliseconds
102-
INFERADB_MGMT__CACHE_INVALIDATION__TIMEOUT_MS=5000
102+
INFERADB_CTRL__CACHE_INVALIDATION__TIMEOUT_MS=5000
103103

104104
# Number of retry attempts on webhook failure (0 = fire-and-forget)
105-
INFERADB_MGMT__CACHE_INVALIDATION__RETRY_ATTEMPTS=0
105+
INFERADB_CTRL__CACHE_INVALIDATION__RETRY_ATTEMPTS=0

.tarpaulin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tarpaulin Configuration for InferaDB Management API
1+
# Tarpaulin Configuration for InferaDB Control
22
# Code coverage testing configuration
33
#
44
# Usage:
@@ -17,7 +17,7 @@ out = ["Html", "Xml"]
1717
exclude = ["*/tests/*", "*/test_fixtures/*", "*/benches/*"]
1818

1919
# Exclude files from coverage
20-
exclude-files = ["crates/*/tests/*", "crates/inferadb-management-test-fixtures/*"]
20+
exclude-files = ["crates/*/tests/*", "crates/inferadb-control-test-fixtures/*"]
2121

2222
# Run type
2323
run-types = ["Tests"]

AGENTS.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# InferaDB Management API
1+
# InferaDB Control
22

33
Control plane for InferaDB: user authentication, multi-tenant organization management, vault access control, and token issuance.
44

5-
**Binary:** `inferadb-management` (REST :3000, gRPC :3001)
5+
**Binary:** `inferadb-control` (REST :3000, gRPC :3001)
66

77
## Quick Commands
88

99
```bash
1010
# Build & Run
1111
cargo build # Debug build
1212
cargo build --release # Release build
13-
cargo run --bin inferadb-management # Run server
14-
cargo watch -x 'run --bin inferadb-management' # Dev with auto-reload
13+
cargo run --bin inferadb-control # Run server
14+
cargo watch -x 'run --bin inferadb-control' # Dev with auto-reload
1515

1616
# Testing
1717
cargo test # All tests
18-
cargo test --package inferadb-management-core # Specific crate
18+
cargo test --package inferadb-control-core # Specific crate
1919
cargo test test_create_vault # Single test
2020
cargo test -- --nocapture # With output
2121

@@ -29,14 +29,14 @@ make check # All checks
2929

3030
### Workspace Structure
3131

32-
| Crate | Purpose |
33-
| ----------------------------------- | -------------------------------------- |
34-
| `inferadb-management` | Main binary entry point |
35-
| `inferadb-management-api` | REST/gRPC handlers, middleware, routes |
36-
| `inferadb-management-core` | Business logic, entities, repositories |
37-
| `inferadb-management-storage` | Storage backends (Memory, FDB planned) |
38-
| `inferadb-management-grpc` | Server API gRPC client |
39-
| `inferadb-management-test-fixtures` | Test utilities |
32+
| Crate | Purpose |
33+
| --------------------------------- | -------------------------------------- |
34+
| `inferadb-control` | Main binary entry point |
35+
| `inferadb-control-api` | REST/gRPC handlers, middleware, routes |
36+
| `inferadb-control-core` | Business logic, entities, repositories |
37+
| `inferadb-control-storage` | Storage backends (Memory, FDB planned) |
38+
| `inferadb-control-engine-client` | Engine API gRPC client |
39+
| `inferadb-control-test-fixtures` | Test utilities |
4040

4141
### Layered Architecture
4242

@@ -148,18 +148,18 @@ pub struct VaultToken {
148148

149149
## Configuration
150150

151-
**Env prefix:** `INFERADB_MGMT__` (double underscore separator)
151+
**Env prefix:** `INFERADB_CTRL__` (double underscore separator)
152152

153153
```bash
154154
# Required secrets
155-
export INFERADB_MGMT__AUTH__KEY_ENCRYPTION_SECRET=$(openssl rand -base64 32)
155+
export INFERADB_CTRL__AUTH__KEY_ENCRYPTION_SECRET=$(openssl rand -base64 32)
156156

157157
# Storage backend (memory is default)
158-
export INFERADB_MGMT__STORAGE__BACKEND=memory
158+
export INFERADB_CTRL__STORAGE__BACKEND=memory
159159

160160
# Ports
161-
export INFERADB_MGMT__SERVER__HTTP_PORT=3000
162-
export INFERADB_MGMT__SERVER__GRPC_PORT=3001
161+
export INFERADB_CTRL__SERVER__HTTP_PORT=3000
162+
export INFERADB_CTRL__SERVER__GRPC_PORT=3001
163163
```
164164

165165
**Precedence:** config.yaml < environment variables
@@ -189,9 +189,9 @@ let cookie = extract_session_cookie(response.headers());
189189

190190
### Test Organization
191191

192-
- Integration tests: `crates/inferadb-management-api/tests/`
192+
- Integration tests: `crates/inferadb-control-api/tests/`
193193
- Unit tests: `#[cfg(test)]` modules in source files
194-
- Fixtures: `crates/inferadb-management-test-fixtures/`
194+
- Fixtures: `crates/inferadb-control-test-fixtures/`
195195

196196
## Multi-Instance (FDB Required)
197197

CLAUDE.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# InferaDB Management API
1+
# InferaDB Control
22

33
Control plane for InferaDB: user authentication, multi-tenant organization management, vault access control, and token issuance.
44

5-
**Binary:** `inferadb-management` (REST :3000, gRPC :3001)
5+
**Binary:** `inferadb-control` (REST :3000, gRPC :3001)
66

77
## Quick Commands
88

99
```bash
1010
# Build & Run
1111
cargo build # Debug build
1212
cargo build --release # Release build
13-
cargo run --bin inferadb-management # Run server
14-
cargo watch -x 'run --bin inferadb-management' # Dev with auto-reload
13+
cargo run --bin inferadb-control # Run server
14+
cargo watch -x 'run --bin inferadb-control' # Dev with auto-reload
1515

1616
# Testing
1717
cargo test # All tests
18-
cargo test --package inferadb-management-core # Specific crate
18+
cargo test --package inferadb-control-core # Specific crate
1919
cargo test test_create_vault # Single test
2020
cargo test -- --nocapture # With output
2121

@@ -29,14 +29,14 @@ make check # All checks
2929

3030
### Workspace Structure
3131

32-
| Crate | Purpose |
33-
| ----------------------------------- | -------------------------------------- |
34-
| `inferadb-management` | Main binary entry point |
35-
| `inferadb-management-api` | REST/gRPC handlers, middleware, routes |
36-
| `inferadb-management-core` | Business logic, entities, repositories |
37-
| `inferadb-management-storage` | Storage backends (Memory, FDB planned) |
38-
| `inferadb-management-grpc` | Server API gRPC client |
39-
| `inferadb-management-test-fixtures` | Test utilities |
32+
| Crate | Purpose |
33+
| --------------------------------- | -------------------------------------- |
34+
| `inferadb-control` | Main binary entry point |
35+
| `inferadb-control-api` | REST/gRPC handlers, middleware, routes |
36+
| `inferadb-control-core` | Business logic, entities, repositories |
37+
| `inferadb-control-storage` | Storage backends (Memory, FDB planned) |
38+
| `inferadb-control-engine-client` | Engine API gRPC client |
39+
| `inferadb-control-test-fixtures` | Test utilities |
4040

4141
### Layered Architecture
4242

@@ -148,18 +148,18 @@ pub struct VaultToken {
148148

149149
## Configuration
150150

151-
**Env prefix:** `INFERADB_MGMT__` (double underscore separator)
151+
**Env prefix:** `INFERADB_CTRL__` (double underscore separator)
152152

153153
```bash
154154
# Required secrets
155-
export INFERADB_MGMT__AUTH__KEY_ENCRYPTION_SECRET=$(openssl rand -base64 32)
155+
export INFERADB_CTRL__AUTH__KEY_ENCRYPTION_SECRET=$(openssl rand -base64 32)
156156

157157
# Storage backend (memory is default)
158-
export INFERADB_MGMT__STORAGE__BACKEND=memory
158+
export INFERADB_CTRL__STORAGE__BACKEND=memory
159159

160160
# Ports
161-
export INFERADB_MGMT__SERVER__HTTP_PORT=3000
162-
export INFERADB_MGMT__SERVER__GRPC_PORT=3001
161+
export INFERADB_CTRL__SERVER__HTTP_PORT=3000
162+
export INFERADB_CTRL__SERVER__GRPC_PORT=3001
163163
```
164164

165165
**Precedence:** config.yaml < environment variables
@@ -189,9 +189,9 @@ let cookie = extract_session_cookie(response.headers());
189189

190190
### Test Organization
191191

192-
- Integration tests: `crates/inferadb-management-api/tests/`
192+
- Integration tests: `crates/inferadb-control-api/tests/`
193193
- Unit tests: `#[cfg(test)]` modules in source files
194-
- Fixtures: `crates/inferadb-management-test-fixtures/`
194+
- Fixtures: `crates/inferadb-control-test-fixtures/`
195195

196196
## Multi-Instance (FDB Required)
197197

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Contributing to InferaDB Management API
1+
# Contributing to InferaDB Control
22

3-
Thank you for your interest in contributing to the InferaDB Management API! This document provides guidelines and best practices for contributing to this project.
3+
Thank you for your interest in contributing to the InferaDB Control! This document provides guidelines and best practices for contributing to this project.
44

55
## Getting Started
66

@@ -84,7 +84,7 @@ mod tests {
8484

8585
- Use the `Result` type for operations that can fail
8686
- Provide meaningful error messages
87-
- Use the error types defined in `inferadb-management-core::error`
87+
- Use the error types defined in `inferadb-control-core::error`
8888

8989
#### Documentation
9090

@@ -227,7 +227,7 @@ Before submitting a PR, ensure:
227227
cargo test
228228

229229
# Specific package
230-
cargo test --package inferadb-management-core
230+
cargo test --package inferadb-control-core
231231

232232
# Specific test
233233
cargo test test_name

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[workspace]
22
members = [
3-
"crates/inferadb-management",
4-
"crates/inferadb-management-api",
5-
"crates/inferadb-management-core",
6-
"crates/inferadb-management-server-client",
7-
"crates/inferadb-management-storage",
8-
"crates/inferadb-management-test-fixtures",
9-
"crates/inferadb-management-types",
3+
"crates/inferadb-control",
4+
"crates/inferadb-control-api",
5+
"crates/inferadb-control-core",
6+
"crates/inferadb-control-engine-client",
7+
"crates/inferadb-control-storage",
8+
"crates/inferadb-control-test-fixtures",
9+
"crates/inferadb-control-types",
1010
]
1111
resolver = "2"
1212

0 commit comments

Comments
 (0)