Auth auth = getAuth();
Project project = auth.getProject();
List<Secret> secrets = secretService.list(auth, project);
Secret found = null;
for (Secret secret : secrets) {
if (subject.equals(secret.getSecretInfo().subject)) {
if (found != null) {
throw new IllegalStateException("Found multiple keys with subject: " + subject);
}