private SecretSharedKey generateEncryptionKey(KeyPair keyPair, SnapshotId id) {
        return SharedKeyGenerator.generateForReceiverPublicKey(keyPair.getPublic(),
                                                               KeyId.ofString(id.toString()));
    }
Change state of an active snapshot
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/backup/Snapshots.java