-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load credentials of the
databases-for-postgresql
format (#60)
* Add loading of CloudEnviroment credentials for PostgreSQL through the `databases-for-postgresql` format of Cloud Foundry.
- Loading branch information
1 parent
e704e6d
commit 91f4da3
Showing
4 changed files
with
138 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -202,6 +202,80 @@ | |
] | ||
} | ||
], | ||
"databases-for-postgresql": [ | ||
{ | ||
"binding_name": null, | ||
"credentials": { | ||
"connection": { | ||
"cli": { | ||
"arguments": [ | ||
[ | ||
"host=123456789.123456789.databases.appdomain.cloud port=12345 dbname=dbname user=ibm_cloud_1234 sslmode=verify-full" | ||
] | ||
], | ||
"bin": "psql", | ||
"certificate": { | ||
"certificate_base64": "AAAAA", | ||
"name": "aaaa" | ||
}, | ||
"composed": [ | ||
"PGPASSWORD=qwerty PGSSLROOTCERT=aaaaaaaa-bbbb-cccc-cccc-dddddddddddd psql 'host=123456789.123456789.databases.appdomain.cloud port=12345 dbname=dbname user=ibm_cloud_1234 sslmode=verify-full'" | ||
], | ||
"environment": { | ||
"PGPASSWORD": "qwertyuiop", | ||
"PGSSLROOTCERT": "aaaaaaaa-bbbb-cccc-cccc-dddddddddddd" | ||
}, | ||
"type": "cli" | ||
}, | ||
"postgres": { | ||
"authentication": { | ||
"method": "direct", | ||
"password": "qwertyuiop", | ||
"username": "ibm_cloud_1234" | ||
}, | ||
"certificate": { | ||
"certificate_base64": "AAAA", | ||
"name": "aaaaaaaa-bbbb-cccc-cccc-dddddddddddd" | ||
}, | ||
"composed": [ | ||
"postgres://ibm_cloud_1234:[email protected]:12345/dbname?sslmode=verify-full" | ||
], | ||
"database": "dbname", | ||
"hosts": [ | ||
{ | ||
"hostname": "123456789.123456789.databases.appdomain.cloud", | ||
"port": 12345 | ||
} | ||
], | ||
"path": "/dbname", | ||
"query_options": { | ||
"sslmode": "verify-full" | ||
}, | ||
"scheme": "postgres", | ||
"type": "uri" | ||
} | ||
}, | ||
"instance_administration_api": { | ||
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:region:c/1234:1234::", | ||
"instance_id": "crn:v1:bluemix:public:databases-for-postgresql:region:c/1234:1234::", | ||
"root": "https://api.region.databases.cloud.ibm.com/v4/ibm" | ||
} | ||
}, | ||
"instance_name": "PostgreSQLServiceDB", | ||
"label": "databases-for-postgresql", | ||
"name": "PostgreSQLServiceDB", | ||
"plan": "standard", | ||
"provider": null, | ||
"syslog_drain_url": null, | ||
"tags": [ | ||
"data_management", | ||
"ibm_created", | ||
"rc_compatible", | ||
"ibmcloud-alias" | ||
], | ||
"volume_mounts": [] | ||
} | ||
], | ||
"cleardb": [ | ||
{ | ||
"credentials": { | ||
|
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