Skip to content

Commit

Permalink
API Key Generation - Consumer - Use length of 64, instead of 256 (#2934)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Jul 24, 2024
1 parent 5a7a3d0 commit 523eee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth-api/src/auth_api/services/api_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,6 @@ def _get_api_consumer_endpoint(cls, env):
@classmethod
def _make_string_compatible(cls, target: str) -> str:
"""Make string compatible for API gateway."""
# Length 255 max - alphanumeric, space, and the following: . _ -
# Length 64 max - alphanumeric, space, and the following: . _ -
target = re.sub(r'[^a-zA-Z0-9_\- .]', '', target)
return target[:255]
return target[:64]

0 comments on commit 523eee5

Please sign in to comment.