Make VKey persist to datastore as a key (#591)

* Make VKey persist to datastore as a key

Convert nsHosts entirely to VKey as a proof-of-concept.

Tested as follows:
    1) Deployed to crash, verified that nameservers were visible for several
       domains (indicating that we are able to load a set of Keys as VKeys)
    2) Updated the set of nameservers for a domain (removing some initial
       hosts) and verified that the changes went through.
    3) Deployed the old version to crash, verified that I was able to retrieve
       the newly saved VKeys as Keys.
    4) Modified the hosts for the same domain (adding back one of the hosts)
       and verified that the change took effect.
    5) Redeployed this change to crash, again updated the nameservers to add
       another host.
    6) Again restored the old version, verified that the new hosts were
       visible.

* Changes in response to review

* Convert to a single VKeyTranslatorFactory instance

* Moved vkey field rename to V25
This commit is contained in:
Michael Muller 2020-05-19 14:10:28 -04:00 committed by GitHub
parent afafe60767
commit b54c19e6c4
9 changed files with 69 additions and 152 deletions

View file

@ -122,7 +122,7 @@
create table "DomainHost" (
domain_repo_id text not null,
ns_host_v_keys text
ns_hosts text
);
create table "GracePeriod" (