I already have CA root and key (pem) files in the server. Potential users can create Certificate Sign Requests with "openssl req -new...." I can sign / approve / provide temporary CSR with "openssl x509 -req...." I can check that certs are valid and haven't _expired_ with "openssl verify...."
So the question is: How can I make it so that only clients connecting with a certificate signed with the root CA can call [some] functions?
If it's to much o a pain to restrict only some functions, restricting the whole gRPC server also works for me.
The authentication overview guide says it's possible to extend or customize authentication methods, but it seems like such means (MetadataCredentialsPlugin) aren't available in golang yet. https://grpc.io/docs/guides/auth.html
Any ideas? -Ismael
Ismael Farfán
unread,
Oct 19, 2018, 4:50:19 PM10/19/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
--
Do not let me induce you to satisfy my curiosity, from an expectation,
that I shall gratify yours. What I may judge proper to conceal, does
not concern myself alone.
Evan Jones
unread,
Oct 22, 2018, 9:21:02 AM10/22/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
The gRPC documentation isn't super clear about how you should use these, but if the default configuration doesn't do what you want, you can call NewTLS with your own tls.Config that contains the options you want (e.g. the root certificate that you want to trust, etc).
Hope that helps,
Evan Jones
Ismael Farfan
unread,
Oct 22, 2018, 2:33:29 PM10/22/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message