Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,18 @@ Destroys: nothing, this command is read-only.

The output CSV has the header:
```
projectId,projectName,branchId,branchName,componentId,configurationId,creatorEmail,activeUser,createdDate,snowflakeSchema,readOnlyStorageAccess
projectId,projectName,branchId,branchName,workspaceId,componentId,configurationId,creatorEmail,activeUser,createdDate,snowflakeSchema,backend,loginType,readOnlyStorageAccess
```
`activeUser` is `true` when the workspace's creator email still matches a current user of the project,
which is the same signal the `*-ownerless-*` commands act on.

`loginType` is the authentication mode of the workspace's backend user (e.g.
`snowflake-legacy-service` = password, `snowflake-service-keypair` = key pair). It is the column to
filter on when auditing an organization ahead of the Snowflake password-authentication deprecation;
it is empty for backends that do not report a login type. `workspaceId` is the ID that
`manage:delete-project-workspaces-by-id` takes as input, so a row of this report can be fed straight
into the deletion step without a second lookup.

### Check the state of a list of workspaces
Read-only. Takes a list of workspaces you already care about (typically left over from an earlier
cleanup) and reports, per row, whether the workspace is still live, whether its configuration is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int
'projectName',
'branchId',
'branchName',
'workspaceId',
'componentId',
'configurationId',
'creatorEmail',
'activeUser',
'createdDate',
'snowflakeSchema',
'backend',
'loginType',
'readOnlyStorageAccess'
]);

Expand Down Expand Up @@ -138,12 +141,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$project['name'],
$branch['id'],
$branch['name'],
$workspace['id'],
$workspace['component'],
$workspace['configurationId'],
$workspace['creatorToken']['description'],
$userInProject > 0 ? 'true' : 'false',
$workspace['created'],
$workspace['name'],
$workspace['connection']['backend'],
$workspace['connection']['loginType'] ?? '',
$workspace['readOnlyStorageAccess']
];
$csvFile->writeRow($row);
Expand Down