# Third-Party Clients

{% hint style="danger" %}

### <mark style="color:red;">**The BastionZero product is maintained for existing BastionZero customers only.**</mark>&#x20;

Moving forward, we are natively rebuilding BastionZero’s technology as Cloudflare’s [Access for Infrastructure](https://developers.cloudflare.com/cloudflare-one/applications/non-http/infrastructure-apps/) service.
{% endhint %}

## Kubernetes

### kubectl

Our Kubernetes agent is fully compatible with `kubectl`. Ensure that your `kubeconfig` is set to the correct context, and you are good to go.

![Example of kubectl context to interact with BastionZero](https://2296692744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB1x0ofz14evTHlwIRKaW%2Fuploads%2FhNWecC0ozAcM6JqxALYR%2Fkubectl_context.png?alt=media\&token=0546aa28-e633-4354-8f04-c6d7cc421179)

### k9s

Our Kubernetes agent is fully compatible with `k9s`!

If you don't already have k9s downloaded, do so by following the k9s GitHub [here](https://github.com/derailed/k9s#installation).

Next, ensure that your Kube context is correctly configured. See the example below.

![Example of the k9s context needed to interact with BastionZero](https://2296692744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB1x0ofz14evTHlwIRKaW%2Fuploads%2F6tZpU0yqFgN2mRw2Dchk%2Fk9s_context.png?alt=media\&token=76e94dd4-b0cc-40ab-8921-49fc351e6528)

You are ready to go! Run the command `k9s` to get started.

![Example of using k9s with BastionZero](https://2296692744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB1x0ofz14evTHlwIRKaW%2Fuploads%2FhdS6sSLD8I6zq5BspJL0%2Fk9s.png?alt=media\&token=c208f2a5-7767-4e66-95cf-cf14e9c79950)

### Lens

Our Kubernetes agent is fully compatible with Lens.

To get started, follow these instructions:

* If you don't have Lens installed, instructions can be found [here](https://k8slens.dev).
* Lens should automatically detect and display your “bctl-agent-context,” but if it doesn’t you can manually add it by following [these](https://docs.k8slens.dev/main/catalog/add-clusters/) instructions on Lens' documentation page.
* You are ready to go and start using Lens.

![Example of what lens looks like when it is being used with BastionZero](https://2296692744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB1x0ofz14evTHlwIRKaW%2Fuploads%2FDYJwb0X6bpI3x2Sjgfk4%2Flens.png?alt=media\&token=e978f868-dfb6-463f-aaa2-3f05b071ab78)

## Databases

Once you have your local port forwards established, you can now use any client to connect to your database through BastionZero. For example, we've used DBeaver, Tableplus, DataGrip, and psql, just to name a few.

{% hint style="info" %}
Your database authentication scheme is private to you. BastionZero secures your connection by ensuring it is authenticated with a user in your organization and authorized via policy. Once completed, an end user can then connect to and authenticate to the database.
{% endhint %}

### DBeaver

A DBeaver configuration will include the server and authentication schemes and may look something like the example below.

![DBeaver configuration example of connecting to a database secured through BastionZero](https://2296692744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB1x0ofz14evTHlwIRKaW%2Fuploads%2FHKtPsSAc4obq0NPZoc4J%2FDBeaverConfigExample.png?alt=media\&token=d7a02204-b6ab-4c01-875d-b8701fa0532d)

### PSQL

Echoing the same setup as above using `psql`, you must specify the username (U), host (h), and port (p).

`psql -U postgres -h localhost -p 6101`
