Skip to content

Latest commit

Β 

History

History
823 lines (536 loc) Β· 25.1 KB

CHANGELOG.md

File metadata and controls

823 lines (536 loc) Β· 25.1 KB

Changelog

All notable changes to this project will be documented in this file.

[4.20.0] - 2024-11-30

πŸš€ Features

  • HSM support (#344)
    • support for the Proteccio HSM that provides both
      • the ability to perform the Create, Destroy, Export, Encrypt, and Decrypt operations on the HSM
      • the ability to create keys in the KMS which are wrapped by a key in the HSM
    • the database components are now in a separate crate server_database. They are now split in 2 implementations: Objects store and Permissions store
    • a new interfaces crate gathers interfaces to be implemented by new external components. Interfaces include:
      • Object Store
      • Permissions Store
      • Encryption Oracle
    • key unique identifiers now support prefixes. Object Stores, Permissions stores, and Encryption Oracles can be registered against the prefixes.
    • support for the Sensitive Attribute in addition to the ability to wrap a key by another key has been added to all keys creations
  • Make keys non revocable on server (#341)
  • Docker for Linux ARM and keep support for MacOS Intel (#343)

πŸ› Bug Fixes

  • The macOS-12 environment is now deprecated
  • Better permissions checking on wrapping and unwrapping

πŸ“š Documentation

  • Add benchmarks on simultaneous encryptions/decryptions

[4.19.3] - 2024-10-29

πŸ› Bug Fixes

  • Maturin build on macos arm - force forward compatibility (#336)

[4.19.2] - 2024-10-29

πŸ› Bug Fixes

  • Launch encrypted GMeet through GCal (#334)
  • MacOS-maturin: Upgrade python version from 3.12 to 3.13 (#333)
  • Dont panic on indexing slicing (#331)

πŸ“š Documentation

  • ckms installation - specifically for Windows (#332)

[4.19.1] - 2024-10-11

πŸš€ Features

  • Client ckms: merge attributes handling (set/get/delete) under attributes subcommand (#329)

πŸ› Bug Fixes

  • Guard on size of ciphertexts for BulkData (#330)
  • KMIP Attributes: fix deletion on Links and Vendor Attributes (#329)

[4.19.0] - 2024-10-09

πŸš€ Features

  • Google Workspace Client-Side-Encryption (CSE) updates (#319)
    • Generate Google S/MIME key-pairs and identities and upload them to Gmail API from ckms CLI (#270)
    • Server-side, export cert at PKCS7 format
    • Implement missing CSE endpoints
    • Wrap/unwrap CSE elements with authenticated encryption
    • Export wrapped keys from KMS specifying the cipher mode
    • Handle auth for guest users (#271)
  • Add SetAttribute/DeleteAttribute KMIP operations (#303)
  • Re-enable wrap/unwrap on ckms by linking statically on openssl (#317)
  • Added AES GCM-SIV and AES XTS (#328)
  • Added the ability to client side encrypt files with ckms and a hybrid scheme (#328)
  • Create Symmetric Key / Private keys with custom unique id (#326)
  • Add bulk encrypt / decrypt facility (#318)
  • Replace Debug derive trait of KMIP Object by a custom Display impl (#327)

πŸ“š Documentation

  • Documentation: Migrating emails to Gmail CSE (#316)
  • Update CSE documentation (Gmail S/MIME) (#316)
  • Update KMS build instructions (#320)

πŸ§ͺ Testing

  • Add test on database backends (#311)
  • Reduce CI pipeline duration in debug (#315)
  • Add CSE endpoints testing (#319)

βš™οΈ Miscellaneous Tasks

  • Clippy hardening in crate kmip (#304)

[4.18.0] - 2024-09-17

πŸš€ Features

  • Add ReKey KMIP operation (#294)
  • Add API token authentication between server and clients (#290)
  • Build a generic database upgrade mechanism (#299)
  • Export of certificates can now be performed using the certificate id (instead of just the private key id)
  • More intuitive PKCS#12 import (#306)
  • Support for export under legacy PKCS#12 format (#306)
  • Documentation (S/MIME)

πŸ› Bug Fixes

  • KMIP Attributes:
    • In get_attributes, use attributes from ObjectWithMetadata instead of Object.Attributes (#278)
    • When inserting in db, force Object::Attributes to be synced with Attributes (#279)
  • Certificates handling/tasks:
    • Validate KMIP operation:
      • Simplify getting CRLs and get returned errors (#268)
      • Validate certificate generation (#283)
      • Use certificate file path in ckms arguments (#292)
    • Certify KMIP operation: Server must sign x509 after adding X509 extensions (#282)
  • Merge decrypt match in same function (#295)
  • Fix Public RSA Key size in get attributes (#275)
  • RUSTSEC:
    • RUSTSEC-2024-0357: MemBio::get_buf has undefined behavior with empty buffers: upgrade crate openssl from 1.0.64 to 1.0.66 (#280)
    • RUSTSEC-2024-0363: Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts: bump sqlx to 0.8.1 (#291 and #297)
  • CLI doc fixes (certificates certify)
  • Fix PKCS#12 export of self-signed cert (#305)
  • Fix serialization of Attributes in redis-findex (#307)

βš™οΈ Miscellaneous Tasks

  • clippy tasks:
    • Only expose pub functions that need to be public (#277)
    • Hardcode clippy lints (#293)
  • Rename MacOS artifacts giving CPU architecture
  • Configure ckms to build reqwest with minimal idle connections reuse (#272)
  • Do not delete tags if none are provided (#276)
  • De-activated Google CSE tests when tokens are not supplied through env. var.
  • Cleaned-up and improved certificates import tests
  • Made test DB backend selectable using env. var. KMS_TEST_URL

[4.17.0] - 2024-07-05

πŸš€ Features

  • Add KMIP operation Validate for certificates (#247)
  • Added RSA benchmarks (#251)
  • Add OpenTelemetry OTLP protocol support to KMS server (#253)
  • Support for multiple certification scenarios and self-signing (#248)

πŸ› Bug Fixes

  • Fix vulnerability RUSTSEC-2024-0336 (#244)
  • Fix vulnerability RUSTSEC-2024-0344 (#254) and (#255)

βš™οΈ Miscellaneous Tasks

  • Create Debian/RPM packages for Ubuntu 2x.04 and RHEL 9 (#264)
  • Drop Centos 7 support (#265)
  • Replace cargo audit with cargo deny (#245)
  • Replace Linux cross-compiling for Windows with compiling on Windows Github runner (#249)
  • Add support for build on MacOS ARM

[4.16.0] - 2024-05-06

πŸ› Bug Fixes

  • Fixed import of symmetric key tag to '_kk' from '_sk'

πŸš€ Features

  • Add support for LUKS via PKCS#11 module
  • Add support for CKM_RSA_PKCS (PKCS#1 v1.5) for RSA encryption/decryption

[4.15.2] - 2024-05-03

πŸš€ Features

  • Create Gmail key pairs and identities with ckms via Gmail API (#243)

πŸ› Bug Fixes

  • Comment out mermaid configuration

[4.15.1] - 2024-05-02

πŸš€ Features

  • Add Google Workspace CSE endpoints for **encrypted Gmail ** (#192)

πŸ› Bug Fixes

  • RUSTSEC-2024-0336 (#244)
  • Remove everything related to GCP images build (#241)

πŸ“š Documentation

  • Oauth2 OIDC doc fixes

[4.15.0] - 2024-04-08

πŸ› Bug Fixes

  • Add license to KMS GCP image (#235)
  • Re-enable the validation of JWT Issuer URI
  • Fix CSE error status code, propagating the right status code instead of generic server code error

πŸš€ Features

  • Handle many identity providers in jwt authentication
  • New command line argument --key-usage to define key or certificate usage on import
  • Exhaustive verification that the key used to perform cryptographic operations is allowed to do them
  • KMIP object creation can now precisely define the usage of the key it describes

[4.14.2] - 2024-04-05

Ci

  • Add standalone workflow to test KMS in Cosmian VM (#233)

πŸš€ Features

  • Rebase KMS GCP image on Cosmian VM 1.1.0-rc.4

[4.14.1] - 2024-04-04

Ci

  • Remove optimization RUSTFLAGS (#227)

πŸš€ Features

  • Rebase KMS GCP image on Cosmian VM 1.1.0-rc.3

[4.14.0] - 2024-03-27

πŸ› Bug Fixes

  • Fixed double quotes problem in cosmian vm test (CI)
  • Fixed trailing null byte bug for biguint/bytes conversions (#224)
  • Make the CLI compile on Windows and macOS (without openssl installed) (#209)

πŸš€ Features

  • Support Veracrypt PKCS11 provider library (#208)

Testing

  • Update test_kms.py to use covercrypt 14.0.0 (#217)

[4.13.5] - 2024-03-20

πŸ› Bug Fixes

  • Add missing image_licenses in packer for GCP (#219)

[4.13.4] - 2024-03-18

Ci

  • Push GCP images based on Cosmian VM 1.1.0-rc2

[4.13.3] - 2024-03-11

πŸ› Bug Fixes

  • ckms needs kmip dependency with features openssl (#202)

Ci

  • Push GCP images on cosmian-dev and cosmian-public only once (#203)

[4.13.2] - 2024-03-09

Ci

  • Filter reboot test on GCP/RHEL instance.

[4.13.1] - 2024-03-08

Ci

  • Add build of GCP images (ubuntu/redhat) #191.

[4.13.0] - 2024-03-08

πŸš€ Features

  • Save KMIP Attributes in a proper column of Objects table #166:
    • Remove all custom tags _cert_spki, _cert_cn, _cert_issuer and _cert_sk
  • Add support for CoverCrypt rekey, prune, and Policy editing methods #179:
    • Add CLI commands to perform these actions
  • Accurate CryptographicUsageMask for KMIP creation (RSA and EC keys) #189 and #187.

Refactor

  • Rework utils/crypto #178.

Ci

  • Add build on RHEL9 #196.
  • Add build of GCP images (ubuntu/redhat) #191.

πŸ› Bug Fixes

  • Fixing inconsistent crypto consts #190.
  • Fix interpolation in error macros #184.
  • Move internal KMIP Objects into Box to avoid stack memory overflow #200.

[4.12.0] - 2024-02-08

πŸš€ Features

  • Generalize the refresh of JWKS in the middleware #150.
  • CI speed up #173.
  • Add support for Microsoft Double Key Encryption (DKE) endpoints #170.
  • Re-organized crypto package by algorithm, removed duplicated code #170.
  • Add support for FIPS mode for the ckms client #170.
  • Documented TOML configuration file for the KMS server #170.
  • Overall improvements to the documentation on algorithms and FIPS mode #170.

[4.11.3] - 2024-01-26

πŸš€ Features

  • CLI: allow multiple operations to be supplied at once for access control #155.

βš™οΈ Miscellaneous Tasks

  • Business Source License 1.1

[4.11.2] - 2024-01-23

Ci

  • Test and deliver in CI missing FIPS binary (fips.so and openssl.cnf for FIPS) #152

[4.11.1] - 2024-01-18

πŸ› Bug Fixes

  • Load correct openssl provider on run

Ci

  • Pypi now requires a token to publish #148

[4.11.0] - 2024-01-17

πŸ› Bug Fixes

  • Fix AES decryption: tag invalid size #133
  • Remove bootstrap server leftovers #142

πŸš€ Features

  • X509 v3 extensions support #120
  • Dynamic salt for password derivation, resolving issue #124 #128
  • Support Cosmian VM #129
  • Make rsa oaep aes a generalized encryption system for use in all kms and not only for key wrapping #130
  • ECIES implementation for Hybrid Encryption #134
  • Add pyo3 methods for symmetric create_key, encrypt, decrypt #135
  • Add RSA keys create key pair #137
  • Upgrade Rust toolchain to 2024-01-09 #141
  • Support keypair generation for curve448 Montgomery and edwards forms #143

[4.10.1] - 2023-12-12

πŸ“š Documentation

  • Fix mkdocs formatting

[4.10.0] - 2023-12-11

πŸš€ Features

  • Support for certificate generation using the Certify KMIP operation and a PKCS#10 or a public key
  • Support for most standardized encoding formats on import.export: PKCS#8, PKCS#1, SEC1, X509, PKCS#12
  • Improvements to the Locate functionality for attributes and tags
  • Support for the Get Attributes KMIP operation
  • Database: support for atomic operations
  • Replaced part of Rust Crypto with openssl for more standardized module support
  • Deactivated automatic certificate verification, which will be reallocated for the future Validate KMIP operation support #102
  • Deactivated the non KMIP compliant certificate "quick create feature", which can now be achieved using the Certify KMIP operation #103

πŸ› Bug Fixes

  • Redis-Findex: create now checks for the pre-existence of the object
  • Better KMIP compliance:
    • improved KeyBlock definition #76
    • enforced KMIP default export formats #78
    • aligned Unique Identifier to KMIP definition but only the TextString variant is supported.
    • Use od standards attributes instead of Vendor attributes wherever possible

[4.9.1] - 2023-11-14

πŸ› Bug Fixes

  • KMIP server operations only support DER format for certificates (#89)

[4.9.0] - 2023-11-10

πŸ› Bug Fixes

  • fix: migrate to num-bigint-dig for bigint (#85)

Ci

  • Test KMS inside an SGX machine

πŸš€ Features

  • Update Covercrypt version to support Policy V2 ([#63])
  • Generalize bulk operations using KMIP Messages structure

[4.8.2] - 2023-10-31

πŸ› Bug Fixes

  • Save certs as DER instead of PEM for KMIP compliance

[4.8.1] - 2023-10-12

πŸ› Bug Fixes

[4.8.0] - 2023-10-07

πŸ› Bug Fixes

  • Fix container build on tags
  • Serialize the header for each chunk for Covercrypt bulk encryption (#59)

πŸš€ Features

  • KMS running inside TEE (SGX or SEV)
    • review the verify subcommand
    • force checking the leaf TLS certificate when querying a KMS running inside a TEE
    • verify RA-TLS certificate before querying the bootstrap server
    • review the TLS certificate generation using the key tied to the TEE
    • remove libsgx and create a new dependance to tee_attestation crate
    • update KMS server argument regarding the TEE and certbot
    • review documentation regarding the KMS usage inside a TEE
  • Activate tracing in CLI tests when binary is instrumented ([#56])

Ci

  • Trigger public_documentation build on tags

[4.7.0] - 2023-10-02

πŸš€ Features

  • Added the wildcard user * to grant access rights to all users on an object
  • About certificates:
    • add validation of the complete chain instead of the leaf and parent certificates
    • add verifications before using a certificate:
      • check that each certificate is not expired (both chain and leaf certificates)
      • check that no certificate is revoked (both chain and leaf certificates)
      • check that each certificate has a valid signature (both chain and leaf certificates)
      • check that certificate CRL signature is valid
    • add RSA X509 certificate support
    • add Covercrypt bulk encryption
  • KMS CLI ckms:
    • can import the Mozilla Common CA Database (CCADB)
    • can import a PKCS12 certificate (splitting in 2 KMIP objects: X509 certificate and private key)

πŸ› Bug Fixes

  • Improved database data structures using Maps and Sets instead of Vectors where uniqueness is required
  • Enable bootstrap server for non "enclaves" servers

[4.6.0] - 2023-09-01

πŸ› Bug Fixes

  • Filter Locate request by object type

πŸ“š Documentation

  • Remove merge leftovers

πŸš€ Features

  • bootstrap: the KMS server now supports bootstrap mode to facilitate the secure input of secret components, including the database encryption secret and the HTTPS certificate key, directly into the encrypted machine memory, through a secure connection
  • Add certificate support:
    • in cosmian_kms_server:
      • implement Certify KMIP operation
      • in addition, the KMS server will automatically add:
        • the system tag _cert on Certificate object
        • the system tag _cert_uid=<certificate_uid> where certificate_uid is used as the link between public/private key objects and the related certificate object
        • the system tag _cert_spki=<Subject Public Key Info> on Certificate object where SPKI refers to RFC 5280. The SPKI value identifies uniquely the underlying certificate
        • the system tag _cert_ca=<Subject Common Name> on CA Certificate object
      • import X509 certificate as PEM and also import private key as PEM
      • export generic KMIP key wrapped by X509 certificate
      • import a wrapped key with unwrapping on the fly
      • encrypt with X509 certificate and decrypt with PKCS8 private key
    • in ckms, add:
      • create/destroy certificate
      • export/import certificate
      • revoke certificate
  • Add the export wrapping with X509 certificate encryption

[4.5.0] - 2023-08-21

πŸ› Bug Fixes

  • Documentation

πŸš€ Features

  • tagging: the KMS server now supports user tagging of objects to facilitate their management. Specify as many user tags as needed when creating and importing objects.

In addition, the user server will automatically add a system tag based on the object type:

  • _sk: for a private key
  • _pk: for a public key
  • _kk: for a symmetric key
  • _uk: for a Covercrypt user decryption key

Use the tags to export objects, locate them, or request data encryption and decryption.

  • Added locate to the ckmsclient
  • Added Redis-Findex backend support so that the KMS can encrypt the KMS server data and indexes at the application level.
  • Added JWE support

[4.4.3] - 2023-07-17

πŸ› Bug Fixes

  • Remove RUSTFLAGS for docker container and python package

πŸš€ Features

  • Update sqlx to 0.7 + bitflags and base64-url to version 2

[4.4.2] - 2023-06-13

πŸš€ Features

  • Support glibc v2.17 when building ckms and cosmian_kms_server

[4.4.1] - 2023-06-09

πŸ› Bug Fixes

  • Incorrect docker tag

πŸ“š Documentation

  • Add description on docker usage

[4.4.0] - 2023-06-06

πŸš€ Features

  • Added the ability to manipulate EC and Symmetric Keys
  • Added ECIES encryption (using Curve 25519) and AES GCM encryption
  • Added support for policy specifications
  • Reworked Revoke and Destroy to be closer to KMIP definitions
  • Revoking and Destroying a public/private key, revokes or destroy all the related keys
  • Upgrading of SQLX
  • Upgrading of PKCS12 support
  • Removal of Eyre in the CLI
  • Use of cloudproof_rust as a dependency rather than Covercrypt and Crypto Core directly to avoid version conflicts
  • Authentication:
    • support for more JWT providers
    • support for certificate authentication
  • Removal of global static conf and use of proper injection (was hindering testing)
  • Authorization: re-factor of endpoints and fix delegation issues around revoke and destroy

πŸ“š Documentation

  • Add link to package.cosmian.com

Ci

  • Add github ci
  • Publish python kms packages

Refactor

  • Refactored the server to simplify traits and separate the operations into smaller files

[4.3.4] - 2023-03-09

πŸš€ Features

  • Python KMS client (pyo3): export database_secret and insecure as parameters

Testing

  • Update cover crypt in python tests

[4.3.3] - 2023-03-02

πŸš€ Features

  • Use CoverCrypt v11

Refactor

  • Removed mysql crate used for EdgelessDB (compatible with client SSL connection)
  • Use workspace dependencies to ease maintenance

[4.3.2] - 2023-02-17

πŸ“š Documentation

  • mkdocs-merge could not run with emoji_index url

[4.3.1] - 2023-02-16

Ci

  • Remove unused docker builds

[4.3.0] - 2023-02-15

πŸ“š Documentation

  • Improves the installation doc and details the important options
  • Makes wording coherent between doc and code

πŸš€ Features

  • adds native HTTP/S support by providing certificates
  • improves encrypted SQLite support

βš™οΈ Miscellaneous Tasks

  • removes multiple features on the KMS server and makes them command-line options.
  • There is now a single docker (115MB) that covers all cases (except SGX, which will come later)
  • removes the use of crypto_base and makes use of cover-crypt 10.0

[4.2.0] - 2023-01-30

πŸš€ Features

  • Use CoverCrypt v9.0 (post-quantum cryptography) and AbePolicy v3.0
    • Write Policy as bytes and AccessPolicy as string in Vendor Attributes

Ci

  • Fix tag matching in python_publish

[4.1.0] - 2023-01-19

Added

  • add python interface

Changed

  • CoverCrypt v9 / CryptoCore v5 / AbePolicy v3.0
  • CLI Policy interface (format changed with AbePolicy v2.1)

[4.0.1] - 2022-11-29

Changed

  • add authentication data in header too in encrypt operation

[4.0.0] - 2022-11-28

Added

Changed

  • data to encrypt with CoverCrypt is not a JSON anymore but a custom binary format ( see DataToEncrypt struct)
  • decrypted data with CoverCrypt is now a custom binary format (see DecryptedData struct)

Fixed

Removed


[3.0.2] - 2022-11-16

Added

Changed

  • Support cover_crypt 7.1.0

Fixed

Removed


[3.0.1] - 2022-11-14

Added

Changed

Fixed

  • Rename KMS URL

Removed

  • Remove AVX flag

[3.0.0] - 2022-11-09

Added

Changed

  • Update cover_crypt to 7.0.1
  • Update crates dependencies

Fixed

Removed

  • GPSW support
  • TFHE support
  • DMCFE support

[2.3.3] - 2022-10-25

Added

  • Handle CORS request

Changed

  • Update installation documentation

Fixed

Removed