airbytehq / airbytehq/airbyte

Container launcher not using airbyte-gcs-log-creds

オープン
#68,177 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
area/platform autoteam community needs-triage team/compose team/platform-move type/bug
主要言語
Python
スター
22.1k
フォーク
5.3k
PR マージ指標
PR 指標を取得中

説明

### Helm Chart Version

2.0.18

### What step the error happened?

Other

### Relevant information

When a a container is launched, the pod is using the env `GOOGLE_APPLICATION_CREDENTIALS=/secrets/gcp-creds/gcp.json` but it's not using the `airbyte-gcs-log-creds`, it's using the main `airbyte-airbyte-secrets` which doesn't have `gcp.json`.

The pods fail to start because `/secrets/gcp-creds/gcp.json` is not found.

For now I added a custom transformation to slot in a `gcp.json` into `airbyte-airbyte-secrets`.

```
def fix_double_base64_google_application_creds(obj, opts):
if (
obj["kind"] == "Secret"
and obj["metadata"]["name"] == "airbyte-airbyte-secrets"
):
value = obj["stringData"]["GOOGLE_APPLICATION_CREDENTIALS_JSON"]

if not "client_id" in value:
json_value = base64.b64decode(value).decode("utf-8")
obj["stringData"]["GOOGLE_APPLICATION_CREDENTIALS_JSON"] = json_value

# HACK: There is some config mismatch in Airbyte so we'll set this here explicitly
obj["stringData"]["gcp.json"] = json_value

```

### Relevant log output

```shell

```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。