Never include your developer Secret Key in a client build that you send to your customers. Doing so exposes your title to abuse.
- Sign in to Game Manager.
- Select your Title.
- In the upper-right corner, select the gear icon.
- Select Title settings, then select the Secret Keys tab.
- Select New Secret Key.
- Enter the Name of the key, and an optional expiration date.
- Update your code to use the new key.
- Disable the old key. Select the old key and then on the Edit Secret Key page, select the Disable checkbox.
- Select SAVE SECRET KEY.
If your old keys are compromised, rotate the keys to return your Title to a secured state.
IP allowlist
IP allowlists for title secret keys are a security feature that ensures that a title secret key can’t be used from outside the IPs you trust. Each secret key can carry its own list of IPv4 or IPv6 addresses (or CIDR ranges) that are permitted to use it. When an IP allowlist is configured for a title secret key, privileged calls (Server and Admin APIs) made with that key are accepted only from source IPs that match an entry on the list. Calls from any other IP are rejected, even if the key itself is otherwise valid. Every change to a key, including allowlist edits, is captured in the existing PlayStream secret key changed event. Supported formats:- IPv4 and IPv6 addresses are both supported (for example,
203.0.113.7or2001:db8::1). - CIDR ranges are supported in either family (for example,
203.0.113.0/24or2001:db8::/32).
- In Game Manager, navigate to Title Settings > Secret Keys.
- Edit (or create) a secret key.
- Toggle Enable IP allowlist.
- Add your egress IPs or CIDR ranges, one per line (for example,
203.0.113.7or2001:db8::/32). - Select Save.
Double check the list before saving. An incorrect entry blocks every IP that isn’t on the list, which can lock your services out of the Server and Admin APIs.
