From 08f718948f6f5598f8a0926e43009e0f6551653b Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Wed, 7 Feb 2024 10:05:33 +0100 Subject: [PATCH] Feature toggle for Jira API key --- .../templates/application.properties.j2 | 2 ++ .../templates/manage-api-users.yml.j2 | 15 +++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/roles/dashboard-server/templates/application.properties.j2 b/roles/dashboard-server/templates/application.properties.j2 index d458e5740..1ec8cf161 100644 --- a/roles/dashboard-server/templates/application.properties.j2 +++ b/roles/dashboard-server/templates/application.properties.j2 @@ -61,6 +61,8 @@ jiraPassword={{ dashboard_jira_password }} jiraProjectKey={{ dashboard.jira_project_key }} jiraDueDateWeeks=1 jiraEnvironment={{ dashboard.jira_environment }} +jiraApikey={{ dashboard_jira_apikey }} +jiraUseApiKey={{ dashboard.jira_use_api_key }} manage.username={{ dashboard.manage_username }} manage.password={{ manage_dashboard_secret }} diff --git a/roles/manage-server/templates/manage-api-users.yml.j2 b/roles/manage-server/templates/manage-api-users.yml.j2 index e49d129e4..073e96afb 100644 --- a/roles/manage-server/templates/manage-api-users.yml.j2 +++ b/roles/manage-server/templates/manage-api-users.yml.j2 @@ -1,10 +1,13 @@ # Valid scopes are manage.api.Scope.values(); => -# CHANGE_REQUEST, //Allowed to create change requests -# PUSH, //Allowed to push changes to EB & OIDC-NG -# READ, //Allowed to read entities -# SYSTEM, //Allowed everything including Attribute Manipulation and updating / deleting Identity Providers -# WRITE, //Allowed to create (excluding Identity Providers) and update all entities -# DELETE //Allowed to delete entities (excluding Identity Providers) +# CHANGE_REQUEST, //Allowed to create change requests +# PUSH, //Allowed to push changes to EB & OIDC-NG +# READ, //Allowed to read entities +# SYSTEM, //Allowed everything including Attribute Manipulation and updating / deleting Identity Providers +# TEST, //Only used internally +# WRITE, //Allowed to create (excluding Identity Providers) and update all entities +# POLICIES, //Allowed to CRUD PdP Policies +# DELETE, //Allowed to delete entities (excluding Identity Providers) +# ADMIN //Standard scope for all GUI related endpoint (e.g. /manage/api/client/** endpoints) apiUsers: {% for user in manage.apiUsers %}