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

trusted_cluster resource renames itself, breaking subsequent updates #48309

Closed
hugoShaka opened this issue Nov 1, 2024 · 1 comment · Fixed by #49789
Closed

trusted_cluster resource renames itself, breaking subsequent updates #48309

hugoShaka opened this issue Nov 1, 2024 · 1 comment · Fixed by #49789

Comments

@hugoShaka
Copy link
Contributor

Expected behaviour:

  • As a user I create a resource called clusterA while my remote cluster real name is clusterA.example.com
    Either I have a name mismatch error when I create the resource, or the resource name stays clusterA

Current behaviour:

  • The resource is renamed from clusterA to clusterA.example.com in the backend
  • I don't have a unique identifier to get the resource anymore
  • If I edit the role mapping and apply again for clusterA it silently drop my changes

Bug details:

  • Teleport version v16.4.2
  • Recreation steps: create a TC resource whose name is different than the root cluster name
  • Debug logs

Additional notes

  • this is blocking TC support in the operator
@hugoShaka hugoShaka added the bug label Nov 1, 2024
@hugoShaka hugoShaka changed the title trusted_cluster resource renames itself, causing multiple issues trusted_cluster resource renames itself, breaking subsequent updates Nov 1, 2024
@bernardjkim bernardjkim self-assigned this Nov 18, 2024
@bernardjkim
Copy link
Contributor

Hey @hugoShaka, I've written up a small patch to add resource name validation for trusted_clusters in #49169. However, is there any concern for potentially breaking automation for some users that have been using an invalid trusted_cluster name up until now?

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