Skip to content

Migrate existing old-style API keys to postguard-business PG- format #141

Description

@rubenhensen

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:
    1. Reads existing keys from the pkg database.
    2. Creates corresponding entries in the postguard-business database with proper PG- prefixed keys.
    3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions