Skip to content

Commit

Permalink
New user / secret for push policies from Manage to PdP
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Jan 16, 2024
1 parent 739510c commit 2506f1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions environments/template/secrets/skeleton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ manage_backdoor_api_password: secret
manage_dashboard_secret: secret
manage_myconext_secret: secret
manage_pdp_secret: secret
pdp_push_endpoint_secret: secret
manage_sp_dashboard_secret: secret
manage_sysadmin_secret: secret
manage_invite_secret: secret
Expand Down
1 change: 1 addition & 0 deletions environments/vm/secrets/vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ manage_backdoor_api_password: secret
manage_dashboard_secret: secret
manage_myconext_secret: secret
manage_pdp_secret: secret
pdp_push_endpoint_secret: secret
manage_sp_dashboard_secret: secret
manage_sysadmin_secret: secret
manage_stats_api_password: secret
Expand Down
8 changes: 6 additions & 2 deletions roles/pdp-server/templates/application.properties.j2
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ manage.password={{ manage_pdp_secret }}
period.manage.refresh.minutes=10
manage.manageBaseUrl=https://manage.{{ base_domain }}

# Basic authentication for push-policies endpoint
push_endpoint.username=manage
push_endpoint.password={{ pdp_push_endpoint_secret }}

# Number of days how long the policy violations are retained
policy.violation.retention.period.days=30

Expand All @@ -74,15 +78,15 @@ sab.userName={{ pdp.sab_username }}
sab.password={{ pdp.sab_password }}
sab.endpoint={{ pdp.sab_endpoint }}

# Do not expose any of the Spring BOOT endpoints except the health and info for loadbalacer health check
# Do not expose any of the Spring BOOT endpoints except the health and info for loadbalancer health check
endpoints.enabled=false
endpoints.health.enabled=true
endpoints.info.enabled=true

# This is the internal logging of PDP. Leave this to DEBUG for now as it is not much overhead
logging.level.pdp=DEBUG

# In a multi master database setup toggle which machine is reponsible for cron jobs
# In a multi master database setup toggle which machine is responsible for cron jobs
pdpCronJobResponsible={{ pdp_cronjobmaster }}

loa.levels={{ stepup_loa_values_supported | join(",") }}
Expand Down

0 comments on commit 2506f1b

Please sign in to comment.