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

Forbid custom namespaces in various resources #49830

Merged
merged 5 commits into from
Dec 5, 2024

Conversation

codingllama
Copy link
Contributor

Forbid the use of custom namespaces in various resources, akin to commit ae99259. Only "" or "default" (as in apidefaults.Namespace) are allowed.

Namespaces are a vestigial feature from olden Teleport times. It's largely deprecated/unused, but this PR gives us some extra confidence to eventually do a wider cleanup in the future.

(Note: this is not about k8s namespaces.)

#49509

@codingllama codingllama added the no-changelog Indicates that a PR does not require a changelog entry label Dec 5, 2024
@github-actions github-actions bot requested review from mvbrock and ryanclark December 5, 2024 16:56
@codingllama
Copy link
Contributor Author

@fspmarshall let me know if you think I missed something.

@codingllama codingllama force-pushed the codingllama/namespace-forbid branch from 3f1e72a to 1c3062b Compare December 5, 2024 17:33
@codingllama
Copy link
Contributor Author

PTAL @fspmarshall.

@codingllama
Copy link
Contributor Author

Thanks for the quick reviews, folks.

@codingllama codingllama added this pull request to the merge queue Dec 5, 2024
Merged via the queue into master with commit 8e723cc Dec 5, 2024
41 checks passed
@codingllama codingllama deleted the codingllama/namespace-forbid branch December 5, 2024 19:40
carloscastrojumo pushed a commit to carloscastrojumo/teleport that referenced this pull request Feb 19, 2025
* Forbid Database and App updates with custom namespaces

* Forbid custom namespaces on api/types.KeepAlive

* Forbid custom namespaces in api/types.Metadata

* Forbid custom namespaces in api/types.RoleV6

* Use a share validation helper, improve error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants