Skip to content

Conversation

@FlorisTurkenburg
Copy link
Contributor

@brand

In order to be able to roll-over the encryption keys while being able to decrypt values that were encrypted with the old key or with the new key.

Composer.json would then require

'accessor-generator' => [
    'database.table.column' => [
        'public-key'  => 'public',
        'private-key' => 'secret',
     ],
    'database.table.column_fallback' => [
        'private-key' => 'fallback-secret',
     ],
],

See test/Generator/fixtures/expected/CredentialsMethodsTrait.php for how it will be generated

@FlorisTurkenburg FlorisTurkenburg changed the title HNB-2686 Added fallback logic to decryption in generated getters Added fallback logic to decryption in generated getters Sep 15, 2025
@FlorisTurkenburg FlorisTurkenburg merged commit 934ef35 into hostnet:master Sep 15, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants