mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 00:17:20 +02:00
Add GenerateSpec11Action and SafeBrowsing evaluation
This adds actual subdomain verification via the SafeBrowsing API to the Spec11 pipeline, as well as on-the-fly KMS decryption via the GenerateSpec11Action to securely store our API key in source code. Testing the interaction becomes difficult due to serialization requirements, and will be significantly expanded in the next cl. For now, it verifies basic end-to-end pipeline behavior. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=208092942
This commit is contained in:
parent
f554ace51b
commit
33ee7de457
29 changed files with 767 additions and 26 deletions
|
@ -34,6 +34,7 @@ public final class InMemoryKeyring implements Keyring {
|
|||
private final String rdeSshClientPublicKey;
|
||||
private final String rdeSshClientPrivateKey;
|
||||
private final String icannReportingPassword;
|
||||
private final String safeBrowsingAPIKey;
|
||||
private final String marksdbDnlLogin;
|
||||
private final String marksdbLordnPassword;
|
||||
private final String marksdbSmdrlLogin;
|
||||
|
@ -48,6 +49,7 @@ public final class InMemoryKeyring implements Keyring {
|
|||
String rdeSshClientPublicKey,
|
||||
String rdeSshClientPrivateKey,
|
||||
String icannReportingPassword,
|
||||
String safeBrowsingAPIKey,
|
||||
String marksdbDnlLogin,
|
||||
String marksdbLordnPassword,
|
||||
String marksdbSmdrlLogin,
|
||||
|
@ -70,6 +72,7 @@ public final class InMemoryKeyring implements Keyring {
|
|||
this.rdeSshClientPublicKey = checkNotNull(rdeSshClientPublicKey, "rdeSshClientPublicKey");
|
||||
this.rdeSshClientPrivateKey = checkNotNull(rdeSshClientPrivateKey, "rdeSshClientPrivateKey");
|
||||
this.icannReportingPassword = checkNotNull(icannReportingPassword, "icannReportingPassword");
|
||||
this.safeBrowsingAPIKey = checkNotNull(safeBrowsingAPIKey, "safeBrowsingAPIKey");
|
||||
this.marksdbDnlLogin = checkNotNull(marksdbDnlLogin, "marksdbDnlLogin");
|
||||
this.marksdbLordnPassword = checkNotNull(marksdbLordnPassword, "marksdbLordnPassword");
|
||||
this.marksdbSmdrlLogin = checkNotNull(marksdbSmdrlLogin, "marksdbSmdrlLogin");
|
||||
|
@ -122,6 +125,11 @@ public final class InMemoryKeyring implements Keyring {
|
|||
}
|
||||
|
||||
@Override
|
||||
public String getSafeBrowsingAPIKey() {
|
||||
return safeBrowsingAPIKey;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMarksdbDnlLogin() {
|
||||
return marksdbDnlLogin;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue