Currently records from aws have short ids in api and policy records have UUID. We should keep them consistent.
The function which generates the should look like: 'Z' + hashid(ZINC_ZONE_ID) + 'Z' + TYPE_ID + 'Z' + hashid(NAME, TYPE, SET_ID), so ids would look like: ZgB0Nl9Z1ZhGlaHquq0p0t
The hashid function should run with alphabet abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY1234567890 with empty or hardcoded salt as this hash function is not used for any security, but rather to compress the id.
Currently records from aws have short ids in api and policy records have UUID. We should keep them consistent.
The function which generates the should look like:
'Z' + hashid(ZINC_ZONE_ID) + 'Z' + TYPE_ID + 'Z' + hashid(NAME, TYPE, SET_ID)
, so ids would look like:ZgB0Nl9Z1ZhGlaHquq0p0t
The
hashid
function should run with alphabetabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY1234567890
with empty or hardcoded salt as this hash function is not used for any security, but rather to compress the id.