mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 21:58:52 +00:00
Update db schema for ssh login mappings
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { SshHostsSchema } from "@app/db/schemas";
|
||||
|
||||
export const sanitizedSshHost = SshHostsSchema.pick({
|
||||
@@ -9,3 +11,10 @@ export const sanitizedSshHost = SshHostsSchema.pick({
|
||||
userSshCaId: true,
|
||||
hostSshCaId: true
|
||||
});
|
||||
|
||||
export const loginMappingSchema = z.object({
|
||||
loginUser: z.string(),
|
||||
allowedPrincipals: z.object({
|
||||
usernames: z.array(z.string())
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user