Function brane_ctl::generate::policy_secret

source ·
pub fn policy_secret(
    fix_dirs: bool,
    path: PathBuf,
    key_id: String,
    key_alg: KeyAlgorithm,
) -> Result<(), Error>
Expand description

Handles generating a new JWT secret.

§Arguments

  • fix_dirs: if true, will generate missing directories instead of complaining.
  • path: The path to write the policy_secret.json to.
  • key_id: Some identifier to use for this key.
  • key_alg: The JWT algorithm that should be used for signing.

§Errors

This function may error if we encountered any I/O errors.