Skip to content

Commit

Permalink
feat: add networkpolicy option for keycloak smtp (#429)
Browse files Browse the repository at this point in the history
## Description

...

## Related Issue

Fixes #
<!-- or -->
Relates to #

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging

- [ ] Test, docs, adr added or updated as needed
- [ ] [Contributor Guide
Steps](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)(https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md#submitting-a-pull-request)
followed

---------

Co-authored-by: Micah Nagel <[email protected]>
  • Loading branch information
corang and mjnagel authored May 24, 2024
1 parent 9badf9d commit 4059954
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/keycloak/chart/templates/uds-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ spec:
- 80
remoteGenerate: Anywhere

{{- if .Values.smtp.enabled }}
- description: "SMTP access"
direction: Egress
selector:
app.kubernetes.io/name: keycloak
port: {{ .Values.smtp.port }}
remoteGenerate: Anywhere
{{- end }}

{{- if not .Values.devMode }}
- description: "PostgresQL Database access"
direction: Egress
Expand Down
5 changes: 5 additions & 0 deletions src/keycloak/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ clusterDomain: cluster.local
# Sets development mode for Keycloak. This disables caching, Postgres and HPAs and should only be used for testing
devMode: true

# Enable SMTP networkPolicy and config
smtp:
enabled: false
port: 587

# Configure FIPS mode for Keycloak
fips: false

Expand Down

0 comments on commit 4059954

Please sign in to comment.