presslabs / zinc

Route 53 zone manager.
https://www.presslabs.com/code/zinc/
Other
42 stars 2 forks source link

Make all record ids consistent #116

Closed calind closed 7 years ago

calind commented 7 years ago

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.