Skip to content

Commit 934bc20

Browse files
committed
rename to siglog
1 parent 3ac980e commit 934bc20

15 files changed

Lines changed: 104 additions & 99 deletions

File tree

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
include:
2727
- image: server
2828
dockerfile: docker/Dockerfile.server
29-
binary: rust-tessera
29+
binary: siglog
3030
- image: witness
3131
dockerfile: docker/Dockerfile.witness
3232
binary: witness

Cargo.lock

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,23 @@ members = [".", "crates/conda-monitor"]
33
resolver = "2"
44

55
[package]
6-
name = "rust-tessera"
6+
name = "siglog"
77
version = "0.1.0"
88
edition = "2021"
99
description = "A minimal Tessera-compatible transparency log server"
1010
license = "BSD-3-Clause"
11+
repository = "https://github.com/prefix-dev/siglog"
12+
homepage = "https://github.com/prefix-dev/siglog"
13+
readme = "README.md"
14+
keywords = ["transparency", "log", "merkle", "sigstore", "tessera"]
15+
categories = ["cryptography", "command-line-utilities"]
1116

1217
[lib]
13-
name = "rust_tessera"
18+
name = "siglog"
1419
path = "src/lib.rs"
1520

1621
[[bin]]
17-
name = "rust-tessera"
22+
name = "siglog"
1823
path = "src/main.rs"
1924

2025
[[bin]]

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# rust-tessera
1+
# siglog
22

33
A Rust implementation of a [Tessera](https://github.com/transparency-dev/tessera)-compatible transparency log server for package distribution systems.
44

@@ -57,20 +57,20 @@ This implementation follows the [C2SP tlog-tiles](https://c2sp.org/tlog-tiles) s
5757
cargo build --release
5858

5959
# Binaries will be in ./target/release/
60-
# - rust-tessera (log server)
60+
# - siglog (log server)
6161
# - witness (witness server)
6262
```
6363

6464
## Configuration
6565

6666
### Environment Variables
6767

68-
#### Log Server (`rust-tessera`)
68+
#### Log Server (`siglog`)
6969

7070
| Variable | Description | Default |
7171
|----------|-------------|---------|
7272
| `LISTEN_ADDR` | Server listen address | `0.0.0.0:8080` |
73-
| `DATABASE_URL` | Database connection string | `sqlite:./tessera.db` |
73+
| `DATABASE_URL` | Database connection string | `sqlite:./siglog.db` |
7474
| `LOG_ORIGIN` | Log origin identifier | `transparency-log` |
7575
| `LOG_PRIVATE_KEY` | Ed25519 signing key (note format) | Required |
7676
| `STORAGE_BACKEND` | Storage type: `s3` or `fs` | `fs` |
@@ -162,11 +162,11 @@ This starts:
162162
# Start the log server
163163
export LOG_ORIGIN="my-transparency-log"
164164
export LOG_PRIVATE_KEY="PRIVATE+KEY+my-transparency-log+xxxx+..."
165-
export DATABASE_URL="sqlite:./tessera.db"
165+
export DATABASE_URL="sqlite:./siglog.db"
166166
export STORAGE_BACKEND="fs"
167167
export STORAGE_PATH="./tiles"
168168

169-
./target/release/rust-tessera
169+
./target/release/siglog
170170

171171
# In another terminal, start the witness
172172
export WITNESS_PRIVATE_KEY="PRIVATE+KEY+witness.example.com+xxxx+..."
@@ -268,7 +268,7 @@ See [DEPLOY.md](DEPLOY.md) for detailed Fly.io deployment instructions using Lit
268268
Quick start:
269269
```bash
270270
# Create app and storage
271-
fly apps create my-tessera-log
271+
fly apps create my-siglog
272272
fly storage create
273273
fly consul attach
274274
fly volumes create litefs --size 1
@@ -298,7 +298,7 @@ Run the log server:
298298
```bash
299299
docker run -d \
300300
-p 8080:8080 \
301-
-v tessera-data:/data \
301+
-v siglog-data:/data \
302302
-e LOG_ORIGIN="my-transparency-log" \
303303
-e LOG_PRIVATE_KEY="PRIVATE+KEY+..." \
304304
ghcr.io/OWNER/REPO-server:latest
@@ -318,8 +318,8 @@ docker run -d \
318318
To build images locally:
319319

320320
```bash
321-
docker build -f docker/Dockerfile.server -t rust-tessera-server .
322-
docker build -f docker/Dockerfile.witness -t rust-tessera-witness .
321+
docker build -f docker/Dockerfile.server -t siglog-server .
322+
docker build -f docker/Dockerfile.witness -t siglog-witness .
323323
```
324324

325325
### Kubernetes
@@ -343,7 +343,7 @@ spec:
343343
spec:
344344
containers:
345345
- name: log
346-
image: your-registry/rust-tessera:latest
346+
image: your-registry/siglog:latest
347347
ports:
348348
- containerPort: 8080
349349
env:
@@ -352,10 +352,10 @@ spec:
352352
- name: LOG_PRIVATE_KEY
353353
valueFrom:
354354
secretKeyRef:
355-
name: tessera-secrets
355+
name: siglog-secrets
356356
key: log-private-key
357357
- name: DATABASE_URL
358-
value: "postgres://user:pass@postgres:5432/tessera"
358+
value: "postgres://user:pass@postgres:5432/siglog"
359359
- name: STORAGE_BACKEND
360360
value: "s3"
361361
envFrom:

crates/conda-monitor/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ name = "conda-log-verify"
1818
path = "src/bin/verify.rs"
1919

2020
[dependencies]
21-
# Core tessera library
22-
rust-tessera = { path = "../.." }
21+
# Core siglog library
22+
siglog = { path = "../.." }
2323

2424
# Web framework
2525
axum = "0.8"

crates/conda-monitor/src/bin/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
99
use clap::Parser;
1010
use conda_monitor::{CondaMonitor, LogConfig, MonitoringWitness};
11-
use rust_tessera::checkpoint::CheckpointSigner;
12-
use rust_tessera::monitor::handlers;
11+
use siglog::checkpoint::CheckpointSigner;
12+
use siglog::monitor::handlers;
1313
use sea_orm::{ConnectOptions, ConnectionTrait, Database as SeaDatabase, DatabaseConnection};
1414
use sea_orm_migration::MigratorTrait;
1515
use std::sync::Arc;
@@ -63,7 +63,7 @@ async fn main() -> anyhow::Result<()> {
6363
.with_env_filter(
6464
tracing_subscriber::EnvFilter::from_default_env()
6565
.add_directive("conda_monitor=info".parse()?)
66-
.add_directive("rust_tessera=info".parse()?)
66+
.add_directive("siglog=info".parse()?)
6767
.add_directive("tower_http=debug".parse()?),
6868
)
6969
.init();
@@ -181,7 +181,7 @@ async fn connect_database(database_url: &str) -> anyhow::Result<DatabaseConnecti
181181
}
182182

183183
// Run migrations
184-
rust_tessera::migration::Migrator::up(&conn, None).await?;
184+
siglog::migration::Migrator::up(&conn, None).await?;
185185

186186
Ok(conn)
187187
}

crates/conda-monitor/src/conda.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
//! SHA256 associated with a filename) are stored verbatim for conflict reporting.
1313
1414
use async_trait::async_trait;
15-
use rust_tessera::error::Result;
16-
use rust_tessera::monitor::{
15+
use siglog::error::Result;
16+
use siglog::monitor::{
1717
ContentIndex, ContentIndexStore, Monitor, ValidationError, ValidationResult, ViolationKind,
1818
};
1919
use sea_orm::DatabaseConnection;
@@ -225,7 +225,7 @@ struct CondaEntry {
225225
#[cfg(test)]
226226
mod tests {
227227
use super::*;
228-
use rust_tessera::migration::Migrator;
228+
use siglog::migration::Migrator;
229229
use sea_orm::Database;
230230
use sea_orm_migration::MigratorTrait;
231231

crates/conda-monitor/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Conda Monitor - A monitoring witness for Conda package transparency logs.
22
//!
3-
//! This crate provides Conda-specific functionality for the rust-tessera transparency log:
3+
//! This crate provides Conda-specific functionality for the siglog transparency log:
44
//!
55
//! - [`CondaMonitor`]: Validates Conda package log entries
66
//! - [`normalize_repodata_entry`]: Normalizes repodata entries for consistent hashing
@@ -14,9 +14,9 @@ pub use conda::CondaMonitor;
1414
pub use mapfn::FilenameMapFn;
1515
pub use normalize::{normalize_repodata_entry, RepodataEntry};
1616

17-
// Re-export commonly used types from rust-tessera
18-
pub use rust_tessera::monitor::{
17+
// Re-export commonly used types from siglog
18+
pub use siglog::monitor::{
1919
ContentIndex, ContentIndexStore, Monitor, MonitorError, MonitoringWitness, ValidationError,
2020
ValidationResult,
2121
};
22-
pub use rust_tessera::witness::LogConfig;
22+
pub use siglog::witness::LogConfig;

crates/conda-monitor/src/mapfn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! Extracts the filename from each entry for indexing in the verifiable index.
44
5-
use rust_tessera::vindex::{IndexKey, MapFn};
5+
use siglog::vindex::{IndexKey, MapFn};
66
use sha2::{Digest, Sha256};
77

88
/// A MapFn that extracts the filename from conda repodata entries.

docker/Dockerfile.local

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY Cargo.toml Cargo.lock* ./
1414
COPY src ./src
1515

1616
# Build all release binaries
17-
RUN cargo build --release --bin rust-tessera --bin witness --bin conda-monitor
17+
RUN cargo build --release --bin siglog --bin witness --bin conda-monitor
1818

1919
# Runtime stage
2020
FROM debian:bookworm-slim
@@ -27,7 +27,7 @@ RUN apt-get update && apt-get install -y \
2727
&& rm -rf /var/lib/apt/lists/*
2828

2929
# Copy binaries from builder
30-
COPY --from=builder /app/target/release/rust-tessera /usr/local/bin/rust-tessera
30+
COPY --from=builder /app/target/release/siglog /usr/local/bin/siglog
3131
COPY --from=builder /app/target/release/witness /usr/local/bin/witness
3232
COPY --from=builder /app/target/release/conda-monitor /usr/local/bin/conda-monitor
3333

@@ -37,4 +37,4 @@ RUN mkdir -p /data
3737
WORKDIR /data
3838

3939
# Default to log service
40-
CMD ["rust-tessera"]
40+
CMD ["siglog"]

0 commit comments

Comments
 (0)