Skip to content

add rbi edit and connection edit support for nsf#217

Open
mtyagi-ks wants to merge 2 commits into
rbi-nsf-supportfrom
rbi-nsf-support-int
Open

add rbi edit and connection edit support for nsf#217
mtyagi-ks wants to merge 2 commits into
rbi-nsf-supportfrom
rbi-nsf-support-int

Conversation

@mtyagi-ks

Copy link
Copy Markdown
Contributor

Summary

  • Add NSF record resolve/load/save support to pam rbi edit and pam connection edit so Nested Shared Folder PAM records work the same as classic vault records.
  • Persist NSF updates via nsf_management.update_nsf_record + extract_typed_record_data (aligned with pam config).
  • Reuse existing PAM DAG type constants for connection resource/config/user linking; allow explicit -c for NSF configs when DAG discovery alone is not enough.

Test plan

  • pam connection edit <nsf-rbi-uid> -c <nsf-config-uid> succeeds and prints rotation/tunnel settings
  • pam rbi edit -r <nsf-rbi-uid> -c <nsf-config-uid> --remote-browser-isolation on --connections-recording on
  • nsf-get <nsf-rbi-uid> shows updated pamRemoteBrowserSettings / seed as expected
  • Classic (non-NSF) RBI + connection edit still works
  • Invalid/missing UID or non-PAM NSF record returns a clear error


def _load_typed_record(
vault: vault_online.VaultOnline,
context: KeeperParams,

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.

if you are passing context, don't pass vault as it is present in context and can be fetched from it, or resolve methods to work with vault if context is not mandatory

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

addressed



def _resolve_nsf_record_uid(vault: vault_online.VaultOnline, identifier: str) -> Optional[str]:
"""Resolve an NSF record UID from a UID or exact title."""

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.

these common methods can be moved to another file line pam_utils for reuse in all pamm files

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

addressed

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.

2 participants