cryptography dependency: pip install "parmana[verify]".
sign_policy_change_step_up
Parameters
pending_policy_change_id: The change to approve or reject. action: “approve” or “reject”. private_key_pem: The approver’s Ed25519 step up private key, PEM (PKCS8), as made
by openssl genpkey -algorithm ed25519.
key_id:
A label for the key. It is recorded with the authorization; the
server verifies with the public key registered on the approver’s API
key, not by this label.
ttl_seconds:
How long the authorization stays valid. Default 120.
Returns
The authorization as a JSON ready dict, to pass toclient.approve_policy_change() or client.reject_policy_change().
It is valid once, until its expiresAt.