cap-js-community / feature-toggle-library

SAP BTP feature toggle library enables Node.js applications using the SAP Cloud Application Programming Model to maintain live-updatable feature toggles via Redis.
https://cap-js-community.github.io/feature-toggle-library/
Apache License 2.0
5 stars 2 forks source link

Option for granular service endpoint access control #57

Closed rlindner81 closed 7 months ago

rlindner81 commented 7 months ago

Our FeatureService has

read endpoints,

write endpoints,

and admin/debug endpoints

I want to be able to set dedicated access roles for the

both read and write endpoints, =>serviceAccessRoles ?? ["system-user"]

read endpoints, =>readAccessRoles ?? serviceAccessRoles ?? ["system-user"]

write endpoints, =>writeAccessRoles ?? serviceAccessRoles ?? ["system-user"]

admin endpoints, =>adminAccessRoles ?? []