cs3org / reva

WebDAV/gRPC/HTTP high performance server to link high level clients to storage backends
https://reva.link
Apache License 2.0
166 stars 113 forks source link

Enforce authentication on service definition #411

Open labkode opened 4 years ago

labkode commented 4 years ago

To protect resources with an authentication layer the current way is to list the http or grpc endpoints to protect in the configuration file.

I think it makes more sense that the service itself defines if it needs to be authenticated (have a user context) or not.

The ownCloud app framework used to work this way.

@butonic @refs feedback please :)

refs commented 4 years ago

I also think it keep things cleaner an authentication per service basis. At least such responsibility belongs to the service 👍

labkode commented 4 years ago

Let me work on that then

labkode commented 4 years ago

@butonic @refs and probably for the HTTP services having CORS enforced maybe is also a good idea?

refs commented 4 years ago

@labkode 👍. Might be a good practice to look into some more OWASP headers 💃

labkode commented 4 years ago

@refs let's create a security or OWASP middleware