@optima-chat/dev-skills 0.7.9 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/helpers/query-db.ts
CHANGED
|
@@ -223,7 +223,8 @@ async function main() {
|
|
|
223
223
|
const token = getInfisicalToken(infisicalConfig);
|
|
224
224
|
console.log('✓ Obtained Infisical access token');
|
|
225
225
|
|
|
226
|
-
|
|
226
|
+
// 数据库凭证统一存储在 Infisical 的 prod 环境(Stage/Prod 共享相同凭证)
|
|
227
|
+
const secrets = getInfisicalSecrets(infisicalConfig, token, 'prod');
|
|
227
228
|
console.log('✓ Retrieved database credentials from Infisical');
|
|
228
229
|
|
|
229
230
|
const { userKey, passwordKey, database } = serviceConfig as any;
|
|
@@ -201,7 +201,8 @@ async function main() {
|
|
|
201
201
|
console.log('✓ Loaded Infisical config from GitHub Variables');
|
|
202
202
|
const token = getInfisicalToken(infisicalConfig);
|
|
203
203
|
console.log('✓ Obtained Infisical access token');
|
|
204
|
-
|
|
204
|
+
// 数据库凭证统一存储在 Infisical 的 prod 环境(Stage/Prod 共享相同凭证)
|
|
205
|
+
const secrets = getInfisicalSecrets(infisicalConfig, token, 'prod');
|
|
205
206
|
console.log('✓ Retrieved database credentials from Infisical');
|
|
206
207
|
const { userKey, passwordKey, database } = serviceConfig;
|
|
207
208
|
const dbHost = RDS_HOSTS[environment];
|