Skip to content

create2-labs/cafe-scanner-tls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cafe-scanner-tls

TLS scanner worker extracted from cafe-discovery. This repository is TLS-only (includes native/ + pkg/tls and requires CGO / OQS runtime).

Run locally

CGO_ENABLED=1 go run ./cmd/scanner-tls/main.go

Defaults:

  • NATS_URL=nats://localhost:4222
  • SCANNER_HEALTH_PORT=8081
  • CONFIG_PATH=./config.yaml

Build

CGO_ENABLED=1 go build ./cmd/scanner-tls

Dependency gate (TLS-only)

TLS scanner must keep the OQS + native dependency chain.

go list -deps ./cmd/scanner-tls | grep -E "pkg/tls|native|internal/tlsscan|internal/scanner/tlsrunner" >/dev/null

Expected result: exit code 0 (at least one match).

Docker

This image is built on OQS base images:

  • build: oleglod/cafe-crypto-backend:build-oqs
  • runtime: oleglod/cafe-crypto-backend:runtime-oqs
docker build -t cafe-scanner-tls:local .
docker run --rm -e NATS_URL=nats://host.docker.internal:4222 cafe-scanner-tls:local

Image publication and versioning

This repository follows the same RC/Release strategy as cafe-discovery and cafe-scanner-wallet:

  • docker-rc.yml: builds and pushes oleglod/cafe-scanner-tls:sha-<short_sha> (always), plus optional vX.Y.Z-rc<run_id>.
  • docker-release.yml: promotes from sha-<short_sha> to vX.Y.Z and latest using imagetools create (no rebuild).

Supported tags:

  • sha-<short_sha>: source of truth built by RC
  • vX.Y.Z-rc<run_id>: optional RC convenience tag
  • vX.Y.Z: final release tag
  • latest: most recent released version

Deployment integration

cafe-deploy references this image through:

  • SCANNER_TLS_VERSION (env templates and local env files)
  • image oleglod/cafe-scanner-tls:${SCANNER_TLS_VERSION}

Runtime contract is unchanged:

  • consume scan.requested.tls
  • publish scan.started, then scan.completed or scan.failed
  • persistence service consumes lifecycle events and writes PostgreSQL/Redis

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors