pypubsub_acl.yaml 837 B

12345678910111213141516171819202122
  1. # ACL for authenticated users
  2. # in this example, username testuser with password foobar has access to two separate pubsub contexts
  3. testuser:
  4. password: foobar
  5. acl:
  6. # Allow sample access to events for a private git repository called privaterepo.git
  7. # Topics are AND'ed together and create a common denominator for what the client has access to.
  8. # Thus, the below grants access to git/privaterepo.git, but not git/otherrepo.git
  9. # You can name/title these segments as you see fit.
  10. title_of_my_first_access_segment:
  11. - git
  12. - privaterepo.git
  13. # Allow access to events for dev@example.org mailing list
  14. allow_email_access_for_foobar:
  15. - email
  16. - example.org
  17. - dev
  18. # Explicitly allow this user to publish topics 'foo' and 'bar', even if they are secured.
  19. topics:
  20. - foo
  21. - bar