-
Notifications
You must be signed in to change notification settings - Fork 1
Update k8s to also deploy sso authentication #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| apiVersion: v1 | ||
| data: | ||
| SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_CLIENT_NAME: Flexo MMS SSO | ||
| SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_CLIENT_ID: | ||
| SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_CLIENT_SECRET: | ||
| SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_AUTHORIZATION_GRANT_TYPE: authorization_code | ||
| SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_REDIRECT_URI: https://localhost:3000/sso/login/oauth2/code/oidc | ||
| SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_SCOPE: openid,profile,email | ||
| SPRING_SECURITY_OAUTH2_CLIENT_PROVIDER_OIDC_ISSUER_URI: | ||
| SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUER_URI: | ||
| SPRING_DATASOURCE_URL: | ||
| SPRING_DATASOURCE_USERNAME: | ||
| SPRING_DATASOURCE_PASSWORD: | ||
| SERVER_SERVLET_CONTEXT_PATH: /sso | ||
| FLEXO_SSO_AUTH_SERVICE_SSO_USER_ID_FIELD: | ||
| FLEXO_SSO_AUTH_SERVICE_SSO_GROUP_CLAIMS_FIELD: | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: sso-config | ||
| namespace: flexo-mms |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: flexo-mms-sso-auth-service | ||
| namespace: flexo-mms | ||
| spec: | ||
| selector: | ||
| matchLabels: | ||
| workload.user.cattle.io/workloadselector: deployment-flexo-mms-flexo-mms-sso-auth-service | ||
| strategy: | ||
| rollingUpdate: | ||
| maxSurge: 1 | ||
| maxUnavailable: 0 | ||
| type: RollingUpdate | ||
| template: | ||
| metadata: | ||
| labels: | ||
| workload.user.cattle.io/workloadselector: deployment-flexo-mms-flexo-mms-sso-auth-service | ||
| spec: | ||
| containers: | ||
|
Check warning on line 20 in k8s/deployments/flexo-mms-sso-auth-service.yaml
|
||
| - envFrom: | ||
|
Check warning on line 21 in k8s/deployments/flexo-mms-sso-auth-service.yaml
|
||
Check warningCode scanning / SonarCloud Memory limits should be enforced Medium
Specify a memory limit for this container. See more on SonarQube Cloud
Check warningCode scanning / SonarCloud Storage limits should be enforced Medium
Specify a storage limit for this container. See more on SonarQube Cloud
|
||
| - configMapRef: | ||
| name: jwt-config | ||
| optional: false | ||
| - configMapRef: | ||
| name: os-config | ||
| - configMapRef: | ||
| name: sso-config | ||
| optional: false | ||
| image: openmbee/flexo-mms-sso-auth-service:latest | ||
|
Check warning on line 30 in k8s/deployments/flexo-mms-sso-auth-service.yaml
|
||
| imagePullPolicy: Always | ||
| name: flexo-mms-sso-auth-service | ||
| resources: {} | ||
| securityContext: | ||
| allowPrivilegeEscalation: false | ||
| capabilities: {} | ||
| privileged: false | ||
| readOnlyRootFilesystem: false | ||
| runAsNonRoot: false | ||
| stdin: true | ||
| terminationMessagePath: /dev/termination-log | ||
| terminationMessagePolicy: File | ||
| tty: true | ||
| volumeMounts: | ||
| - mountPath: /mnt/config/logback/ | ||
| name: logback-config-map | ||
| dnsPolicy: ClusterFirst | ||
| imagePullSecrets: | ||
| - name: dockerhub | ||
| restartPolicy: Always | ||
| schedulerName: default-scheduler | ||
| securityContext: {} | ||
| terminationGracePeriodSeconds: 30 | ||
| volumes: | ||
| - configMap: | ||
| defaultMode: 256 | ||
| items: | ||
| - key: logback.xml | ||
| path: loggers-include.xml | ||
| name: logback-config | ||
| optional: false | ||
| name: logback-sso-config-map | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: flexo-mms-sso-auth-service | ||
| namespace: flexo-mms | ||
| spec: | ||
| clusterIP: None | ||
| clusterIPs: | ||
| - None | ||
| ipFamilies: | ||
| - IPv4 | ||
| ipFamilyPolicy: SingleStack | ||
| ports: | ||
| - name: default | ||
| port: 8080 | ||
| protocol: TCP | ||
| targetPort: 8080 | ||
| selector: | ||
| workload.user.cattle.io/workloadselector: deployment-flexo-mms-flexo-mms-sso-auth-service | ||
| sessionAffinity: None | ||
| type: ClusterIP |
Check warning
Code scanning / SonarCloud
Service account permissions should be restricted Medium