-
Notifications
You must be signed in to change notification settings - Fork 971
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
secret manager integration added (#1806)
* secret manager integration added * added tests * added tests --------- Co-authored-by: Aditya Bharadwaj <[email protected]>
- Loading branch information
1 parent
9dabee7
commit 8cdf602
Showing
4 changed files
with
181 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
v2/spanner-common/src/test/resources/bulk-migration-shards-secret.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"configType": "dataflow", | ||
"shardConfigurationBulk": { | ||
"schemaSource": { | ||
"dataShardId": "", | ||
"host": "", | ||
"user": "", | ||
"password": "", | ||
"port": "", | ||
"dbName": "" | ||
}, | ||
"dataShards": [ | ||
{ | ||
"dataShardId": "1-1-1-1", | ||
"host": "1.1.1.1", | ||
"user": "test1", | ||
"secretManagerUri": "projects/123/secrets/secretA/versions/latest", | ||
"port": "3306", | ||
"dbName": "", | ||
"databases": [ | ||
{ | ||
"dbName": "person1", | ||
"databaseId": "1-1-1-1-person", | ||
"refDataShardId": "1-1-1-1" | ||
}, | ||
{ | ||
"dbName": "person2", | ||
"databaseId": "1-1-1-1-person2", | ||
"refDataShardId": "1-1-1-1" | ||
} | ||
] | ||
}, | ||
{ | ||
"dataShardId": "2-2-2-2", | ||
"host": "1.1.1.2", | ||
"user": "test1", | ||
"secretManagerUri": "projects/123/secrets/secretB/versions/latest", | ||
"port": "3306", | ||
"dbName": "", | ||
"databases": [ | ||
{ | ||
"dbName": "person1", | ||
"databaseId": "1-1-1-2-person", | ||
"refDataShardId": "1-1-1-2" | ||
}, | ||
{ | ||
"dbName": "person20", | ||
"databaseId": "1-1-1-2-person2", | ||
"refDataShardId": "1-1-1-2" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |