Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: correct re-configuring duration on add. priv.
Scott Wilson9acc58f2ba50
diff --git a/backend/src/ee/services/license/license-fns.ts b/backend/src/ee/services/license/license-fns.tsindex e94f89113d..5548e159a0 100644--- a/backend/src/ee/services/license/license-fns.ts+++ b/backend/src/ee/services/license/license-fns.ts@@ -73,7 +73,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({customRateLimits: false,subOrganization: false,customAlerts: false,- secretAccessInsights: false,+ secretAccessInsights: true,auditLogs: false,auditLogsRetentionDays: 0,auditLogStreams: false,diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeModifySection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeModifySection.tsxindex 2b9021985f..ca59fb95ef 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeModifySection.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeModifySection.tsx@@ -309,66 +309,66 @@ export const IdentityProjectAdditionalPrivilegeModifySection = ({defaultValue="1h"name="temporaryAccess.temporaryRange"render={({ field, fieldState: { error } }) => (- <Field>- <FieldLabel>- <TtlFormLabel label="Validity" />- </FieldLabel>- <UnstableInput {...field} isError={Boolean(error?.message)} />- {error?.message && <FieldError>{error.message}</FieldError>}- </Field>+ <>+ <Field>+ <FieldLabel>+ <TtlFormLabel label="Validity" />+ </FieldLabel>+ <UnstableInput {...field} isError={Boolean(error?.message)} />+ {error?.message && <FieldError>{error.message}</FieldError>}+ </Field>+ <div className="flex items-center space-x-2">+ <Button+ size="xs"+ variant="outline"+ onClick={() => {+ const temporaryRange = field.value;+ if (!temporaryRange) {+ form.setError(+ "temporaryAccess.temporaryRange",+ { type: "required", message: "Required" },+ { shouldFocus: true }+ );+ return;+ }+ form.clearErrors("temporaryAccess.temporaryRange");+ form.setValue(+ "temporaryAccess",+ {+ isTemporary: true,+ temporaryAccessStartTime: new Date().toISOString(),+ temporaryRange,+ temporaryAccessEndTime: new Date(+ new Date().getTime() + ms(temporaryRange)+ ).toISOString()+ },+ { shouldDirty: true }+ );+ }}+ >+ {isTemporary ? "Restart" : "Configure"}+ </Button>+ {isTemporary && (+ <Button+ size="xs"+ variant="danger"+ onClick={() => {+ form.setValue(+ "temporaryAccess",+ {+ isTemporary: false+ },+ { shouldDirty: true }+ );+ }}+ >+ Remove Duration+ </Button>+ )}+ </div>+ </>)}/>- <div className="flex items-center space-x-2">- <Button- size="xs"- variant="outline"- onClick={() => {- const temporaryRange = form.getValues(- "temporaryAccess.temporaryRange"- );- if (!temporaryRange) {- form.setError(- "temporaryAccess.temporaryRange",- { type: "required", message: "Required" },- { shouldFocus: true }- );- return;- }- form.clearErrors("temporaryAccess.temporaryRange");- form.setValue(- "temporaryAccess",- {- isTemporary: true,- temporaryAccessStartTime: new Date().toISOString(),- temporaryRange,- temporaryAccessEndTime: new Date(- new Date().getTime() + ms(temporaryRange)- ).toISOString()- },- { shouldDirty: true }- );- }}- >- {isTemporary ? "Restart" : "Configure"}- </Button>- {isTemporary && (- <Button- size="xs"- variant="danger"- onClick={() => {- form.setValue(- "temporaryAccess",- {- isTemporary: false- },- { shouldDirty: true }- );- }}- >- Remove Duration- </Button>- )}- </div></div></PopoverContent></Popover>diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MembershipProjectAdditionalPrivilegeModifySection.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MembershipProjectAdditionalPrivilegeModifySection.tsxindex 75961e1935..0abc47de19 100644--- a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MembershipProjectAdditionalPrivilegeModifySection.tsx+++ b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MembershipProjectAdditionalPrivilegeModifySection.tsx@@ -305,66 +305,66 @@ export const MembershipProjectAdditionalPrivilegeModifySection = ({defaultValue="1h"name="temporaryAccess.temporaryRange"render={({ field, fieldState: { error } }) => (- <Field>- <FieldLabel>- <TtlFormLabel label="Validity" />- </FieldLabel>- <UnstableInput {...field} isError={Boolean(error?.message)} />- {error?.message && <FieldError>{error.message}</FieldError>}- </Field>+ <>+ <Field>+ <FieldLabel>+ <TtlFormLabel label="Validity" />+ </FieldLabel>+ <UnstableInput {...field} isError={Boolean(error?.message)} />+ {error?.message && <FieldError>{error.message}</FieldError>}+ </Field>+ <div className="flex items-center space-x-2">+ <Button+ size="xs"+ variant="outline"+ onClick={() => {+ const temporaryRange = field.value;+ if (!temporaryRange) {+ form.setError(+ "temporaryAccess.temporaryRange",+ { type: "required", message: "Required" },+ { shouldFocus: true }+ );+ return;+ }+ form.clearErrors("temporaryAccess.temporaryRange");+ form.setValue(+ "temporaryAccess",+ {+ isTemporary: true,+ temporaryAccessStartTime: new Date().toISOString(),+ temporaryRange,+ temporaryAccessEndTime: new Date(+ new Date().getTime() + ms(temporaryRange)+ ).toISOString()+ },+ { shouldDirty: true }+ );+ }}+ >+ {isTemporary ? "Restart" : "Configure"}+ </Button>+ {isTemporary && (+ <Button+ size="xs"+ variant="danger"+ onClick={() => {+ form.setValue(+ "temporaryAccess",+ {+ isTemporary: false+ },+ { shouldDirty: true }+ );+ }}+ >+ Remove Duration+ </Button>+ )}+ </div>+ </>)}/>- <div className="flex items-center space-x-2">- <Button- size="xs"- variant="outline"- onClick={() => {- const temporaryRange = form.getValues(- "temporaryAccess.temporaryRange"- );- if (!temporaryRange) {- form.setError(- "temporaryAccess.temporaryRange",- { type: "required", message: "Required" },- { shouldFocus: true }- );- return;- }- form.clearErrors("temporaryAccess.temporaryRange");- form.setValue(- "temporaryAccess",- {- isTemporary: true,- temporaryAccessStartTime: new Date().toISOString(),- temporaryRange,- temporaryAccessEndTime: new Date(- new Date().getTime() + ms(temporaryRange)- ).toISOString()- },- { shouldDirty: true }- );- }}- >- {isTemporary ? "Restart" : "Configure"}- </Button>- {isTemporary && (- <Button- size="xs"- variant="danger"- onClick={() => {- form.setValue(- "temporaryAccess",- {- isTemporary: false- },- { shouldDirty: true }- );- }}- >- Remove Duration- </Button>- )}- </div></div></PopoverContent></Popover>