Skip to content

Commit

Permalink
Add sponsorship policies
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Nov 22, 2024
1 parent 34c0056 commit c3441e0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/pages/infra/platform/security/protect-api-keys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Keeping your API keys secure is essential. Here are two main ways to protect them:

- Restrict access to your API keys.
- Use sponsorship policies.
- Use a proxy server to handle requests to Pimlico.

## Restrict Access to Your API Keys
Expand All @@ -19,6 +20,15 @@ Additionally, you can enable or disable specific API features for each key, such
- Paymaster methods.
- Account APIs.

## Use Sponsorship Policies

Sponsorship Policies are hosted policies that allow you to define custom rules for sponsorships.

You can put limits to the global amount of sponsorships, the amount of sponsorships per user, and per user operation.

You can read more about Sponsorship Policies [here](/infra/platform/sponsorship-policies).


## Use a Proxy Server

You can create a proxy server to handle requests to Pimlico. This way, you can have custom authentication, rate limiting, and other features before forwarding requests to Pimlico.
Expand Down

0 comments on commit c3441e0

Please sign in to comment.