Skip to content

Commit

Permalink
Allow enabling EKS Pod Identity (#637)
Browse files Browse the repository at this point in the history
* Allow enabling EKS Pod Identity

* Improve naming

* Add missing doc
  • Loading branch information
moicalcob authored Dec 5, 2024
1 parent b1232ca commit 280aedd
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ To install, upgrade or uninstall this chart, please refer to [the root README.md
| `appConfigValues.workspaceThumbnailsPublic` | Indicate if the thumbnails could be accessed publicly | `true` |
| `appConfigValues.googleCloudStorageProjectId` | If the bucket is GCP, the ProjectId to be used | `""` |
| `appConfigValues.awsS3Region` | If the bucket is S3, the region to be used | `""` |
| `appConfigValues.awsEksPodIdentityBucketsEnabled` | If the bucket is S3, the region to be used | `false` |
| `appConfigValues.bigqueryOauth2ClientId` | The Client ID used in BigQuery OAuth connections using Sign in with Google instead of providing a service account key. | `""` |
| `appConfigValues.enableTrackJS` | By default, TrackJS will gather information about end-user browser, you can disable it setting this parameter to false | `true` |
| `appConfigValues.ssoOrganizationId` | SSO organization ID provided by CARTO used to configure the SSO in the app. | `""` |
Expand Down Expand Up @@ -1560,6 +1561,8 @@ To install, upgrade or uninstall this chart, please refer to [the root README.md
| `externalPostgresql.port` | Database port number | `5432` |
| `externalPostgresql.sslEnabled` | Whether or not connect to CARTO Postgresql via TLS | `false` |
| `externalPostgresql.sslCA` | CA certificate in case CARTO Postgresql TLS cert it's selfsigned | `""` |
| `externalPostgresql.awsEksPodIdentityEnabled` | Enable EKS Pod Identity authentication for the external postgresql | `false` |
| `externalPostgresql.awsRdsRegion` | Region of the RDS PostgreSQL database in AWS. Needed when EKS Pod Identity is enabled | `""` |

### External proxy configuration

Expand Down
4 changes: 4 additions & 0 deletions chart/templates/import-api/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ data:
{{- if and .Values.externalPostgresql.sslEnabled .Values.externalPostgresql.sslCA }}
WORKSPACE_POSTGRES_SSL_CA: {{ include "carto.postgresql.configMapMountAbsolutePath" . }}
{{- end }}
{{- if .Values.externalPostgresql.awsEksPodIdentityEnabled }}
CARTO_SELFHOSTED_AWS_RDS_METADATA_REGION: {{ .Values.externalPostgresql.awsRdsRegion | quote }}
CARTO_SELFHOSTED_AWS_EKS_POD_IDENTITY_METADATA_DB_ENABLED: {{ .Values.externalPostgresql.awsEksPodIdentityEnabled | quote }}
{{- end }}
IMPORT_AWS_CUSTOM_BUCKET_ROLE_ARN: {{ .Values.appConfigValues.importAwsRoleArn | quote }}
IMPORT_PROVIDER: {{ .Values.appConfigValues.storageProvider | quote }}
{{- if eq .Values.appConfigValues.storageProvider "gcp" }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/import-worker/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ data:
{{- if and .Values.externalPostgresql.sslEnabled .Values.externalPostgresql.sslCA }}
WORKSPACE_POSTGRES_SSL_CA: {{ include "carto.postgresql.configMapMountAbsolutePath" . }}
{{- end }}
{{- if .Values.externalPostgresql.awsEksPodIdentityEnabled }}
CARTO_SELFHOSTED_AWS_RDS_METADATA_REGION: {{ .Values.externalPostgresql.awsRdsRegion | quote }}
CARTO_SELFHOSTED_AWS_EKS_POD_IDENTITY_METADATA_DB_ENABLED: {{ .Values.externalPostgresql.awsEksPodIdentityEnabled | quote }}
{{- end }}
IMPORT_AWS_CUSTOM_BUCKET_ROLE_ARN: {{ .Values.appConfigValues.importAwsRoleArn | quote }}
IMPORT_PROVIDER: {{ .Values.appConfigValues.storageProvider | quote }}
{{- if eq .Values.appConfigValues.storageProvider "gcp" }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/lds-api/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ data:
{{- if and .Values.externalPostgresql.sslEnabled .Values.externalPostgresql.sslCA }}
WORKSPACE_POSTGRES_SSL_CA: {{ include "carto.postgresql.configMapMountAbsolutePath" . }}
{{- end }}
{{- if .Values.externalPostgresql.awsEksPodIdentityEnabled }}
CARTO_SELFHOSTED_AWS_RDS_METADATA_REGION: {{ .Values.externalPostgresql.awsRdsRegion | quote }}
CARTO_SELFHOSTED_AWS_EKS_POD_IDENTITY_METADATA_DB_ENABLED: {{ .Values.externalPostgresql.awsEksPodIdentityEnabled | quote }}
{{- end }}
LDS_TENANT_ID: {{ .Values.cartoConfigValues.selfHostedTenantId | quote }}
{{- if .Values.externalProxy.enabled }}
HTTP_PROXY: {{ include "carto.proxy.computedConnectionString" . | quote }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/maps-api/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ data:
{{- if and .Values.externalPostgresql.sslEnabled .Values.externalPostgresql.sslCA }}
WORKSPACE_POSTGRES_SSL_CA: {{ include "carto.postgresql.configMapMountAbsolutePath" . }}
{{- end }}
{{- if .Values.externalPostgresql.awsEksPodIdentityEnabled }}
CARTO_SELFHOSTED_AWS_RDS_METADATA_REGION: {{ .Values.externalPostgresql.awsRdsRegion | quote }}
CARTO_SELFHOSTED_AWS_EKS_POD_IDENTITY_METADATA_DB_ENABLED: {{ .Values.externalPostgresql.awsEksPodIdentityEnabled | quote }}
{{- end }}
{{- if .Values.externalProxy.enabled }}
HTTP_PROXY: {{ include "carto.proxy.computedConnectionString" . | quote }}
http_proxy: {{ include "carto.proxy.computedConnectionString" . | quote }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/sql-worker/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ data:
{{- if and .Values.externalPostgresql.sslEnabled .Values.externalPostgresql.sslCA }}
WORKSPACE_POSTGRES_SSL_CA: {{ include "carto.postgresql.configMapMountAbsolutePath" . }}
{{- end }}
{{- if .Values.externalPostgresql.awsEksPodIdentityEnabled }}
CARTO_SELFHOSTED_AWS_RDS_METADATA_REGION: {{ .Values.externalPostgresql.awsRdsRegion | quote }}
CARTO_SELFHOSTED_AWS_EKS_POD_IDENTITY_METADATA_DB_ENABLED: {{ .Values.externalPostgresql.awsEksPodIdentityEnabled | quote }}
{{- end }}
WORKSPACE_TENANT_ID: {{ .Values.cartoConfigValues.selfHostedTenantId | quote }}
{{- if .Values.externalProxy.enabled }}
HTTP_PROXY: {{ include "carto.proxy.computedConnectionString" . | quote }}
Expand Down
7 changes: 7 additions & 0 deletions chart/templates/workspace-api/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ data:
{{- if and .Values.externalPostgresql.sslEnabled .Values.externalPostgresql.sslCA }}
WORKSPACE_POSTGRES_SSL_CA: {{ include "carto.postgresql.configMapMountAbsolutePath" . }}
{{- end }}
{{- if .Values.externalPostgresql.awsEksPodIdentityEnabled }}
CARTO_SELFHOSTED_AWS_RDS_METADATA_REGION: {{ .Values.externalPostgresql.awsRdsRegion | quote }}
CARTO_SELFHOSTED_AWS_EKS_POD_IDENTITY_METADATA_DB_ENABLED: {{ .Values.externalPostgresql.awsEksPodIdentityEnabled | quote }}
{{- end }}
IMPORT_AWS_CUSTOM_BUCKET_ROLE_ARN: {{ .Values.appConfigValues.importAwsRoleArn | quote }}
WORKSPACE_PUBSUB_DATA_UPDATES_SUBSCRIPTION: "projects/{{ .Values.cartoConfigValues.selfHostedGcpProjectId }}/subscriptions/data-updates-workspace-sub"
WORKSPACE_PUBSUB_DATA_UPDATES_TOPIC: "projects/{{ .Values.cartoConfigValues.selfHostedGcpProjectId }}/topics/data-updates"
Expand Down Expand Up @@ -88,6 +92,9 @@ data:
{{- if eq .Values.appConfigValues.storageProvider "s3" }}
WORKSPACE_THUMBNAILS_REGION: {{ .Values.appConfigValues.awsS3Region | quote }}
WORKSPACE_IMPORTS_REGION: {{ .Values.appConfigValues.awsS3Region | quote }}
{{- if .Values.appConfigValues.awsEksPodIdentityBucketsEnabled }}
CARTO_SELFHOSTED_AWS_EKS_POD_IDENTITY_S3_ENABLED: {{ .Values.appConfigValues.awsEksPodIdentityBucketsEnabled | quote }}
{{- end }}
{{- end }}
{{- if eq .Values.appConfigValues.storageProvider "azure-blob" }}
WORKSPACE_THUMBNAILS_STORAGE_ACCOUNT: {{ .Values.appConfigValues.azureStorageAccount | quote }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/workspace-subscriber/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ data:
{{- if and .Values.externalPostgresql.sslEnabled .Values.externalPostgresql.sslCA }}
WORKSPACE_POSTGRES_SSL_CA: {{ include "carto.postgresql.configMapMountAbsolutePath" . }}
{{- end }}
{{- if .Values.externalPostgresql.awsEksPodIdentityEnabled }}
CARTO_SELFHOSTED_AWS_RDS_METADATA_REGION: {{ .Values.externalPostgresql.awsRdsRegion | quote }}
CARTO_SELFHOSTED_AWS_EKS_POD_IDENTITY_METADATA_DB_ENABLED: {{ .Values.externalPostgresql.awsEksPodIdentityEnabled | quote }}
{{- end }}
WORKSPACE_PUBSUB_DATA_UPDATES_SUBSCRIPTION: "projects/{{ .Values.cartoConfigValues.selfHostedGcpProjectId }}/subscriptions/data-updates-workspace-sub"
WORKSPACE_PUBSUB_DATA_UPDATES_TOPIC: "projects/{{ .Values.cartoConfigValues.selfHostedGcpProjectId }}/topics/data-updates"
WORKSPACE_PUBSUB_EVENT_BUS_SUBSCRIPTION: "projects/{{ .Values.cartoConfigValues.selfHostedGcpProjectId }}/subscriptions/event-bus-workspace-sub"
Expand Down
6 changes: 6 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ appConfigValues:
googleCloudStorageProjectId: ""
## @param appConfigValues.awsS3Region If the bucket is S3, the region to be used
awsS3Region: ""
## @param appConfigValues.awsEksPodIdentityBucketsEnabled If the bucket is S3, the region to be used
awsEksPodIdentityBucketsEnabled: false
## @param appConfigValues.bigqueryOauth2ClientId The Client ID used in BigQuery OAuth connections using Sign in with Google instead of providing a service account key.
bigqueryOauth2ClientId: ""
## @param appConfigValues.enableTrackJS By default, TrackJS will gather information about end-user browser, you can disable it setting this parameter to false
Expand Down Expand Up @@ -4877,6 +4879,8 @@ internalPostgresql:
## @param externalPostgresql.port Database port number
## @param externalPostgresql.sslEnabled Whether or not connect to CARTO Postgresql via TLS
## @param externalPostgresql.sslCA CA certificate in case CARTO Postgresql TLS cert it's selfsigned
## @param externalPostgresql.awsEksPodIdentityEnabled Enable EKS Pod Identity authentication for the external postgresql
## @param externalPostgresql.awsRdsRegion Region of the RDS PostgreSQL database in AWS. Needed when EKS Pod Identity is enabled
##
externalPostgresql:
host: localhost
Expand All @@ -4894,6 +4898,8 @@ externalPostgresql:
port: 5432
sslEnabled: false
sslCA: ""
awsEksPodIdentityEnabled: false
awsRdsRegion: ""

## @section External proxy configuration
## Configuration for an external proxy provided by the client. Only HTTP and HTTPS proxies are supported
Expand Down

0 comments on commit 280aedd

Please sign in to comment.