mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
Clean unecessary imports
This commit is contained in:
@@ -147,7 +147,7 @@ const initSecretVersioningHelper = async () => {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
Sentry.setUser(null);
|
Sentry.setUser(null);
|
||||||
Sentry.captureException(err);
|
Sentry.captureException(err);
|
||||||
throw new Error('Failed to ensure secrets are versioned');
|
throw new Error('Failed to ensure that secrets are versioned');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import * as Sentry from '@sentry/node';
|
import * as Sentry from '@sentry/node';
|
||||||
import { Types } from 'mongoose';
|
|
||||||
import {
|
import {
|
||||||
Secret,
|
Secret,
|
||||||
ISecret,
|
ISecret,
|
||||||
@@ -10,13 +9,8 @@ import {
|
|||||||
} from '../ee/services';
|
} from '../ee/services';
|
||||||
import {
|
import {
|
||||||
SecretVersion,
|
SecretVersion,
|
||||||
Action,
|
|
||||||
IAction
|
IAction
|
||||||
} from '../ee/models';
|
} from '../ee/models';
|
||||||
import {
|
|
||||||
takeSecretSnapshotHelper
|
|
||||||
} from '../ee/helpers/secret';
|
|
||||||
import { decryptSymmetric } from '../utils/crypto';
|
|
||||||
import {
|
import {
|
||||||
SECRET_SHARED,
|
SECRET_SHARED,
|
||||||
SECRET_PERSONAL,
|
SECRET_PERSONAL,
|
||||||
@@ -62,8 +56,6 @@ interface Update {
|
|||||||
[index: string]: any;
|
[index: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
type DecryptSecretType = 'text' | 'object' | 'expanded';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Push secrets for user with id [userId] to workspace
|
* Push secrets for user with id [userId] to workspace
|
||||||
* with id [workspaceId] with environment [environment]. Follow steps:
|
* with id [workspaceId] with environment [environment]. Follow steps:
|
||||||
@@ -285,9 +277,6 @@ const v1PushSecrets = async ({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: optimize this route.
|
|
||||||
// TODO: ensure that it's possible to query for and filter logs
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Push secrets for user with id [userId] to workspace
|
* Push secrets for user with id [userId] to workspace
|
||||||
* with id [workspaceId] with environment [environment]. Follow steps:
|
* with id [workspaceId] with environment [environment]. Follow steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user