...
Application Consumer - It is our Application itself which uses the consumer JWT key to access the API’s.
External Consumers - Users/Applications which are external/Third Party.
Internal Consumers - Users which are working as part of organization.
Fork the sunbird repo and edit kong-api/defaults/main.yml file and raise a PR.
Code Block |
---|
git clone https://github.com/YourGitId/sunbird-devops.git
vi kong-consumer/defaults/main.yml
# Raise a PR to latest release branch in sunbird-devops |
CONSUMER ACL[ACCESS CONTROL LISTS]
...
Code Block |
---|
# Consumer groups with ACL mapping username1_acls: - orgCreate username2_acls: - orgAccess # Consumers to be on-boarded with consumer group kong_consumers: - username: kong_username1-user groups: "{{ username1_acls }}" state: present - username: kong_username2-user groups: "{{ username2_acls }}" state: absent |
Line 1 describes how you can add a consumer group where you provide list of ACL’s which consumer will get access to.
Line 9 This block contains the consumers to acl definition, here we provide the consumer name username as kong_username -user and the groups the user needs access to, which was defined in the line 1.
...