Auth and authz advice #3706
Unanswered
joeblew999
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I suspect Clue and the interceptors is where I should be focussing on ? I have 3 layers where I need to apply authz: CLI and GUI. service layer . Both rest and sse. db . Delete for example . |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just to make sure I understand, is there a reason you can't use Goa's built-in support for auth? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m working on an SSE plugin for goa.
I’m really glad to see Goa incorporating SSE. I use Datastar to drive gui updates . But I think MCP GUI can use it . Services can also use it instead of web hooks possibly too.
But first I need to add auth and authz. Typically I would use authelia. It’s a side car and works with caddy . But I’m not sure it’s going to work so well with Goa. Ref: https://www.authelia.com/configuration/miscellaneous/server-endpoints-authz/
Can someone offer any advice of how to do auth and authz with Goa ? Auth is cross cutting and so tricky to do with a strongly typed code generator . What I mean is that auth tends to be data driven .
One concern I have is how to do data level auth . I use SQLite or Corrosion to keep it kiss and avoid complexity . At runtime , I plan to lookup the authz rules from the db , probably keep them in an in memory cache and then I could apply them to the handlers . Same goes for sql calls , where I can add authz predicates . This , is typically a multi tenant style of setup .
My aim is to keep its very simple but usable by all goa users . Corrosion is particular is nice because it has query subscriptions and automatic global replication , allowing the SEE aspects to be heavily utilised , so that a web gui or service can get updated when data changes automatically.
Beta Was this translation helpful? Give feedback.
All reactions