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

# JFrog Artifactory

> Connect JFrog Artifactory to review repositories, storage use, and Xray violations

Connect JFrog Artifactory so CloudThinker can review repositories, storage use and Xray violations, and delete one file after you approve it. It signs in with an access token.

## Prerequisites

* Access to the JFrog Artifactory account or service containing the records you want to investigate.
* Permission to prepare the credential below, or an administrator who can prepare it for you.
* The **Admin** role in your CloudThinker workspace to add a connection. See [Roles](https://docs.cloudthinker.io/guide/security/roles.md).
* A network path from CloudThinker to the service. For private services, see [Reaching private services](https://docs.cloudthinker.io/guide/connections/overview.md#reaching-private-services).

## Setup

**1. Prepare the credential**

Create an access token in JFrog Platform for a user or group with the intended repository and Xray permissions. Copy the token and your platform’s base URL.

See the [JFrog Artifactory documentation](https://docs.jfrog.com/administration/docs/access-tokens) for the provider’s credential and access controls. Keep secrets out of chat messages.

**2. Add the connection**

Open **Settings → Workspace → Connections**, find **JFrog Artifactory**, and click **Connect**. Fill in the fields in [Connection details](#connection-details), then click **Connect**.

**Success state:** the connection shows a **Connected** status. Use the verification prompt below to check that it reaches the intended account and records.

**3. Check the scope**

Open a conversation, select the new connection with **#**, and ask for a read-only summary. Check the account, region, and resources in the answer before using it for an investigation.

## Connection details

| Field | Required | What to enter |
| - | - | - |
| **JFrog Platform URL** | Yes | Your platform address without a path, for example [https://acme.jfrog.io](https://acme.jfrog.io). Artifactory and Xray must be on this host. |
| **Access token** | Yes | Use the access token prepared in the credential step. |

Use the address and credential from the same account or deployment. Keep any region, organization, or page selection aligned with that account.

## Required permissions

Read: the token's user can read the repositories and Xray data you want reviewed. Storage use needs an admin user.

Delete file: the user also needs delete permission on that repository. Deletion cannot be undone from CloudThinker.

## Agent capabilities

| Capability | What agents can do | Approval |
| - | - | - |
| Repositories | List repositories with type, package type and used space. | No |
| Files and folders | Read one file's size, dates and sha256, or a folder's children. | No |
| Xray violations | Read violations by severity, watch, type or CVE. | No |
| Delete file | Delete one file from a repository. | Yes |

Changes run only after you approve them. Agents show the file path, size and sha256 first, and delete only that file. Moving files, and editing repositories, watches, policies and scans, stay in JFrog.

### Verify the connection

```text theme={null}
Using this JFrog Artifactory connection, summarize its account or service scope and repositories and artifacts. Report any access failures without changing anything.
```

Check that the answer names the expected service and returns current records, or explains why a read failed. An empty collection alone is not proof that the entire service is healthy.

### Example prompts

```text theme={null}
Show critical Xray violations from the last 7 days with their fix versions.
Delete libs-release-local/com/acme/app-1.0.jar.
```

## Troubleshooting

> [accordion] The token is rejected
>
> JFrog answers 401. Create a new token under Administration → User Management → Access Tokens and reconnect.

> [accordion] Access is denied
>
> JFrog answers 403. Use a user with read permission on the repositories and Xray; storage info needs an admin. Deleting needs delete permission on the repository.

> [accordion] Xray data is missing
>
> JFrog answers 404 on Xray. Use the platform root URL of a host that runs Xray.

> [accordion] Requests are slowed
>
> JFrog answers 429. Wait a minute and ask again.

## Security

* **Least privilege** — grant only the permissions the agents need for your use case; start read-only and widen later.
* **Read-only by default** — use read-only credentials unless you want agents to make changes through this connection.
* **Rotate credentials** — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
* **Revoke on offboarding** — remove the credential at the provider when you delete a connection or a teammate leaves.

- Keep the credential scoped to the resources this workspace needs. Replace it in CloudThinker when you rotate or revoke it at the provider.

## Related

> [card] [Connections](https://docs.cloudthinker.io/guide/connections/overview.md)
>
> Manage connections and reach private services.

> [card] [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md)
>
> Control which changes require your approval.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.