Hey, how can I get the client credentials (ClientI...
# ask-ai
a
Hey, how can I get the client credentials (ClientID , client secret) of a selfhosted Airbyte Application programmatically ?
k
Based on the knowledge sources, I can provide you with information on how to retrieve client credentials programmatically for a self-hosted Airbyte application. ## Retrieving Client Credentials Programmatically For self-hosted Airbyte deployments, you can retrieve the client credentials (client ID and client secret) using the following methods: ### Using abctl (Command Line Tool) If you're running Airbyte through
abctl
, you can retrieve your credentials by running:
Copy code
bash abctl local credentials
This will output something similar to:
Copy code
json {   "password": "password",   "client-id": "client_id",   "client-secret": "client_secret" }
[Authentication documentation](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication) ### Using Kubernetes/Helm If you've deployed Airbyte to your own Kubernetes cluster using Helm, you can retrieve the credentials by running:
Copy code
bash kubectl get secret airbyte-auth-secrets -n <YOUR_NAMESPACE> -o yaml
This will return a Kubernetes secret with base64-encoded values:
Copy code
yaml apiVersion: v1 data:   instance-admin-client-id: Y2Q1ZTc4ZWEtMzkwNy00ZThmLWE1ZWMtMjIyNGVhZTFiYzcw   instance-admin-client-secret: cmhvQkhCODlMRmh1REdXMWt3REpHZTJMaUd3N3c2MjU=   instance-admin-password: d0V2bklvZEo1QUNHQnpPRWxrOWNSeHdFUGpJMWVzMWg= kind: Secret # ... additional metadata
To decode these base64-encoded values, you can run:
Copy code
bash echo 'cmhvQkhCODlMRmh1REdXMWt3REpHZTJMaUd3N3c2MjU=' | base64 -d
[Authentication documentation](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication) These methods allow you to programmatically retrieve the client credentials for your self-hosted Airbyte instance, which you can then use to obtain access tokens for API requests.
a
@kapa.ai Can I use these credentials to generate an access token via API - v1/applications/token