-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: secret sharing #1886
feat: secret sharing #1886
Conversation
frontend/src/views/ShareSecretPage/components/AddShareSecretModal.tsx
Outdated
Show resolved
Hide resolved
frontend/src/views/ShareSecretPage/components/AddShareSecretModal.tsx
Outdated
Show resolved
Hide resolved
frontend/src/views/ShareSecretPage/components/ShareSecretsTable.tsx
Outdated
Show resolved
Hide resolved
frontend/src/views/ShareSecretPublicPage/ShareSecretPublicPage.tsx
Outdated
Show resolved
Hide resolved
frontend/src/views/ShareSecretPublicPage/ShareSecretPublicPage.tsx
Outdated
Show resolved
Hide resolved
frontend/src/views/ShareSecretPublicPage/ShareSecretPublicPage.tsx
Outdated
Show resolved
Hide resolved
frontend/src/views/ShareSecretPage/components/AddShareSecretModal.tsx
Outdated
Show resolved
Hide resolved
3dcbed5
to
a93d350
Compare
a93d350
to
1068e60
Compare
const { actor, actorId, orgId, actorAuthMethod, actorOrgId, name, encryptedValue, iv, tag, hashedHex, expiresAt } = | ||
createSharedSecretInput; | ||
const { permission } = await permissionService.getOrgPermission(actor, actorId, orgId, actorAuthMethod, actorOrgId); | ||
if (!permission) throw new UnauthorizedError({ name: "User not in org" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a suggestion: I think this is unneccessary as the getOrgPermission
already does the check.
const [tableData, setTableData] = useState<TSharedSecret[]>([]); | ||
const { isLoading, data = [] } = useGetSharedSecrets(); | ||
|
||
useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to do useEffect
pattern for derived state.
You can just put it in variable like this
const filteredData = data.filter((secret) => !secret.expiresAt || new Date(secret.expiresAt) > new Date())
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thanks
Description 📣
Adds the ability to share secrets in a time-sensitive manner from the Infisical web dashboard with anybody (non-Infisical users as well) securely using a signing algorithm.
Loom Walkthrough
https://www.loom.com/share/cb54a37ae5724b5f85026425fe366e5a?sid=15e15f84-d447-4cf1-b5ef-90ac109c8621
Type ✨
Tests 🛠️