# Use environments as proxy targets

## `zli v. 6.35.1`

### New

* **Use environments as proxy targets**. A web or DB target’s proxy target can now be set to an environment rather than an explicitly named target. When a user connects to the web or DB target, BastionZero will use an available target within the specified environment to proxy the connection. Note that when creating a web or DB target, you will need to specify whether the proxy type is environment or target. This is true both in the web app and through the API.

### Fixes

* **Display profile picture in desktop app**. Resolved an issue with displaying the IdP profile picture within the desktop app by ensuring the `zli` refreshes the profile picture associated with the IdP account on token refresh.

***

## Web app & backend

### New

* **Use environments as proxy targets**. This release of the backend includes all the necessary changes to support using an environment as a proxy for web and DB targets.

### Enhancements

* **Just-in-time access to passwordless database targets.** Leverage ephemeral access for your passwordless database targets (both SplitCert and service account injection). To learn more about enabling this capability, see our guides for enabling your users to request temporary access to targets via Slack [here](https://docs.bastionzero.com/docs/automation-and-integrations/slack/using-the-bastionzero-app-for-slack) and service accounts via GitHub Actions [here](https://docs.bastionzero.com/docs/automation-and-integrations/github-actions).

### Fixes

* **Remove erroneous SSM references.** Removed any remaining references to the deprecated SSM agent.
* **Incorrect `ProxyTargetId` returned by `PATCH`.** Resolved an issue where  `DbSummary` or `WebSummary` in the `PATCH` returned the incorrect `ProxyTargetId` if the target was modified.

***

## BastionZero Terraform Provider

### Enhancements

* **Create database targets.** BastionZero's Terraform provider now supports creating database targets. Find our Terraform provider [here](https://registry.terraform.io/providers/bastionzero/bastionzero/latest/docs).

For questions or to provide feedback on how we can improve our updates, reach out to [<mark style="color:purple;">product@bastionzero.com</mark>](mailto:product@bastionzero.com).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://changes.bastionzero.com/2023/use-environments-as-proxy-targets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
