Page MenuHomePhabricator

Airflow secret for S3 creds in airflow-wikidata
Closed, ResolvedPublic

Description

@BTullis added some S3 creds for us a while back to allow us to connect to S3 in various ways from various namespaces. See T426764#11949202

The secret that we have in mediawiki-dumps-legacy works great for rclone. It turns out that we also want to be able to rclone in the same way from airflow-wikidata. Would you be able to add these creds to airflow-wikidata as well, just as they are in mediawiki-dumps-legacy?

This is to facilitate downloading from S3 to the WDQS nodes to build the qlever index, and then upload again. See T428235

Thanks!

Event Timeline

I have created the s3-token-wikidata-platform secret via the following config in the private puppet repo:

airflow-wikidata:
  dse-k8s-eqiad:
    config:
      ...
      extra_k8s_secrets:
        s3-token-wikidata-platform:
          aws_access_key_id: XXX
          aws_secret_access_key: XXX
brouberol@deploy1003:/srv/deployment-charts/helmfile.d/dse-k8s-services/airflow-wikidata$ kubectl get secret s3-token-wikidata-platform -n airflow-wikidata
NAME                         TYPE     DATA   AGE
s3-token-wikidata-platform   Opaque   2      7m37sBalthazar Rouberol  [12:01 PM]
brouberol@deploy1003:/srv/deployment-charts/helmfile.d/dse-k8s-services/airflow-wikidata$ kubectl get secret s3-token-wikidata-platform -n airflow-wikidata -oyaml
apiVersion: v1
data:
  aws_access_key_id: [REDACTED]
  aws_secret_access_key: [REDACTED]
kind: Secret
metadata:
  annotations:
...