Skip to content

Bulk-create safes from CSV

Harbor OnboardRole: operatorDescribes Onboard 0.55.0

Use this when a project or migration needs many safes at once. Harbor validates every row before it calls the vault, creates the safes to the naming and permission standards, records them in the register under one run ID, and can reverse the whole run.

You need: the operator role, a vault session (the status pill shows the vault), and a vault identity with the CyberArk rights to add safes and safe members.

  1. Check the standard: Naming standard for the segment values and budgets, Permissions for the groups each safe type gets.
  2. Make sure the persona groups or roles will exist. Harbor’s pre-flight checks that they resolve; a row whose groups do not resolve is skipped.
  3. Make sure every managing CPM you will use is on Doctor, with its location if you create personal safes.
  1. Open Provision → Create Safe. In Bulk upload (CSV), select Download template for a pre-filled file.
  2. Fill one row per safe. The columns are App, Technology, SubType, AccountType, SafeType, Environment, RetrieveAccounts, ManagingCpm, Description, Owner, CmdbRef and TicketRef; CSV templates describes each one. Test a doubtful name first on Validate.
  3. Choose the file and select Validate (dry run). Nothing is created. The summary counts Total, Dry run (rows that would be created), Skipped and Failed, with the Reason per row.
  4. Fix the rows that failed and validate again until the summary is what you expect.
  5. Select Import for real. The dialog states the blast radius (how many safes will be created); confirm with Import N row(s).
  6. Read the summary: Created, Skipped, Failed. Rows that fail the pre-flight are skipped; the others are created.
  7. Check the result on the Register: the new safes are active, with your owner, CMDB and ticket values and one run ID. Open a Passport to check the members.
  • The whole import was a mistake: take the run ID from the register’s Run column and reverse the run in CyberArk, see Reverse a whole run.
  • One safe is wrong: retire it on its own, see Retire a safe.
  • A safe’s members are wrong after a later change: see Fix RBAC drift.

The same import, for a script or a scheduled job:

Terminal window
Import-PAMSafes -Path .\safes.csv -DryRun # validate only
Import-PAMSafes -Path .\safes.csv -ReportPath .\reports\safes-run.csv # create, keep a per-row report

See Import-PAMSafes and New-HarborImportTemplate.

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.