-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Restrict AutoUpdateVersion to be created/updated for cloud #49008
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
If I understand correctly, this will render any version invalid on cloud. |
…version-cloud-restriction
@@ -292,6 +293,11 @@ func (s *Service) CreateAutoUpdateVersion(ctx context.Context, req *autoupdate.C | |||
return nil, trace.Wrap(err) | |||
} | |||
|
|||
if modules.GetModules().Features().Cloud && !isAdmin(authCtx) { | |||
return nil, trace.AccessDenied("only role %q is allowed to modifying %q in cloud", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error is not very actionable for users. I think we should have something more user-oriented like:
This Teleport instance is running on Teleport Cloud and the "autoupdate_version" resource is managed by the Teleport Cloud team. You can use the "autoupdate_config" resource to opt-in, opt-out or configure update schedules.
would appreciate one more review |
* Restrict AutoUpdateVersion to be created/updated for cloud * Check builtin Admin role and Cloud feature * More informative error message * Remove KindAutoUpdateAgentRollout from editor role preset
* Restrict AutoUpdateVersion to be created/updated for cloud * Check builtin Admin role and Cloud feature * More informative error message * Remove KindAutoUpdateAgentRollout from editor role preset
* Restrict AutoUpdateVersion to be created/updated for cloud * Check builtin Admin role and Cloud feature * More informative error message * Remove KindAutoUpdateAgentRollout from editor role preset
In this PR added validation to restrict modify
AutoUpdateVersion
for cloud usersRelated:
teleport/rfd/0144-client-tools-updates.md
Lines 216 to 224 in c906170