Commit graph

11 commits

Author SHA1 Message Date
Manuthor
5a826b465d
feat: upgrade Covercrypt to v15 (#382)
* feat: upgrade Covercrypt to v15

* fix: update MSK after USK creation

* test: fix bulk tests

* test: fix test_rekey_prune

* test: fix not exportable sensitive cc keys

* fix: support pyo3

* fix: locate tests - revert changes

* fix: cargo deny

* fix: rename Policy by AccessStructure

* fix: rename Policy by AccessStructure

* test: re-enable cli attributes handling

* test: re-enable clippy on cli

* chore: remove pyo3 support

* chore: upgrade crypto_core to v10.0.1

* chore: upgrade cover_crypt to last commit

* fix: PR review

* fix: Review of the Covercrypt integration (#385)

* wip

* wip: review rekey and master keypair creation

* remove the policy from the attributes

* fix typo

* fix `clippy` lints

* fix formatting

* ci: use rust toolchain version from arg

* fix: clippy lints for new toolchain

* fix: clippy lints for new toolchain

---------

Co-authored-by: Manuthor <manu.coste@gmail.com>

* fix: create single function to retrieve id from clap args

* docs: review doc and remove dead code (#388)

* review doc and remove dead code

* fix build

* fix clippy lints

* fix fmt

---------

Co-authored-by: phochard <pauline.hochard@cosmian.com>
Co-authored-by: Théophile BRÉZOT <theophile.brezot@cosmian.com>
2025-03-21 18:23:59 +01:00
Emmanuel Coste
c28ef193a6 fix: update rust toolchain 2024-06-19 12:29:51 +02:00
Thibs
6df35e4e91
chore: upgrade Rust toolchain to 2024-01-09 (#141) 2024-01-09 23:21:40 +01:00
Bruno Grieder
46349a3281
feat: encrypted Redis with Findex as a backend (#19)
* findex reboot

* redis compact OK

* fixed upsert conflict

* more testing of compact and deletions

* further tests improvements

* locking on compact

* started to implement Reis DB

* must refactor findex_redis retrieve

* more on redis DB

* progress on redis impl...

* async transaction support

* more on async transactions

* feat(ci): add redis service

* minor change

* more work required on Find

* added permissions DB using Findex

* doc and cleanup of pernissions

* all tests passing with Redis with Findex - need to add encryption to the DB

* updated to latest Findex

* fixed ECIES and keywrapping

* realigning to new crypto_core

* refactored AES 256 GCM

* converted Covercrypt

* force output length to 32 for argon2

* end of refactoring to cloudproof_2_2_0

* aligned to cloudproof_2_2_1

* aligned to cloudproof_2_2_1 - removed old findex redis inpl

* CI warnings

* rebase fixes AND move all redis tests to same place

* bumped cloudproof to 2.2.1

* expose redis-findex database options

* fixed locate issue with redis-findex

* redacted passwords in conf displays

* documentation

* more readme fixes

* readme improvements

* changelog

* fix: minimize changes on Cargo.lock

* fix: update docker-compose.yml

* fix: REDIS_URL

* ci: open redis port on container

* fix: redis tests

* Apply suggestions from code review

Co-authored-by: Thibs <ThibsG@users.noreply.github.com>

* fix: cargo format

* more review fixes

* change log

---------

Co-authored-by: Emmanuel Coste <emmanuel.coste@cosmian.com>
Co-authored-by: Manuthor <manu.coste@gmail.com>
Co-authored-by: Manuthor <32013169+Manuthor@users.noreply.github.com>
Co-authored-by: Thibs <ThibsG@users.noreply.github.com>
2023-08-24 16:40:04 +02:00
ThibsG
bc4de02e13 Update rust-toolchain 2023-08-16 15:38:17 +02:00
Bruno Grieder
ae3b504f32
fix: auth mechanisms
- 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
 - More documentation improvements

Commits details:

* support for ;ore JWT providers

* re-added / at then end issuer_uri to match iss claim in JWT

* authentication documentation

* making it working with Google Auth

* fix to get auth to work with both Google id token and Auth0

* doc improvements

* added certificate authentication server side

* reworking TLSS tests

* almost there on TLS test

* tls client tests OK

* auth tests OK

* added certificate authentication server side

* format

* fixed tests

* clippy fixes

* disabled auths tests to understand CI behaviour

* REmove the static conf singleton. Yes.....

* cleaned up server config

* fixed config name inmacro and features

* force database secret to be anarray of 32 bytes

* fixed new_database tests

* additional documentation and clarification of new-database command

* improvement to CLI documentation

* de-hardcoded CONF_PATH in tests and removed unnecessary async

* sqlx upgrade to 0.7.0 alpha 3

* added server-version and renamed permissions -> accesses

* more changes to the access API

* cleaned up test configurations

* started work on access

* fixed revoke and destroy access grants

* fixed revoke access

* moved tests to http/s

* still problems with access shared

* problems with shared

* fixed granted

* moved to obtained

* more renaming harmonization

* access management documentation

* T. Brezot suggested changes

* use crypto_core Key rather than byte array

* cargo fmt

* Update crate/cli/Cargo.toml

Co-authored-by: Thibs <ThibsG@users.noreply.github.com>

* Update crate/server/src/config/mod.rs

Co-authored-by: Thibs <ThibsG@users.noreply.github.com>

* Update documentation/docs/authentication.md

Co-authored-by: Thibs <ThibsG@users.noreply.github.com>

* Update documentation/docs/single_server_mode.md

Co-authored-by: Thibs <ThibsG@users.noreply.github.com>

* removed unnecessary reauired=true in clap arguments

* review fixes

* Update crate/server/src/error.rs

Co-authored-by: Thibs <ThibsG@users.noreply.github.com>

* Update crate/server/src/lib.rs

Co-authored-by: Thibs <ThibsG@users.noreply.github.com>

* more review fixes

* merge leftover

* another merge leftover

* test(auth0 tenant): update creds

* bump rust version

* futher auth0 fixes

---------

Co-authored-by: Théophile <theophile.brezot@cosmian.com>
Co-authored-by: Thibs <ThibsG@users.noreply.github.com>
Co-authored-by: Manuthor <manu.coste@gmail.com>
2023-06-06 08:31:37 +02:00
Emmanuel Coste
1c483c6e05 . Use of cloudproof_rust as a dependency rather than Covercrypt and Crypto Core directly to avoid version conflicts
. 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
. Refactored the server to simplify traits and separate the operations into smaller files
. Upgrading of SQLX
. Many more tests
. Upgrading of PKCS12 support
. Removal of Eyre in the CLI
2023-05-08 06:49:15 +00:00
Emmanuel Coste
0099a6347e chore: clippy suggestions, files formatting 2023-02-15 16:12:07 +01:00
Thibaud Dauce
17fdb0ac1c CoverCrypt 7 2022-11-02 11:52:35 +00:00
Sébastien Lambert
61e613491d 📌 bump nightly version 2022-07-20 11:15:22 +02:00
Sébastien Lambert
1df1f8fb7e 🎉 import from cosmian_server 2022-04-07 14:52:22 +02:00