Skip to content

Commit 96737b3

Browse files
committed
add sns for endpoint override and add lambda support in helm chart
1 parent 0881012 commit 96737b3

5 files changed

Lines changed: 45 additions & 4 deletions

File tree

auth-server/local/application.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ spring:
4747
jwt:
4848
jwk-set-uri: http://localhost:${server.port}/oauth2/jwks
4949

50-
redis:
51-
database: 0
52-
host: localhost
50+
data:
51+
redis:
52+
database: 0
53+
host: localhost
5354

5455
server:
5556
port: 9090

helm-charts/charts/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,31 @@ application:
194194
endpointOverride:
195195
dynamodb:
196196
endpointOverride:
197+
sns:
198+
endpointOverride:
199+
lambda:
200+
endpointOverride:
197201
```
198202

199203
Use these values for LocalStack or non-default AWS endpoints.
200204

205+
### Lambda Token Enhancement
206+
207+
```yaml
208+
application:
209+
lambda:
210+
aws:
211+
enabled: false
212+
functionName: vauthenticator-token-enhancer
213+
functionResultCacheTtl: 10s
214+
```
215+
216+
| Name | Description | Default |
217+
| --- | --- | --- |
218+
| `application.lambda.aws.enabled` | Enable AWS Lambda-based token customization. | `false` |
219+
| `application.lambda.aws.functionName` | Lambda function name invoked for token enhancement. | `vauthenticator-token-enhancer` |
220+
| `application.lambda.aws.functionResultCacheTtl` | Cache TTL for Lambda invocation results, as a Spring duration. | `10s` |
221+
201222
### Password Policy
202223

203224
```yaml

helm-charts/charts/vauthenticator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: "0.11.0"
18+
version: "0.12.0"
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

helm-charts/charts/vauthenticator/templates/configmap.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ data:
1212
endpointOverride: {{ .Values.application.aws.kms.endpointOverride }}
1313
dynamodb:
1414
endpointOverride: {{ .Values.application.aws.dynamodb.endpointOverride }}
15+
sns:
16+
endpointOverride: {{ .Values.application.aws.sns.endpointOverride }}
17+
lambda:
18+
endpointOverride: {{ .Values.application.aws.lambda.endpointOverride }}
1519
1620
password:
1721
password-history:
@@ -169,6 +173,11 @@ data:
169173
table-name: {{ .Values.application.dynamoDb.defaultMfaAccountMethods.tableName }}
170174
171175
host: {{ .Values.application.baseUrl }}
176+
lambda:
177+
aws:
178+
enabled: {{ .Values.application.lambda.aws.enabled }}
179+
function-name: {{ .Values.application.lambda.aws.functionName }}
180+
function-result-cache-ttl: {{ .Values.application.lambda.aws.functionResultCacheTtl }}
172181
{{- if eq .Values.aws.iamUser.enabled true }}
173182
iamUserAwsCredentialsProvider: true
174183
{{- end }}

helm-charts/charts/vauthenticator/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,13 @@ application:
227227
endpointOverride:
228228
dynamodb:
229229
endpointOverride:
230+
sns:
231+
endpointOverride:
232+
lambda:
233+
endpointOverride:
234+
235+
lambda:
236+
aws:
237+
enabled: false
238+
functionName: vauthenticator-token-enhancer
239+
functionResultCacheTtl: 10s

0 commit comments

Comments
 (0)