rename encryption.Key.ID() to Version() & return structured version data
Created by: arussellsaw
closes #19701 (closed)
This PR replaces Key.ID()
with Key.Version()
, returning structured metadata about the key. there are already cases where we might need a better idea of what was used to encrypt data, such as the encryption_key_id field in external_services, if we want to migrate to a different key it's useful to be able to concretely identify the old key.