Skip to content

NSF record (add, update and details) and folder (add and remove) operation.#184

Closed
ukumar-ks wants to merge 16 commits into
feature-kd-commands-part2from
feature-kd-commands-part2-int
Closed

NSF record (add, update and details) and folder (add and remove) operation.#184
ukumar-ks wants to merge 16 commits into
feature-kd-commands-part2from
feature-kd-commands-part2-int

Conversation

@ukumar-ks

Copy link
Copy Markdown
Contributor

No description provided.

@ukumar-ks ukumar-ks force-pushed the feature-kd-commands-part2-int branch from e8efc2b to 6db7cac Compare July 1, 2026 09:19
@datadog-keeper-security

This comment has been minimized.

return { recordUid, recordAdd }
}

export async function addNestedShareRecord(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is good but vault/records/v3/add supports batching size of 1000. Add support for that in this function or as a different function.

Comment on lines +362 to +365
if (entry.owner) return 'owner'
if (entry.role) return entry.role
if (entry.shareAdmin) return 'shared-manager'
return 'content-manager'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return should be enum, not surprise strings

inheritPermissions
)

const response = await auth.executeRest(folderAddMessage({ folderData: [folderData] }))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

batching please

if (!folderKey) continue
try {
return await platform.aesGcmDecrypt(encryptedKey, folderKey)
} catch (gcmErr) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you cached for gcmErr but what about default case ? in case of default log and throw error.

hasFileFields: boolean
}

/** @deprecated Use ParsedNsfFields */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need deprecated here ?

@ukumar-ks ukumar-ks closed this Jul 8, 2026
@ukumar-ks ukumar-ks deleted the feature-kd-commands-part2-int branch July 8, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants