mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat(secret-sync): minor fix on heroku sync
This commit is contained in:
@@ -79,8 +79,6 @@ export const HerokuSyncFns = {
|
|||||||
const authToken = await getValidAuthToken(connection, appConnectionDAL, kmsService);
|
const authToken = await getValidAuthToken(connection, appConnectionDAL, kmsService);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const currentConfigVars = await getHerokuConfigVars({ authToken, app });
|
|
||||||
|
|
||||||
const updatedConfigVars: THerokuConfigVars = {};
|
const updatedConfigVars: THerokuConfigVars = {};
|
||||||
|
|
||||||
for (const [key, { value }] of Object.entries(secretMap)) {
|
for (const [key, { value }] of Object.entries(secretMap)) {
|
||||||
@@ -88,6 +86,8 @@ export const HerokuSyncFns = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!secretSync.syncOptions.disableSecretDeletion) {
|
if (!secretSync.syncOptions.disableSecretDeletion) {
|
||||||
|
const currentConfigVars = await getHerokuConfigVars({ authToken, app });
|
||||||
|
|
||||||
for (const key of Object.keys(currentConfigVars)) {
|
for (const key of Object.keys(currentConfigVars)) {
|
||||||
if (matchesSchema(key, environment?.slug || "", secretSync.syncOptions.keySchema) && !(key in secretMap)) {
|
if (matchesSchema(key, environment?.slug || "", secretSync.syncOptions.keySchema) && !(key in secretMap)) {
|
||||||
updatedConfigVars[key] = null;
|
updatedConfigVars[key] = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user