Re:Ask HN: Can A give permission to C to access B, without B...
by e12e on Friday March 06, 2015 @03:53PM
(#9159508)
Does anyone have happy memories using SAML for anything remotely useful? It always struck me as possibly even more convoluted to get right than x.509 (and recall eg: python not validation server host names in certs by default for a long, long time -- so getting x.509 right in production isn't exactly trivial -- especially if you're not a domain expert).
That said, yes I think SAML could be leveraged to fulfill the requirements in the question. I just think it would be quite painful ;-)
When A talks to B the one time it is allowed to, it gives B an X.509 certificate to which A holds the private key for each role for which A is permitted to delegate access on B. A later gives C a certificate, signed with the appropriate private key, for each role on B to which it is delegating access to C.
C then presents the appropriate certificate to B with any operation, proving that it has been authorized.
(You can do this with just one certificate for each A->B and A->C->B if you identify the roles within the certificate, which is technically doable within X.509 but I think requires going through IANA to get official identifiers for each role to be delegated -- these would be identified in the certificate A gives to C to present to B -- which may or not be practical.)