Feature Spring CLoud Dataflow Security (#23900)

+ Oauth 2.0 client authentication configuration
+ authorization customization

Signed-off-by: Łukasz Wojtas <l94.wojtas@gmail.com>
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
This commit is contained in:
lwojt16
2024-02-26 17:17:48 +01:00
committed by GitHub
parent 0b207d3efb
commit 2dc0a59efc
4 changed files with 21 additions and 1 deletions

View File

@@ -53,4 +53,4 @@ maintainers:
name: spring-cloud-dataflow
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/spring-cloud-dataflow
version: 26.7.1
version: 26.8.0

View File

@@ -202,6 +202,8 @@ helm uninstall my-release
| `server.jdwp.port` | Specify port for remote debugging | `5005` |
| `server.proxy` | Add proxy configuration for SCDF server | `{}` |
| `server.applicationProperties` | Specify common application properties added by SCDF server to streams and/or tasks | `{}` |
| `server.security.authorization` | Authorization customization | `{}` |
| `server.security.oauth2.client` | OAuth 2.0 client authentication configuration | `{}` |
### Dataflow Skipper parameters

View File

@@ -97,6 +97,10 @@ data:
metrics.dashboard:
url: {{ .Values.server.configuration.grafanaInfo }}
{{- end }}
{{- if .Values.server.security.authorization }}
security:
authorization: {{- include "common.tplvalues.render" (dict "value" .Values.server.security.authorization) | nindent 14 }}
{{- end }}
task:
closecontextEnabled: true
{{- if .Values.externalDatabase.hibernateDialect }}
@@ -118,4 +122,9 @@ data:
validationQuery: "SELECT 1"
flyway:
enabled: {{ .Values.flyway.enabled }}
{{- if .Values.server.security.oauth2.client }}
security:
oauth2:
client: {{- include "common.tplvalues.render" (dict "value" .Values.server.security.oauth2.client) | nindent 12 }}
{{- end }}
{{ end }}

View File

@@ -652,6 +652,15 @@ server:
## @param server.applicationProperties Specify common application properties added by SCDF server to streams and/or tasks
## ref: https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/#spring-cloud-dataflow-global-properties
applicationProperties: {}
security:
## @param server.security.authorization Authorization customization
## ref: https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/#configuration-security-customizing-authorization
authorization: {}
oauth2:
## @param server.security.oauth2.client OAuth 2.0 client authentication configuration
## ref: https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/#configuration-security-oauth2
client: {}
## @section Dataflow Skipper parameters
## Spring Cloud Skipper parameters.