mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 12:38:36 +00:00
improvements: address feedback, feature docs and cert validation with dns rebinding handling
This commit is contained in:
@@ -153,6 +153,12 @@ export const secretRotationV2ServiceFactory = ({
|
||||
tx: Knex;
|
||||
secretPath: string;
|
||||
}) => {
|
||||
if (new Set(secretKeys).size !== secretKeys.length) {
|
||||
throw new BadRequestError({
|
||||
message: `Secrets mapping keys must be unique. "${secretKeys.join(", ")}" contains duplicate keys.`
|
||||
});
|
||||
}
|
||||
|
||||
const conflictingSecrets = await secretV2BridgeDAL.find(
|
||||
{
|
||||
$in: {
|
||||
|
||||
Reference in New Issue
Block a user