Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ApiKey): add CRUDL for API keys #9

Merged
merged 6 commits into from
Oct 24, 2024
Merged

feat(ApiKey): add CRUDL for API keys #9

merged 6 commits into from
Oct 24, 2024

Conversation

xjacka
Copy link
Contributor

@xjacka xjacka commented Oct 18, 2024

Lukáš Janeček added 2 commits October 18, 2024 14:54
Signed-off-by: Lukáš Janeček <lukas.janecek1@ibm.com>
Signed-off-by: Lukáš Janeček <lukas.janecek1@ibm.com>
@xjacka xjacka marked this pull request as ready for review October 22, 2024 08:47
Signed-off-by: Lukáš Janeček <lukas.janecek1@ibm.com>
@xjacka xjacka requested a review from pilartomas October 22, 2024 11:27
src/administration/dtos/api-keys-list.ts Outdated Show resolved Hide resolved
src/administration/api-keys.module.ts Outdated Show resolved Hide resolved
src/administration/api-keys.service.ts Show resolved Hide resolved
src/administration/api-keys.service.ts Outdated Show resolved Hide resolved
src/administration/api-keys.service.ts Outdated Show resolved Hide resolved
src/administration/dtos/api-key-create.ts Show resolved Hide resolved
src/administration/api-keys.service.ts Outdated Show resolved Hide resolved
src/administration/api-keys.service.ts Outdated Show resolved Hide resolved
Comment on lines +51 to +52
const authorProjectPrincipal = getProjectPrincipal();
const project = await ORM.em.getRepository(Project).findOneOrFail({ id: project_id });
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider capping the number of keys per project.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, do you think this is needed?

Signed-off-by: Lukáš Janeček <lukas.janecek1@ibm.com>
@xjacka xjacka requested a review from pilartomas October 23, 2024 09:58
Signed-off-by: Lukáš Janeček <lukas.janecek1@ibm.com>
@xjacka xjacka merged commit 68d01cf into main Oct 24, 2024
6 checks passed
@xjacka xjacka deleted the api_key_crudl branch October 24, 2024 06:53
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