Skip to content

Commit 0a53b80

Browse files
committed
Transferring keyring values with migrations
1 parent 440c170 commit 0a53b80

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/.vuepress/config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ module.exports = {
7272
editLinkText: 'Help us improve this article!',
7373
smoothScroll: true,
7474
algolia: {
75-
apiKey: '40a665fc96b49b38dc8620bad6372c9a',
75+
apiKey: 'e9c55447b26c9154e50775ecd4a1e5cc',
7676
indexName: 'apiscp',
77+
appId: 'MWBLB1RG0W'
7778
},
7879
nav: [
7980
{

docs/admin/Migrations - server.md

+8
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ apnscp_php bin/scripts/transfersite.php -c='dns,provider=linode' -c='dns,key=abc
8686

8787
On the source server, mydomain.com may continue to use DigitalOcean as its [DNS provider](https://bitbucket.org/apisnetworks/apnscp/src/master/lib/Module/Provider/Dns/Digitalocean.php?at=master&fileviewer=file-view-default) while the on the target server mydomain.com will use Linode's [DNS provider](https://bitbucket.org/apisnetworks/apnscp/src/master/lib/Module/Provider/Dns/Linode.php?at=master&fileviewer=file-view-default). Once mydomain.com completes its initial stage (stage 0), be sure to update the nameservers for mydomain.com.
8888

89+
## Keyring values
90+
91+
[Keyring values](Authentication.md#keyring) are sensitive parameters on a server that are decoded internally when necessary. Keyring values (*dns*,*key* service parameter or any value prefixed with "keyring:") are transferred as-is. These values may not be decoded without the correct secret set on target server. To proceed with migration, one of three options exists:
92+
93+
1. Set the [same secret](Authentication.md#transferring-keyrings) on destination server.
94+
2. Omit the value by overriding, e.g. `-c dns,key=None`
95+
3. Reset it to the destination server default by specifying `DEFAULT` as the service value, e.g. `- dns,key=DEFAULT`. This only works for default-nullable values. `AddDomain --help` annotates these values with an asterisk (\*).
96+
8997
## Notification templates
9098

9199
A notification is sent at the end **stage 0** (warmup migration) and **stage 1** (final migration). Migrations are read from `resources/templates/migrations/` and may be overrode following [view/template](Customizing.md#ApisCP) override rules.

0 commit comments

Comments
 (0)