mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 12:38:36 +00:00
Make PR review adjustments, ssh ca public key endpoint, ssh cert template status
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { SshCaStatus } from "@app/hooks/api/ssh-ca";
|
||||
import { SshCertTemplateStatus } from "@app/hooks/api/sshCertificateTemplates";
|
||||
|
||||
import { CaStatus, CaType } from "./enums";
|
||||
|
||||
@@ -13,7 +14,7 @@ export const caStatusToNameMap: { [K in CaStatus]: string } = {
|
||||
[CaStatus.PENDING_CERTIFICATE]: "Pending Certificate"
|
||||
};
|
||||
|
||||
export const getCaStatusBadgeVariant = (status: CaStatus | SshCaStatus) => {
|
||||
export const getCaStatusBadgeVariant = (status: CaStatus | SshCaStatus | SshCertTemplateStatus) => {
|
||||
switch (status) {
|
||||
case CaStatus.ACTIVE:
|
||||
return "success";
|
||||
|
||||
@@ -10,6 +10,8 @@ export type TSshCertificate = {
|
||||
publicKey: string;
|
||||
principals: string[];
|
||||
keyId: string;
|
||||
notBefore: string;
|
||||
notAfter: string;
|
||||
};
|
||||
|
||||
export type TSshCertificateAuthority = {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
export {
|
||||
useCreateSshCertTemplate,
|
||||
useDeleteSshCertTemplate,
|
||||
useUpdateSshCertTemplate} from "./mutations";
|
||||
useUpdateSshCertTemplate
|
||||
} from "./mutations";
|
||||
export { useGetSshCertTemplate } from "./queries";
|
||||
export * from "./types";
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
export enum SshCertTemplateStatus {
|
||||
ACTIVE = "active",
|
||||
DISABLED = "disabled"
|
||||
}
|
||||
|
||||
export type TSshCertificateTemplate = {
|
||||
id: string;
|
||||
sshCaId: string;
|
||||
status: SshCertTemplateStatus;
|
||||
name: string;
|
||||
ttl: string;
|
||||
maxTTL: string;
|
||||
@@ -25,6 +31,7 @@ export type TCreateSshCertificateTemplateDTO = {
|
||||
|
||||
export type TUpdateSshCertificateTemplateDTO = {
|
||||
id: string;
|
||||
status?: SshCertTemplateStatus;
|
||||
name?: string;
|
||||
ttl?: string;
|
||||
maxTTL?: string;
|
||||
|
||||
Reference in New Issue
Block a user