Repository navigation
feat(api_keys): document scopes, ip_whitelist and expiration - #133
Open
leofischer wants to merge 2 commits into
Open
leofischer wants to merge 2 commits into
leofischer wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015867bQrxWyfgMwRc3dfV8A
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015867bQrxWyfgMwRc3dfV8A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the API key endpoints in line with what payments-api accepts and returns today.
Changes
api_key_request):scopes(required for private keys),ip_whitelistandexpires_in_seconds(7, 30, 90, 180 or 365 days).api_key_update_request:active,description,ip_whitelist(full replacement,nullclears it) andexpires_in_seconds(a grace period of up to 7 days, only shortens the key's life,0stops it right away).scopes,ip_whitelistandexpires_atadded toapi_key_responseandapi_key_response_on_delete.api_key_scopes,api_key_ip_whitelistandapi_key_ip_whitelist_mode.ip_whitelist_modeon update and in responses:enforce(default, rejects off-list IPs),monitor_strict(allows and alerts on every new off-list IP) andmonitor_suspicious(allows and alerts only on suspicious IPs), plus the alert rules.authentication_tokendescription and example updated to the current 104-character format._build/api.yamlregenerated. I dropped the unrelateddefault: nulllines the generator added.Depends on
updated_atwas already in the spec but the API didn't return it. conekta/payments-api#7269 adds it on 2.3.0, so merge this after that PR or together with it.DELETE's
deleted: trueis also in the spec from before and the API doesn't return it yet. That is left for a later change.ip_whitelist_modewith three values depends on the unmerged payments-apifeat/ip-whitelist-security-alertsand authfeat/ip-whitelist-monitor-modesbranches; main only knowsenforceandmonitortoday. Merge after those.Not documented on purpose
Provider entries in
ip_whitelistare Conekta-assigned and left out. The legacymonitorvalue, still accepted and stored asmonitor_suspicious, is left out too.🤖 Generated with Claude Code
https://claude.ai/code/session_015867bQrxWyfgMwRc3dfV8A