ai-cfia / membrane-backend

Membrane Backend: A centralized authentication service for Single Sign-On (SSO) enabling seamless token-based email verification across multiple client applications.
MIT License
1 stars 0 forks source link

Generate Keypairs In-Memory for Testing #25

Open CFIALeronB opened 1 year ago

CFIALeronB commented 1 year ago

Overview

Currently, our testing infrastructure generates and stores keypairs on the filesystem. While these are only test keys, their presence triggers warnings from automated scans. To enhance security and eliminate these warnings, we should transition to generating and managing these keypairs in-memory. Objective

  1. Avoid triggering automated scan warnings.
  2. Enhance security by ensuring test keys are ephemeral and never touch the disk.

Requirements

  1. Implement an in-memory mechanism for generating and storing keypairs during testing.
  2. Ensure existing tests relying on filesystem-based keys are refactored to use the in-memory keypairs.
  3. Verify that the solution works consistently across all testing scenarios.