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

Support role bootstrapping in OSS #11175

Merged
merged 5 commits into from
Mar 17, 2022
Merged

Conversation

espadolini
Copy link
Contributor

@espadolini espadolini commented Mar 16, 2022

After this is merged we can remove the dynamic marshaler registration in gravitational/teleport.e#416.

Replaces #7130.

Doublecheck the behavior of lib/auth.migrateLegacyResources when backporting this, as the migration will apply to the bootstrapped resources.

lib/services/resource.go Outdated Show resolved Hide resolved
tool/teleport/common/teleport_test.go Outdated Show resolved Hide resolved
RegisterResourceMarshaler(types.KindUser, func(r types.Resource, opts ...MarshalOption) ([]byte, error) {
rsc, ok := r.(types.User)
RegisterResourceMarshaler(types.KindUser, func(resource types.Resource, opts ...MarshalOption) ([]byte, error) {
user, ok := resource.(types.User)
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for being thorough, nice.

@espadolini espadolini enabled auto-merge (squash) March 17, 2022 09:48
@espadolini espadolini merged commit 160df00 into master Mar 17, 2022
@espadolini espadolini deleted the espadolini/role-bootstrap branch March 17, 2022 10:12
espadolini added a commit that referenced this pull request Mar 18, 2022
* Add role bootstrapping

* Test coverage

* Better variable names

* Remove spurious log, add better error messages
espadolini added a commit that referenced this pull request Mar 18, 2022
* Add role bootstrapping

* Test coverage

* Better variable names

* Remove spurious log, add better error messages
@webvictim webvictim mentioned this pull request Apr 19, 2022
@webvictim webvictim mentioned this pull request Jun 8, 2022
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.

None yet

3 participants