Creating an Ory Kratos + Keto Auth Plugin (vault-auth-plugin-ory) #1121
taylow
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks for sharing Taylor! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! 👋
Decided to move this from Slack to add details and see if we can get more traction, as I could do with some feedback!
We have developed a HashiCorp Vault auth plugin that integrates with Ory Kratos and Keto.
It generates Vault auth tokens on successful Kratos + Keto auth, with attached Vault policies based on Keto relation tuples.
The code can be found here: https://github.com/comnoco/vault-plugin-auth-ory (still WIP, but almost complete!)
The tl;dr of how this works is:
namespace
,object
, andrelation
subject
in the Keto call)Check
thenamespace
,object
,relation
, andsubject
namespace_relation
, along with alias metadata that contains the Keto relation to be used in the policy.secret/data/workspace/[object]
There is a HashiCorp forum post open that delves into the details, and we’re looking for feedback on the approach.
If anyone is familiar with Vault and Ory, please feel free to chime in! 🙏
https://discuss.hashicorp.com/t/creating-an-ory-kratos-keto-auth-plugin-vault-auth-plugin-ory/46624
Beta Was this translation helpful? Give feedback.
All reactions