Skip to content

Commit

Permalink
Remove long lived creds
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLeighton21 committed Sep 6, 2023
1 parent b104cfc commit 6b01291
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ class Application < Rails::Application
# Only loads a smaller set of middleware suitable for API only apps.
# Middleware like session, flash, cookies can be added back manually.
# Skip views, helpers and assets when generating a new resource.
config.x.s3_internal_bucket_config = {
access_key_id: ENV.fetch('AWS_ACCESS_KEY_ID'),
secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY')
}
config.x.s3_external_bucket_config = {
access_key_id: ENV.fetch('AWS_S3_EXTERNAL_BUCKET_ACCESS_KEY_ID'),
secret_access_key: ENV.fetch('AWS_S3_EXTERNAL_BUCKET_SECRET_ACCESS_KEY')
}
# config.x.s3_internal_bucket_config = {
# access_key_id: ENV.fetch('AWS_ACCESS_KEY_ID'),
# secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY')
# }
# config.x.s3_external_bucket_config = {
# access_key_id: ENV.fetch('AWS_S3_EXTERNAL_BUCKET_ACCESS_KEY_ID'),
# secret_access_key: ENV.fetch('AWS_S3_EXTERNAL_BUCKET_SECRET_ACCESS_KEY')
# }
config.api_only = true
end
end
20 changes: 10 additions & 10 deletions deploy-eks/fb-user-filestore-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ spec:
secretKeyRef:
name: fb-user-filestore-api-secrets-{{ .Values.environmentName }}
key: key_encryption_iv
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: s3-formbuilder-user-filestore-{{ .Values.environmentName }}
key: access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: s3-formbuilder-user-filestore-{{ .Values.environmentName }}
key: secret_access_key
# - name: AWS_ACCESS_KEY_ID
# valueFrom:
# secretKeyRef:
# name: s3-formbuilder-user-filestore-{{ .Values.environmentName }}
# key: access_key_id
# - name: AWS_SECRET_ACCESS_KEY
# valueFrom:
# secretKeyRef:
# name: s3-formbuilder-user-filestore-{{ .Values.environmentName }}
# key: secret_access_key
- name: AWS_S3_BUCKET_NAME
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 6b01291

Please sign in to comment.