mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 12:27:31 +00:00
Merge pull request #1095 from akhilmhdh/feat/folder-service-api-key
feat: added api key support for folder and secret import
This commit is contained in:
@@ -7,7 +7,7 @@ import { AuthMode } from "../../variables";
|
|||||||
router.post(
|
router.post(
|
||||||
"/",
|
"/",
|
||||||
requireAuth({
|
requireAuth({
|
||||||
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN]
|
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN, AuthMode.API_KEY]
|
||||||
}),
|
}),
|
||||||
secretImpsController.createSecretImp
|
secretImpsController.createSecretImp
|
||||||
);
|
);
|
||||||
@@ -15,7 +15,7 @@ router.post(
|
|||||||
router.put(
|
router.put(
|
||||||
"/:id",
|
"/:id",
|
||||||
requireAuth({
|
requireAuth({
|
||||||
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN]
|
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN, AuthMode.API_KEY]
|
||||||
}),
|
}),
|
||||||
secretImpsController.updateSecretImport
|
secretImpsController.updateSecretImport
|
||||||
);
|
);
|
||||||
@@ -23,7 +23,7 @@ router.put(
|
|||||||
router.delete(
|
router.delete(
|
||||||
"/:id",
|
"/:id",
|
||||||
requireAuth({
|
requireAuth({
|
||||||
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN]
|
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN, AuthMode.API_KEY]
|
||||||
}),
|
}),
|
||||||
secretImpsController.deleteSecretImport
|
secretImpsController.deleteSecretImport
|
||||||
);
|
);
|
||||||
@@ -31,7 +31,7 @@ router.delete(
|
|||||||
router.get(
|
router.get(
|
||||||
"/",
|
"/",
|
||||||
requireAuth({
|
requireAuth({
|
||||||
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN]
|
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN, AuthMode.API_KEY]
|
||||||
}),
|
}),
|
||||||
secretImpsController.getSecretImports
|
secretImpsController.getSecretImports
|
||||||
);
|
);
|
||||||
@@ -39,7 +39,7 @@ router.get(
|
|||||||
router.get(
|
router.get(
|
||||||
"/secrets",
|
"/secrets",
|
||||||
requireAuth({
|
requireAuth({
|
||||||
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN]
|
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN, AuthMode.API_KEY]
|
||||||
}),
|
}),
|
||||||
secretImpsController.getAllSecretsFromImport
|
secretImpsController.getAllSecretsFromImport
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import { AuthMode } from "../../variables";
|
|||||||
router.post(
|
router.post(
|
||||||
"/",
|
"/",
|
||||||
requireAuth({
|
requireAuth({
|
||||||
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN]
|
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN, AuthMode.API_KEY]
|
||||||
}),
|
}),
|
||||||
createFolder
|
createFolder
|
||||||
);
|
);
|
||||||
@@ -20,7 +20,7 @@ router.post(
|
|||||||
router.patch(
|
router.patch(
|
||||||
"/:folderName",
|
"/:folderName",
|
||||||
requireAuth({
|
requireAuth({
|
||||||
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN]
|
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN, AuthMode.API_KEY]
|
||||||
}),
|
}),
|
||||||
updateFolderById
|
updateFolderById
|
||||||
);
|
);
|
||||||
@@ -28,7 +28,7 @@ router.patch(
|
|||||||
router.delete(
|
router.delete(
|
||||||
"/:folderName",
|
"/:folderName",
|
||||||
requireAuth({
|
requireAuth({
|
||||||
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN]
|
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN, AuthMode.API_KEY]
|
||||||
}),
|
}),
|
||||||
deleteFolder
|
deleteFolder
|
||||||
);
|
);
|
||||||
@@ -36,7 +36,7 @@ router.delete(
|
|||||||
router.get(
|
router.get(
|
||||||
"/",
|
"/",
|
||||||
requireAuth({
|
requireAuth({
|
||||||
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN]
|
acceptedAuthModes: [AuthMode.JWT, AuthMode.SERVICE_TOKEN, AuthMode.API_KEY]
|
||||||
}),
|
}),
|
||||||
getFolders
|
getFolders
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user