You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This is an unexpected and undocumented behaviour
If I only set TYK_GW_HASHKEYS=true the keys generated by tyk are of the form: 123@example.com1a4704c4c6f8456b9a859041e05a09d6
If I set TYK_GW_HASHKEYFUNCTION to any value (murmur64, murmur128, sha256) the returned key is now a base64 encoded json, e.g. eyJvcmciOiIxMjNAZXhhbXBsZS5jb20iLCJpZCI6Ijk5NzhkZDk0MGNkMzQ5YmNhZWY3YmQyMDQxNGY3YmMyIiwiaCI6InNoYTI1NiJ9
Branch/Environment/Version
Describe the bug
This is an unexpected and undocumented behaviour
If I only set
TYK_GW_HASHKEYS=true
the keys generated by tyk are of the form:123@example.com1a4704c4c6f8456b9a859041e05a09d6
If I set TYK_GW_HASHKEYFUNCTION to any value (murmur64, murmur128, sha256) the returned key is now a base64 encoded json, e.g.
eyJvcmciOiIxMjNAZXhhbXBsZS5jb20iLCJpZCI6Ijk5NzhkZDk0MGNkMzQ5YmNhZWY3YmQyMDQxNGY3YmMyIiwiaCI6InNoYTI1NiJ9
Which when decoded is
Reproduction steps
Set
TYK_GW_HASHKEYFUNCTION
to any valueActual behavior
Key format changes
Expected behavior
Key format doesn't change
Additional context
This significantly increases the key size, which is a concern given that each API request includes in in the header.
The text was updated successfully, but these errors were encountered: