🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@kba/anno-acl

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kba/anno-acl

Anno authorization rules

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
4
100%
Maintainers
1
Weekly downloads
 
Created
Source

anno-acl

Authorization for anno-stores

ACL Users

  • role: An optional global role of a user
  • id: The user ID such as their homepage or email address
  • perm: An array of objects of collection-specific roles
    • collection: The collection these roles apply to
    • role: The roles

ACL Rules

Rules for authorization are expressed as sift-rule rules and read as JSON from the environment variable ANNO_ACL_RULES.

Rules are an ordered list of CONDITION-RESULT-DESCRIPTION triplets:

  • CONDITION is a sift query on an object encoding the request context
    • method: One of the methods of anno-store
    • anno: The existing annotation
    • newAnno: The new annotation (in case of create, revise)
    • user: The user calling the method, see ACL Users
    • collection: ID of the collection in question. Defaults to default
  • RESULT is true to allow or false to deny the request
  • DESCRIPTION is an optional description of the rule

FAQs

Package last updated on 17 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts