Add missing redis pam account

This commit is contained in:
Fang-Pen Lin
2025-12-22 16:54:20 -08:00
parent 2714f2e682
commit 99c5186368

View File

@@ -19,6 +19,11 @@ import {
SanitizedPostgresAccountWithResourceSchema,
UpdatePostgresAccountSchema
} from "@app/ee/services/pam-resource/postgres/postgres-resource-schemas";
import {
CreateRedisAccountSchema,
SanitizedRedisAccountWithResourceSchema,
UpdateRedisAccountSchema
} from "@app/ee/services/pam-resource/redis/redis-resource-schemas";
import {
CreateSSHAccountSchema,
SanitizedSSHAccountWithResourceSchema,
@@ -46,6 +51,15 @@ export const PAM_ACCOUNT_REGISTER_ROUTER_MAP: Record<PamResource, (server: Fasti
updateAccountSchema: UpdateMySQLAccountSchema
});
},
[PamResource.Redis]: async (server: FastifyZodProvider) => {
registerPamAccountEndpoints({
server,
resourceType: PamResource.Redis,
accountResponseSchema: SanitizedRedisAccountWithResourceSchema,
createAccountSchema: CreateRedisAccountSchema,
updateAccountSchema: UpdateRedisAccountSchema
});
},
[PamResource.SSH]: async (server: FastifyZodProvider) => {
registerPamAccountEndpoints({
server,