Skip to content

Instantly share code, notes, and snippets.

@rcherara
Forked from sshepel/application.yaml
Created March 13, 2021 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcherara/bc85d1c63625164e1df5c7de7184eb51 to your computer and use it in GitHub Desktop.
Save rcherara/bc85d1c63625164e1df5c7de7184eb51 to your computer and use it in GitHub Desktop.
SCDF k8s config
server config:
spring:
cloud:
dataflow:
security:
authorization:
provider-role-mappings:
scdf-test:
map-oauth-scopes: true
role-mappings:
ROLE_CREATE: dataflow.create
ROLE_DEPLOY: dataflow.deploy
ROLE_DESTROY: dataflow.destroy
ROLE_MANAGE: dataflow.manage
ROLE_MODIFY: dataflow.modify
ROLE_SCHEDULE: dataflow.schedule
ROLE_VIEW: dataflow.view
security:
oauth2:
client:
provider:
azure:
issuer-uri: https://login.microsoftonline.com/<sub-id>/v2.0
user-name-attribute: name
registration:
digital-scdf:
client-id: <client-id>
client-secret: <client-secret>
provider: azure
redirect-uri: '{baseUrl}/login/oauth2/code/{registrationId}'
scope:
- openid
- profile
- email
- offline_access
- api://scdf-test/dataflow.view
- api://scdf-test/dataflow.deploy
- api://scdf-test/dataflow.destroy
- api://scdf-test/dataflow.manage
- api://scdf-test/dataflow.modify
- api://scdf-test/dataflow.schedule
- api://scdf-test/dataflow.create
resourceserver:
jwt:
jwk-set-uri: https://login.microsoftonline.com/<sub-id>/v2.0/keys
skipper config:
spring:
cloud:
skipper:
security:
authorization:
provider-role-mappings:
scdf-test:
map-oauth-scopes: true
role-mappings:
ROLE_CREATE: dataflow.create
ROLE_DEPLOY: dataflow.deploy
ROLE_DESTROY: dataflow.destroy
ROLE_MANAGE: dataflow.manage
ROLE_MODIFY: dataflow.modify
ROLE_SCHEDULE: dataflow.schedule
ROLE_VIEW: dataflow.view
security:
oauth2:
client:
provider:
azure:
issuer-uri: https://login.microsoftonline.com/<sub-id>/v2.0
user-name-attribute: name
registration:
digital-scdf:
client-id: <client-id>
client-secret: <client-secret>
provider: azure
redirect-uri: '{baseUrl}/login/oauth2/code/{registrationId}'
scope:
- openid
- profile
- email
- offline_access
- api://scdf-test/dataflow.view
- api://scdf-test/dataflow.deploy
- api://scdf-test/dataflow.destroy
- api://scdf-test/dataflow.manage
- api://scdf-test/dataflow.modify
- api://scdf-test/dataflow.schedule
- api://scdf-test/dataflow.create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment