Skip to content

request signing proof-of-concept#1808

Closed
xavdid wants to merge 4 commits into
masterfrom
request-signing-poc
Closed

request signing proof-of-concept#1808
xavdid wants to merge 4 commits into
masterfrom
request-signing-poc

Conversation

@xavdid

@xavdid xavdid commented May 11, 2026

Copy link
Copy Markdown
Member

Why?

We're exploring adding supporting cryptographic signing of API requests (instead of using API keys). This PR is a basic proof of concept for the cryptographic primitives and top-level UX.

from pathlib import Path

from stripe import StripeClient

PUB_KEY_ID = "keyid_test_123"
PRIV_KEY_LOCATION = "/some/path/to/a/secp256r1-key.pem"

client = StripeClient(
    signing_keys={
        "key_id": PUB_KEY_ID,
        "private_key": Path(PRIV_KEY_LOCATION).read_text(),
    },
)

customers = client.v1.customers.list()
print(customers)

See #api-key-request-signing for more info.

What?

  • Implemented the request signing algorithm per this doc

See Also

@xavdid

xavdid commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

closing, since we may be rethinking this approach

@xavdid xavdid closed this Jun 24, 2026
@xavdid xavdid deleted the request-signing-poc branch June 24, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant