# CANIS ## What CANIS Is CANIS is an independent, MIT-licensed Java 25 key-recovery service and client for asynchronous encrypted-file exchange between Java services. A producer encrypts a file locally and publishes the encrypted file to shared storage. CANIS is intended for organization-managed corporate environments with trusted host administrators, deployment automation, service accounts, and identity systems. It is not a public cloud KMS, multi-tenant service, HSM, or Vault as a Service. See the [threat model](docs/threat-model.md) before deployment. A recipient can retrieve that file later and ask CANIS to recover its file key. File contents stay outside the key service, while private keys remain on the server. Admitted clients share access to stored key names; the trust boundary is described in the threat model. ## Quick Start ```sh git clone https://github.com/metiago/canis.git cd canis mvn clean verify ``` Expect `BUILD SUCCESS` with no test failures. See the [Java Client Package](docs/client-package.md) and [deployment guide](docs/client-package-deploy.md) for client setup. ## Documentation - [Threat Model](docs/threat-model.md) - [CANISP Protocol](docs/canisp-protocol.md) - [Master Key Guide](docs/master-key.md) - [Operational Recovery Runbook](docs/operational-recovery.md) - [Java Client Package](docs/client-package.md) - [Client Deployment Guide](docs/client-package-deploy.md) - [Versioning and Releases](docs/versioning.md) Repository layout: `docs/` contains product and operations documentation; `client/` contains the Java client; and `server/` contains the key service. ## Releases The server and parent project share a release version. The Java client has its own Maven version and release schedule. The development tree builds server `0.1.1-SNAPSHOT` and client `2.0.0-SNAPSHOT`. See the [versioning policy](docs/versioning.md) for tested compatibility and release instructions. Find server JARs, source archives, and SHA-256 checksums on [GitHub Releases](https://github.com/metiago/canis/releases) as releases become available. Published client versions are listed separately on [GitHub Packages](https://github.com/metiago/canis-client/packages/2344030). ## Security CANIS is an internal service on organization-managed infrastructure. The operating system, infrastructure administrators, deployment automation, and service account are trusted. Its checks address accidental disclosure, unsafe configuration, deployment mistakes, and unauthorized non-privileged access. CANIS does not provide Vault, cloud KMS, HSM, or multi-tenant security guarantees. ### Client Admission and Shared Key Access CANIS operates within a shared trust domain. Any authenticated CANIS client may request operations involving any stored service key. Service names and key names are identifiers, not authorization boundaries. Different TLS certificates do not isolate clients, and different usernames do not grant different authorization scopes. CANIS does not provide per-key authorization or client isolation. If applications require independent authorization domains, separate CANIS deployments should be used. See the [threat model](docs/threat-model.md). Use a dedicated service account, protected master-key and database paths, corporate PKI, and restricted network access. Master-key file checks detect unsafe configuration and fail closed; they do not defend against a privileged host administrator or compromised operating system. Rotate certificates before expiry. See the [master-key guide](docs/master-key.md) for exact loader checks and deployment responsibilities. Report suspected vulnerabilities privately as described in [SECURITY.md](SECURITY.md). For database or master-key recovery, follow the [operational recovery runbook](docs/operational-recovery.md). ## License MIT. See [LICENSE.txt](LICENSE.txt).