LLMProxy.Provider.TokenCodec.Migration (llm_proxy v0.2.0)

Copy Markdown View Source

Explicit migration tools for stored provider credentials.

Encryption and plaintext rollback run in one database transaction. Status and verification return counts only. They never return credential values.

Summary

Types

counts()

@type counts() :: %{
  rows: non_neg_integer(),
  encrypted_fields: non_neg_integer(),
  plaintext_fields: non_neg_integer()
}

Functions

decrypt_all()

@spec decrypt_all() :: {:ok, map()} | {:error, term()}

encrypt_all()

@spec encrypt_all() :: {:ok, map()} | {:error, term()}

rotate_all()

@spec rotate_all() :: {:ok, map()} | {:error, term()}

status()

@spec status() :: {:ok, counts()} | {:error, term()}

verify()

@spec verify() :: {:ok, counts()} | {:error, term()}