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

cli support for registration entry "federates with" list #582

Merged

Conversation

azdagron
Copy link
Member

@azdagron azdagron commented Sep 5, 2018

This PR adds support for specifying trust domain SPIFFE IDs that a registration entry federates with.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

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

Looks great!
We should update doc/spire_server.md with the new CLI commands / options.

I noticed that the registration handler does not properly propagate errors. E.g.: when trying to create an entry using the -federatesWith argument specifying a SPIFFE ID of a TD that cannot be found, I get:
rpc error: code = Unknown desc = Error trying to create entry which does not provide error details (should include the unable to find federated bundle... error).

This is a pre-existing issue but it would be great if we can address it. It seems that we may just need to return err here: https://github.com/spiffe/spire/blob/master/pkg/server/endpoints/registration/handler.go#L61

We can address that separately.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

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

🥇 🚢

@azdagron azdagron merged commit 7ef6699 into spiffe:master Sep 6, 2018
@azdagron azdagron deleted the cli-reg-entry-federates-with-support branch September 6, 2018 15:14
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.

2 participants