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

Add tctl notifications commands #42124

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Add tctl notifications commands #42124

merged 1 commit into from
Aug 8, 2024

Conversation

rudream
Copy link
Contributor

@rudream rudream commented May 29, 2024

Purpose

Part of #37704

This PR adds various tctl commands for creating and managing user-created notifications.

Admins can create notifications targeting one or more roles, or target a specific user. They can also list user-created user-specific notifications for a user, or user-created global notifications.

changelog: tctl allows cluster administrators to create custom notifications targeting Teleport users.

@rudream rudream added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 labels May 29, 2024
@github-actions github-actions bot requested review from avatus and gzdunek May 29, 2024 03:21
@github-actions github-actions bot added size/lg tctl tctl - Teleport admin tool ui labels May 29, 2024
lib/auth/notifications/notificationsv1/service.go Outdated Show resolved Hide resolved
lib/auth/notifications/notificationsv1/service.go Outdated Show resolved Hide resolved
lib/web/ui/labels.go Outdated Show resolved Hide resolved
tool/tctl/common/notification_command.go Outdated Show resolved Hide resolved
tool/tctl/common/notification_command.go Show resolved Hide resolved
tool/tctl/common/notification_command.go Outdated Show resolved Hide resolved
tool/tctl/common/notification_command.go Outdated Show resolved Hide resolved
@rudream rudream force-pushed the yassine/notifications/tctl branch 3 times, most recently from 31c6f2f to 2bf04aa Compare June 26, 2024 22:56
@rudream rudream requested review from zmb3 and rosstimothy June 26, 2024 22:56
lib/auth/notifications/notificationsv1/service.go Outdated Show resolved Hide resolved
lib/auth/notifications/notificationsv1/service.go Outdated Show resolved Hide resolved
lib/web/ui/notification.go Outdated Show resolved Hide resolved
tool/tctl/common/notification_command.go Outdated Show resolved Hide resolved
tool/tctl/common/notification_command.go Outdated Show resolved Hide resolved
@rudream rudream requested a review from rosstimothy June 28, 2024 08:28
@rudream rudream requested a review from rosstimothy July 12, 2024 21:31
lib/auth/notifications/notificationsv1/service.go Outdated Show resolved Hide resolved
lib/auth/notifications/notificationsv1/service.go Outdated Show resolved Hide resolved
lib/web/ui/notification.go Outdated Show resolved Hide resolved
tool/tctl/common/notification_command.go Outdated Show resolved Hide resolved
tool/tctl/common/notification_command.go Outdated Show resolved Hide resolved
@rudream rudream force-pushed the yassine/notifications/tctl branch from 01db620 to 73875a2 Compare July 23, 2024 20:20
@rudream rudream requested a review from zmb3 July 23, 2024 20:20
Copy link
Collaborator

@zmb3 zmb3 left a comment

Choose a reason for hiding this comment

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

Please make sure to squash and rebase so we get rid of all the "CR" in the commit message.

@rudream rudream force-pushed the yassine/notifications/tctl branch from 73875a2 to 2ad4697 Compare July 29, 2024 08:24
@rudream rudream requested a review from rosstimothy July 29, 2024 08:24
@rudream rudream requested a review from zmb3 August 7, 2024 18:00
@rudream rudream force-pushed the yassine/notifications/tctl branch 2 times, most recently from a6d3f16 to d560e0e Compare August 7, 2024 18:15
@zmb3
Copy link
Collaborator

zmb3 commented Aug 7, 2024

/excludeflake TestNotificationCommmandCRUD

@rudream rudream force-pushed the yassine/notifications/tctl branch from d560e0e to 8737ecb Compare August 7, 2024 21:01
@zmb3 zmb3 removed the no-changelog Indicates that a PR does not require a changelog entry label Aug 7, 2024
@rudream rudream force-pushed the yassine/notifications/tctl branch from 8737ecb to 042816a Compare August 8, 2024 05:29
@rudream rudream enabled auto-merge August 8, 2024 05:30
@rudream rudream added this pull request to the merge queue Aug 8, 2024
Merged via the queue into master with commit 43c7c01 Aug 8, 2024
40 checks passed
@rudream rudream deleted the yassine/notifications/tctl branch August 8, 2024 06:06
@public-teleport-github-review-bot

@rudream See the table below for backport results.

Branch Result
branch/v16 Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants