This adds support for encrypting and decrypting secrets. It implements the APIs required for unsealing. The APIs are not complete or compliant. Reviewed-on: #1 Co-authored-by: C0ffeeCode <ritters_werth@outlook.com> Co-committed-by: C0ffeeCode <ritters_werth@outlook.com>
12 lines
348 B
Rust
12 lines
348 B
Rust
use axum::{Router, routing::post};
|
|
|
|
use crate::DbPool;
|
|
|
|
pub fn root_generation() -> Router<DbPool> {
|
|
Router::new()
|
|
// .route("/generate-root", get(get_root_generation_attempt))
|
|
.route("/generate-root", post(generate_new_root))
|
|
// .route("/generate-root", delete(cancel_generate_root))
|
|
}
|
|
|
|
async fn generate_new_root() {}
|