> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment management

export const DefinitionDescription = ({children}) => <dd className="definition-description">{children}</dd>;

export const DefinitionTerm = ({children}) => <dt className="definition-term">{children}</dt>;

export const DefinitionList = ({children}) => <dl className="definition-list">{children}</dl>;

export const Comments = ({children}) => {
  return <div class="my-4 px-5 py-4 overflow-hidden rounded-2xl flex gap-3 border border-zinc-500/20 bg-zinc-50/50 dark:border-zinc-500/30 dark:bg-zinc-500/10" data-callout-type="comments">
      <div class="w-4">
        <svg width="14" height="14" viewBox="0 0 640 640" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" aria-label="Comments">
            <path d="M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM280 400C266.7 400 256 410.7 256 424C256 437.3 266.7 448 280 448L360 448C373.3 448 384 437.3 384 424C384 410.7 373.3 400 360 400L352 400L352 312C352 298.7 341.3 288 328 288L280 288C266.7 288 256 298.7 256 312C256 325.3 266.7 336 280 336L304 336L304 400L280 400zM320 256C337.7 256 352 241.7 352 224C352 206.3 337.7 192 320 192C302.3 192 288 206.3 288 224C288 241.7 302.3 256 320 256z" />
        </svg>
      </div>
      <div class="text-sm prose min-w-0 w-full">
        {children}
      </div>
    </div>;
};

Environment logging gives administrators visibility into the <Tooltip tip="Software files and information about the software, such as its name, version, and description, bundled into a file that can be installed and managed by a package manager.">packages</Tooltip> installed across member environments and the tools to enforce security standards when vulnerabilities arise. With environment logging enabled, you can:

* Monitor packages installed in member environments
* View Common Vulnerabilities and Exposures (<Tooltip tip="A public identifier for a known security flaw in software, used to track and assess vulnerabilities.">CVEs</Tooltip>) associated with those packages
* Identify which member environments are affected by a specific CVE
* Block environments from use and provide remediation guidance

## Enabling environments

Environment logging is not enabled by default. You can enable **Environments** for your organization in [Organization Settings](/anaconda-platform/cloud/admin/organizations#organization-settings).

Once enabled, members are automatically prompted to install the `anaconda-env-manager` metapackage and register their machine with your organization the next time they run `anaconda login`. After setup, conda automatically logs any environment they create or update.

<Accordion title="Plugins provided by the anaconda-env-manager metapackage">
  <DefinitionList>
    <DefinitionTerm>
      `anaconda-env-log`
    </DefinitionTerm>

    <DefinitionDescription>
      Automatically logs the current state of an environment whenever a member performs a `create`, `install`, `remove`, `rename`, or `update` action with conda. Manual logging of existing environments is also supported.
    </DefinitionDescription>

    <DefinitionTerm>
      `anaconda-activate-check`
    </DefinitionTerm>

    <DefinitionDescription>
      Validates environments against administrator-defined security controls before activation and notifies members of warnings or access restrictions with guidance for resolution.
    </DefinitionDescription>

    <DefinitionTerm>
      `anaconda-audit`
    </DefinitionTerm>

    <DefinitionDescription>
      Scans local environments to assess the security impact of actions like installing or updating packages, so members can proactively address potential issues without requiring administrator intervention.
    </DefinitionDescription>
  </DefinitionList>
</Accordion>

```text wrap theme={null}
(base) ➜  ~ anaconda login
Anaconda Environment Manager is required by your organization. It is recommended to install. Proceed? [y/n] (y): y
Installing anaconda-env-manager...
✔︎ anaconda-env-manager installed successfully.
Only one organization found, automatically selecting: my-organization
Linking this machine to organization my-organization...
✔ This machine is now registered with my-organization. Conda environments will be logged to this organization.
```

## Viewing member environments

As an administrator, you have visibility into every environment logged with your organization, including the packages they contain and any CVEs associated with those packages. To view them, select <Icon icon="laptop-code" iconType="regular" /> **Environments** under Org Management.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/vJelqv0dbDL7Nqlg/images/ap_view_org_environments.png?fit=max&auto=format&n=vJelqv0dbDL7Nqlg&q=85&s=a03891bb00ac8f1f7e2f7b95e11885e9" alt="View logged environments" width="1922" height="1082" data-path="images/ap_view_org_environments.png" />
</Frame>

### Searching and filtering

Search for environments by name or path using the search box at the top of the table. You can also filter by platform, user, or a combination of both.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/_ySrlu_mSpdr74u0/images/ap_env_search_filter.png?fit=max&auto=format&n=_ySrlu_mSpdr74u0&q=85&s=9b8951368db7667938be7020bd762f93" alt="Environment search and filters" width="1922" height="1082" data-path="images/ap_env_search_filter.png" />
</Frame>

## Scanning environments

Scanning checks the most recently saved environment log for CVEs associated with its packages.

<Note>
  Environments are automatically scanned when created but not when updated. Perform a scan before investigating an environment to ensure its data is current.
</Note>

1. Select the environment you want to scan.
2. Click <Icon icon="arrows-rotate" iconType="regular" /> **Update Scan**.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/_ySrlu_mSpdr74u0/images/ap_env_scan_in_cloud.png?fit=max&auto=format&n=_ySrlu_mSpdr74u0&q=85&s=b1e200efb694726c7f02049b026fb532" alt="Update scan button" width="1922" height="953" data-path="images/ap_env_scan_in_cloud.png" />
   </Frame>

## Investigating environments

### Viewing packages

Click the package count in the **PACKAGES** column to see which packages are installed in an environment and what <Tooltip tip="A location (URL or file path) in a repository where conda looks for packages.">channels</Tooltip> they were sourced from.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/_ySrlu_mSpdr74u0/images/ap_env_pkgs.png?fit=max&auto=format&n=_ySrlu_mSpdr74u0&q=85&s=5f92def0368f244a910849884a11b39f" alt="Viewing a logged environment's packages" width="1922" height="1082" data-path="images/ap_env_pkgs.png" />
</Frame>

<Note>
  Use the navigation controls at the bottom to browse the environment's packages.
</Note>

### Viewing CVEs

<Tabs>
  <Tab title="Environment CVEs">
    Click the CVE count in the **CVES** column to view all CVEs associated with an environment. Each entry includes the CVE name, CVSS score, Anaconda curation date, a description, and its current status.

    Use the filters at the top of the page to locate critical CVEs. Select a CVE from the list to view its details.

    <Frame>
      <img src="https://mintcdn.com/anaconda-29683c67/_ySrlu_mSpdr74u0/images/ap_env_cves.png?fit=max&auto=format&n=_ySrlu_mSpdr74u0&q=85&s=ea56653b5944880a6d4ae2ba2dee52c6" alt="Viewing a logged environment's CVEs" width="1922" height="1082" data-path="images/ap_env_cves.png" />
    </Frame>
  </Tab>

  <Tab title="Package CVEs">
    To view CVEs associated with a specific package:

    1. Click the package count in the **PACKAGES** column.
    2. Locate the package.
    3. Click the CVE count beside the package.

       Each entry includes the CVE name, CVSS score, Anaconda curation date, a description, and its current status. Select a CVE from the panel to view its details.

           <Frame>
             <img src="https://mintcdn.com/anaconda-29683c67/_ySrlu_mSpdr74u0/images/ap_env_pkg_cves.png?fit=max&auto=format&n=_ySrlu_mSpdr74u0&q=85&s=8d6cddd6a831e4e568db085eee0c8f65" alt="CVEs associated with a specific package in a logged environment" width="1922" height="1082" data-path="images/ap_env_pkg_cves.png" />
           </Frame>
  </Tab>
</Tabs>

<Note>
  The **active** filter is applied to CVE results by default.
</Note>

### Identifying environments affected by a CVE

To find which environments in your organization are affected by a specific vulnerability, search by CVE ID using the [unified search](/anaconda-platform/cloud/user/unified-search) bar at the top of the page. Results include every environment containing packages associated with that CVE.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/vJelqv0dbDL7Nqlg/images/ap_unified_search.png?fit=max&auto=format&n=vJelqv0dbDL7Nqlg&q=85&s=b6d3537e46a78a69530324176a13893b" alt="The unified search bar at the top of anaconda.com/app" width="1922" height="522" data-path="images/ap_unified_search.png" />
</Frame>

## Managing member environments

### Blocking environments

If an environment does not meet your organization's security standards, you can warn the member or block access completely. Both options allow you to include a custom message with remediation guidance. Members receive this message the next time they attempt to activate the environment.

1. Select the environment you want to take action on.

2. Click <Icon icon="pen-to-square" iconType="regular" /> **Update Status**.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/_ySrlu_mSpdr74u0/images/ap_env_status_controls.png?fit=max&auto=format&n=_ySrlu_mSpdr74u0&q=85&s=2cfa709205e38624bf063e5b56b334f1" alt="Environment status controls" width="1922" height="952" data-path="images/ap_env_status_controls.png" />
   </Frame>

3. Select a status and enter a custom message, if necessary.

4. Click **Save**.

### Unblocking environments

After a member remediates the issue, restore access by resetting the environment's status.

1. Select the blocked environment.
2. Click <Icon icon="pen-to-square" iconType="regular" /> **Update Status**.
3. Click **OK**.
4. Click **Save**.

### Archiving environments

Archiving moves inactive or obsolete environments to a dedicated tab, reducing clutter in the active list.

1. Select the environment you want to archive.
2. Click <Icon icon="box-archive" iconType="regular" /> **Archive**.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/_ySrlu_mSpdr74u0/images/ap_env_archive.png?fit=max&auto=format&n=_ySrlu_mSpdr74u0&q=85&s=c3a599491e6253cce472dc87acdba346" alt="Archive environment button" width="1922" height="953" data-path="images/ap_env_archive.png" />
   </Frame>

<Note>
  Archived environments are still available for use. To prevent an environment from being used, [block it](#blocking-environments).
</Note>
