Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
[delete] remove api key permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
boristane committed Sep 23, 2023
1 parent 2e97021 commit 895a6ce
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Removed
- API Key permissions
## [0.0.77] 2023-09-07
### Added
- Enabled passing the api key as arg
Expand Down
11 changes: 0 additions & 11 deletions src/commands/auth/handlers/outputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,7 @@ export function iam(profile: string, key: APIKey, workspace: Workspace, environm
});
table.push([`${workspace.id}`, `${environment.id}`, key.userId, apiKey]);

const permissionsTable = new Table({
chars: tableChars,
head: ["Permission", "Value"].map((e) => `${chalk.bold(chalk.cyan(e))}`),
});
Object.keys(key.permissions)
.sort()
.map((k) => {
permissionsTable.push([k, (key.permissions as any)[k]]);
});

console.log(`\n${path}`);
console.log(BASELIME_DOMAIN);
console.log(table.toString());
console.log(permissionsTable.toString());
}
1 change: 0 additions & 1 deletion src/services/api/paths/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export interface APIKey {
userId: string;
environmentId: string;
workspaceId: string;
permissions: KeyPermissions;
created: string;
updated: string;
}
Expand Down

0 comments on commit 895a6ce

Please sign in to comment.