Summary
We already have users with API keys in the old pkg-managed api_keys table. These need to be migrated into the postguard-business system so they continue to work after we switch pkg to validate against business keys (#140).
Details
- Audit the current pkg
api_keys table to identify all active (non-expired) keys and their associated emails/attributes.
- Create a migration script that:
- Reads existing keys from the pkg database.
- Creates corresponding entries in the postguard-business database with proper
PG- prefixed keys.
- Either re-keys the users (notify them of new key) or maps old keys to new format transparently.
- Coordinate with key owners if re-keying is needed.
- Ensure no downtime — both old and new keys should work during a transition period if necessary.
Related issues
/dobby please pick this up. Pull new commits and make new commits to the dobby repo often to tell other dobbies what you are up to, since several issues are interconnected. Tag @rubenhensen for anything you can't solve.
Summary
We already have users with API keys in the old pkg-managed
api_keystable. These need to be migrated into the postguard-business system so they continue to work after we switch pkg to validate against business keys (#140).Details
api_keystable to identify all active (non-expired) keys and their associated emails/attributes.PG-prefixed keys.Related issues
/dobby please pick this up. Pull new commits and make new commits to the dobby repo often to tell other dobbies what you are up to, since several issues are interconnected. Tag @rubenhensen for anything you can't solve.