> This is part 1 of 3 of the full documentation (pages 1–100 of 220).
> The content is paginated: fetch every part to see all of it.
> Next part: https://docs.veedna.com/llms-full.txt/1
> Page index: https://docs.veedna.com/llms.txt

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.veedna.com/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

---

# About Lineaje

## Continuous Security for Software and AI

Software should continuously know what it’s made of, what changed, what’s vulnerable or risky, and how to fix itself—so organizations can continuously trust what they build and deploy.

Lineaje is a software supply chain and AI security company helping organizations secure software, open source, containers, and AI-generated applications. Its products provide continuous visibility, governance, automated remediation, and compliance across software and AI. Trusted by enterprise and public-sector organizations, Lineaje reduces risk, eliminates exploitable vulnerabilities, secures AI applications, and accelerates innovation.

Click to explore Lineaje's products:

<table data-view="cards"><thead><tr><th></th><th data-hidden></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>Delivers compatible, app-aware packages, containers, and patches without exploitable vulnerabilities. Fixed versions preserve application compatibility and reduce remediation effort.</td><td></td><td data-object-fit="contain"><a href="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FnE1nDOJ4QtZWIw0myzLs%2FGOS%20Icon.png?alt=media&amp;token=3d5c6422-abc7-40da-a7a8-57850a4b2776">GOS Icon.png</a></td><td><a href="https://docs.veedna.com/gold-open-source-gos">Gold Open Source (GOS)</a></td></tr><tr><td>Uses autonomous Find → Fix → Verify workflows across first-party code, open source, containers, and AI-generated applications. It reduces remediation backlogs and delivers verified fixes alongside existing AppSec tools. <br>Includes: <br><a href="https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360">SBOM360</a><br><a href="https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/frontier-defense">Frontier Defense</a></td><td></td><td data-object-fit="contain"><a href="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F6ln5SilBP9qqtCImmTRA%2FCVEF%20Icon.png?alt=media&amp;token=2823be8b-a82f-4737-9871-fba07ef932ff">CVEF Icon.png</a></td><td><a href="https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef">Continuous Vulnerability Elimination Factory (CVEF)</a></td></tr><tr><td>Discovers AI assets and derives policies as they are built. It applies runtime guardrails for agents, models, MCP servers, and skills to enforce security and compliance.</td><td></td><td data-object-fit="contain"><a href="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2Fsyl6cyWLkXH2TeGjGb3j%2FUnifAI%20Icon.png?alt=media&amp;token=e777ad74-69d4-4115-a0c3-dff91fa7cae8">UnifAI Icon.png</a></td><td><a href="https://docs.veedna.com/unifai">UnifAI</a></td></tr><tr><td>xBOM generates and manages SBOMs, AIBOMs, CBOMs, and FBOMs across the software supply chain. It provides complete dependency visibility for continuous compliance and enterprise governance.<br>Includes:<br>TPRM (Third Party Risk Management)</td><td></td><td data-object-fit="contain"><a href="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FEUsKVhYt9IImyw773ooY%2FxBOM%20Manager%20icon.png?alt=media&amp;token=61cad6ea-ea52-4f6c-8a90-0d8ffb20315c">xBOM Manager icon.png</a></td><td><a href="https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360">SBOM360</a></td></tr></tbody></table>


# Lineaje Product Offering

Products offered by Lineaje

## SBOM360

SBOM360 provides continuous software supply chain security management to companies by mapping out the lineage of their programs. SBOM360 is an advanced solution that helps companies protect themselves from software supply chain attacks. Through SBOM360, anyone can prepare a Software Bill of Materials (SBOM) to keep themselves and their stakeholders safe.

Here are things that you can use SBOM360 for:

* Generate SBOM for your source repo or container image or an already existing SBOM file
* View overall risk score of your SBOM
* View transitive dependencies of your SBOM
* View vulnerabilities of your SBOM
* View licenses and suppliers of your SBOM
* View inherent risk for each component based on security posture, code quality
* Download assessment report of your SBOM
* Publish your SBOM to SBOM360 Hub
* Create policies and programs as per the organizational needs
* Evaluate SBOMs against programs and generate findings

## SBOM360 Hub

SBOM360 Hub is a platform to exchange SBOMs. SBOM360 Hub enables your organization to share your private SBOMs with your customers/distributors/resellers and request SBOMs from other suppliers.

SBOM360 Hub maintains an immutable copy of the SBOM. This enables all your customers to see the same data for your products/SKU irrespective of how many times its shared.

Here are things that you can use SBOM360 Hub for

* Upload an existing SBOM generated by any SCA tool
* Verify whether your SBOM is EO14028 compliant
* Share SBOM with your customers, distributors, resellers
* Request an SBOM from a supplier
* Assess the externally uploaded SBOM in SBOM360 and view you SBOM
* Download assessment report for your SBOM

## UnifAI

UnifAI is the unified AI security orchestrator for agentic AI application development. It automatically secures AI applications as they are built and applies corporate security policies in real time. UnifAI provides continuous discovery of AI assets and enables developers to create secure AI applications by incorporating controls into agentic application development.

This gives security teams confidence that controls are consistently enforced while allowing developers to focus on speed and innovation.

To learn more, see [UnifAI](https://docs.veedna.com/unifai).


# Getting started

## Getting started

Create your Lineaje account to begin configuring your environment.

After your first sign-in, Lineaje opens the onboarding workflow. Use it to create an organization, configure gates, and connect integrations.

### Choose a setup path

The onboarding workflow supports two configuration approaches:

* **Quick setup** creates a default organization with standard gates and policies.
* **Custom setup** creates an organization hierarchy with custom gates and policies.

Choose the path that matches your operational requirements. You can refine the configuration after onboarding.

### Next steps

1. [Create an account](https://docs.veedna.com/getting-started/create-an-account)
2. [Complete the onboarding workflow](https://docs.veedna.com/getting-started/onboarding-workflow)

<br>


# Create an Account

## Create an Account

Lineaje supports email, third-party identity, and SAML SSO account creation.

1. Create an account with a corporate email address.
2. Sign in with GitHub, GitLab, or Bitbucket.
3. Configure SAML single sign-on (SSO) for your organization.

### Create an Account with a Corporate Email Address

1. Open the [sign-up page](https://app.veedna.com/auth/signup).
2. Select **Sign Up with Email**.
3. Enter your email address, name, and password.
4. Verify the email sent to your inbox.
5. Sign in after email verification completes.

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2Fc3ByQhRv45QXFn6hJSrr%2Fimage.png?alt=media&amp;token=9a942718-1125-4600-9d74-35819883619d" alt=""><figcaption></figcaption></figure></div>

The first user from an organization becomes its Tenant Admin. Later users require a role assignment before accessing the application.

#### Tenant Admin and Standard Users

The first user who registers for an organization becomes the Tenant Admin. Tenant Admins add users and assign roles within their organization. See [Organization and User Management](https://docs.veedna.com/getting-started/organization-and-user-management).

Subsequent users are created without a role. They may see a **Request Permission** message. A Tenant Admin must assign a role before these users can access Lineaje.

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2ForIqohqvonhTRvBEmgT4%2Fimage.png?alt=media&amp;token=8f025830-af16-4115-bc64-d2d9493ecd20" alt=""><figcaption></figcaption></figure></div>

#### Approve a User

Tenant Admins approve pending users as follows:

1. Open **Settings** → **User Management** → **Users**.
2. Select the pending user.
3. Assign an SBOM360 role and organization.

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FedRsXtL6oqHMoPkDyXqI%2Fimage.png?alt=media&amp;token=9c94a064-6bd0-4ac3-8308-48fc8146749b" alt=""><figcaption></figcaption></figure></div>

### Create an Account with GitHub, GitLab, or Bitbucket

Use an existing GitHub, GitLab, or Bitbucket account to sign in.

1. Open the [sign-in page](https://app.veedna.com/auth/signin).
2. Select GitHub, GitLab, or Bitbucket.
3. Authorize Lineaje when prompted.
4. Complete the provider's sign-in flow.

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FZuwdLUyXR22agbQf4xqY%2Fimage.png?alt=media&amp;token=eced5ba2-53a2-43ac-93d9-65f0d3accc86" alt=""><figcaption></figcaption></figure></div>

On first sign-in, you become the Tenant Admin for the new tenant. Invite additional users from **Settings** → **User Management** → **Users** → **Invite User**.

Invited users receive an email link. They sign in with their existing GitHub, GitLab, or Bitbucket credentials.

### Configure SAML Single Sign-On

Configure SAML SSO after creating a corporate email account. This account becomes the Tenant Admin.

1. [Create an account with a corporate email address](#create-an-account-with-a-corporate-email-address).
2. Sign in with the new account.
3. Open **Settings** → **Authentication**.
4. Select **Edit Configuration** → **Single Sign-On**.
5. Enter the sign-in URL and upload the SAML `.cer` certificate.
6. Select **Enable SSO**.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FDbZ1j6weHWDDQHjjf2Vm%2Fimage.png?alt=media&amp;token=b8a6f01c-3869-488d-97a6-259f62e806ad" alt=""><figcaption></figcaption></figure>

See the [Azure AD configuration example](https://docs.veedna.com/getting-started/create-an-account/configure-azure-ad-for-sso) and [Okta configuration example](https://docs.veedna.com/getting-started/create-an-account/configure-okta-for-sso).

#### SSO Initiation Methods

Lineaje supports service provider (SP)-initiated SSO. Lineaje redirects users to the identity provider for authentication.

Identity provider (IdP)-initiated SSO is disabled by default. It has known security risks. Contact <support@lineaje.com> if your organization requires it.


# Configure Azure AD for SSO

Configure SAML single sign-on with Microsoft Azure AD.

## Configure Azure AD for SSO

Configure a non-gallery enterprise application in Azure AD. Then add its SAML details to Lineaje.

### Before You Begin

Collect the following values from Lineaje:

* Entity ID
* Post callback URL

You need Tenant Admin access in Lineaje. You also need permission to create enterprise applications in Azure AD.

### Create an Enterprise Application

1. Open the [Azure portal](https://portal.azure.com/) and go to [Azure Active Directory](https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview).
2. Select **Enterprise applications**.
3. Select **New application**.
4. Select **Create your own application**.
5. Enter an application name.
6. Select the non-gallery application option.
7. Select **Create**.

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FsorfTajMpMe8suCHCsFB%2Fimage.png?alt=media&amp;token=824d4124-9a24-46b9-89a4-1586f36e453b" alt=""><figcaption></figcaption></figure></div>

### Configure SAML in Azure AD

1. Open the new enterprise application.
2. Select **Single sign-on**.
3. Select **SAML**.
4. Enter the Lineaje values in the SAML configuration:

```
Identifier (Entity ID) -> Lineaje Entity ID

Reply URL (Assertion Consumer Service URL) -> Lineaje post callback URL
```

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FykisJm2BhxYcBEnhQhur%2Fimage.png?alt=media&amp;token=a3bff1b3-c280-4225-a657-37bdebf39bd3" alt="" width="563"><figcaption></figcaption></figure></div>

### Assign Users and Groups

Assign the Azure AD users and groups that can access Lineaje.

1. Select **Users and groups** in the enterprise application.
2. Select **Add user/group**.
3. Select the users or groups to assign.
4. Save the assignment.

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FU2RZLsA7cUgsGfsraI1B%2Fimage.png?alt=media&amp;token=d0fd010b-553d-4b50-9f21-3cb570af3201" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FHkzsmolOPbhAsCnRyxiX%2Fimage.png?alt=media&amp;token=117f758c-a94e-4523-bb01-a8e35bfd4d54" alt=""><figcaption></figcaption></figure></div>

### Test the SAML Configuration

1. Return to **Single sign-on**.
2. Select **Test**.
3. Complete the Azure AD sign-in flow.
4. Copy the resulting browser URL.

Keep this URL available. You need it when configuring Lineaje.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FbtPIJuxvloZYfLQ0Tjrb%2Fimage.png?alt=media&amp;token=63d221b7-c74d-4118-9398-13f18d606273" alt=""><figcaption></figcaption></figure>

### Configure SAML in Lineaje

1. In Azure AD, copy the SAML certificate and **Login URL**.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F85eqF2jHyGGzF9cVpZER%2Fimage.png?alt=media&amp;token=6889ff2b-891a-4278-b81c-e292d121f51c" alt=""><figcaption></figcaption></figure>

2. [Sign in to Lineaje](https://app.veedna.com/signin).
3. Open **Settings** → **Authentication**.
4. Select **Edit Configuration** → **Single Sign-On**.
5. Enter the Azure AD Login URL as the sign-in URL.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FizsfTp41bPr3yDRFXUiI%2Fimage.png?alt=media&amp;token=20531177-752b-455a-ac46-5b5ec1a670e7" alt=""><figcaption></figcaption></figure>

6. Upload the SAML `.cer` certificate.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FilzIn59sSubNDki5kULR%2Fimage.png?alt=media&amp;token=dcfdcae4-1d1f-4e67-a207-2017a31a22b5" alt=""><figcaption></figcaption></figure>

7. Verify that the callback URL matches the URL configured in [Azure AD](#configure-saml-in-azure-ad).

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FWRe5OVi197tRurSN0rF3%2Fimage.png?alt=media&amp;token=d8d9978f-e5f1-4ff4-abda-81656225b09c" alt=""><figcaption></figcaption></figure>

8. Select **Enable SSO**.


# Configure Okta for SSO

Configure SAML single sign-on with Okta.

## Configure Okta for SSO

Create a SAML application in Okta. Then add its identity provider details to Lineaje.

### Before you begin

Collect these values from the Lineaje SSO configuration:

* Entity ID
* Post callback URL

You need Tenant Admin access in Lineaje. You also need permission to create Okta applications.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FdIAoYSmmUax53KVoCy0D%2Fimage.png?alt=media&amp;token=87b7c0b8-eaa4-4c8d-8b2a-a475d98c9765" alt="" width="563"><figcaption></figcaption></figure>

### Create an application in Okta

1. Open the Okta portal and switch to **Admin** mode.
2. Select **Applications** → **Applications**.
3. Select **Create App Integration**.
4. Select **SAML 2.0**, then select **Next**.
5. Enter an application name.
6. Select **Next**.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FA2038TKUiIphTlv4nFK1%2Fimage.png?alt=media&amp;token=4a7673b9-3111-44b2-9fd9-d7b08a61b781" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FjQledJoN3dQaZEhleu6X%2Fimage.png?alt=media&amp;token=1d62dfc9-b26d-4984-a9c1-93aba71e8a82" alt="" width="563"><figcaption></figcaption></figure>

### Configure SAML in Okta

1. Enter the Lineaje values in the SAML configuration:

   ```
   Audience URI (SP Entity ID) -> Lineaje Entity ID

   Single sign-on URL -> Lineaje post callback URL
   ```
2. Set **Name ID format** to **EmailAddress**.
3. Configure the required attribute statements. Okta includes these attributes in the SAML assertion.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FRA6nIlchfCzo48EjjENJ%2Fimage.png?alt=media&amp;token=b45c5d20-e364-41f6-90fa-e5b85a50096e" alt="" width="547"><figcaption></figcaption></figure>

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2Fe0HH0S00OQ1PPKKjEnNY%2Fimage.png?alt=media&amp;token=6731e5df-c4b0-4277-bb9b-e3bc941cf434" alt="" width="563"><figcaption></figcaption></figure>

4. Complete the remaining Okta prompts and select **Finish**.

Okta screens vary by version. The following examples show common options.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FZhiEggX2ZYfIxrtJ9MPg%2Fimage.png?alt=media&amp;token=a47b328a-e789-428c-9ffe-37b8da4a1c3a" alt="" width="557"><figcaption></figcaption></figure>

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FOBvAdkBe6CQJpnvSdTAC%2Fimage.png?alt=media&amp;token=7c78addf-84d0-4afc-9246-7f5085041002" alt="" width="563"><figcaption></figcaption></figure>

### Assign users and groups

1. Open the application's **Assignments** tab.
2. Assign the users or groups that can access Lineaje.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FxSH3uSPnrG4vFj1AK9nz%2Fimage.png?alt=media&amp;token=8714a955-b511-4832-a28e-7505aeb4fe2d" alt="" width="563"><figcaption></figcaption></figure>

### Collect Okta SAML details

1. Open the application's **Sign On** tab.
2. Select **View SAML setup instructions**.
3. Copy the identity provider single sign-on URL.
4. Download the X.509 certificate.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F5T91FpzWkP8biRYbhpEF%2Fimage.png?alt=media&amp;token=ab8f24e5-b93d-4eba-afb9-1cf16e7745c7" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FNMaPpmjODVQHM6FZQQKX%2Fimage.png?alt=media&amp;token=1aee284d-b427-470c-9fc4-f70b3997b218" alt="" width="563"><figcaption></figcaption></figure>

### Configure SAML in Lineaje

1. Return to the Lineaje application.
2. Open **Settings** → **Authentication**.
3. Select **Edit Configuration** → **Single Sign-On**.
4. Enter the Okta identity provider single sign-on URL in **Sign-in URL**.
5. Upload the X.509 certificate that you downloaded from Okta.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FkfwvigXJARu9ZmEi5UdL%2Fimage.png?alt=media&amp;token=3b3f0707-a074-4d92-ba39-fb0e6f5c67be" alt="" width="563"><figcaption></figcaption></figure>

6. Select **Enable SSO**.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FMR6dUNab97ccDdjf4JFE%2Fimage.png?alt=media&amp;token=f19ce48c-a3d6-4151-a902-1312a19d7b7a" alt="" width="540"><figcaption></figcaption></figure>


# Onboarding workflow

On first login, you will be presented with an onboarding workflow. The onboarding flow is different for a Tenant Admin, Org Admin and a Function User.

### **Tenant Admin/ Org Admin onboarding workflow**&#x20;

The onboarding flow will guide you to setup child organizations (optional), setup additional gates (optional), invite users to create policies for gates, invite users to create integrations.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FNvqgMfIUXvGHjuqcT1kq%2Fimage.png?alt=media&amp;token=f0ebd591-670f-4163-88a3-e0b7cfb5df4c" alt=""><figcaption></figcaption></figure>

1. Global Organization

By default, a root organization will be created for you. All users will belong to this root organization. In this step, you can change the name of the root organization. You are the tenant admin and you will be the org admin for this root organization.

2. Gates

The second step is to create additional gates. As a tenant admin, you can create gates that you want your entire org to be evaluated against. For e.g., it could be a gate related to open source vulnerabilities or it could be a gate related to open source provenance or it could be a gate related to usage of specific license or it could be a gate related to usage of components from a particular vendor and so on.

Gates are inherited. So a gate that is assigned to an org will be applied to the SBOMs in that org and all of its sub orgs. You can learn about gates [Policies and Gates](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/policies-and-gates).&#x20;

The default gates are already applied and show up.&#x20;

3. Child organization

Creating child organizations is an optional step. By default all users belong to the default root organization.

You can create child organizations. Organizations may map to a team, BU, product team etc. You can create orgs and sub-orgs that can map to your company. Organization decides the visibility and ownership of SBOMs.

4. Setup integrations

The last step is to setup integrations. In this step, you can configure the tokens necessary to access the source repository, image repository. Once configured, this can be used for SBOM generation.

### Function User Workflow

The teannt Admin/Org Admin could have delegated the policy setup and/or integration setup to function users. When a function user logins for the first time, an onboarding flow will show up to guide the user on the tasks.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FVj714ysQRFpT7orDluuV%2Fimage.png?alt=media&amp;token=cc0e46eb-9c38-4d94-9df8-db7e9f33e587" alt=""><figcaption></figcaption></figure>

1. Your Roles

This step gives the information about the roles assigned to this function user.2

2. Your Organizations

This step gives the information about the organizations to which the fucntion user belongs to.

3. Assigned Tasks

This step lists the assigned (delegated) tasks to the user. This will list the delegated tasks - setup policy or setup integrations or both.&#x20;

* Clicking on "Create Policy" will take the user to the Policy page
* Clicking on "Setup Integration" will take the user to the Integrations page

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FX5U5kPUcrDS139hXG1Lh%2Fimage.png?alt=media&amp;token=42e1557c-d9ce-4eb3-b078-af3b578e2ecc" alt=""><figcaption></figcaption></figure>


# Organization and User Management

Create/Modify  Organizations, Create/Modify Users

Organization and User Management is under Settings from left navigation bar.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FTa6KkhGqlDjq2qDLaHw8%2Fimage.png?alt=media&amp;token=57c691b4-adc6-4df3-aa9b-d78c27345f43" alt=""><figcaption></figcaption></figure>

### Organization Management

#### What is an organization?

Organizations refer to a group of users who can create/view projects. Organization decides the visibility and ownership of projects. Organizations may map to a team, BU, product team, functional team etc. You can create orgs and sub-orgs that can map to your company.&#x20;

* Organizations are customer defined
* An organization decides the visibility of projects.
  * A user at the root of the tree can access all projects under root
  * A user at the leaf node can access projects associated with the leaf node
* Each organization can have multiple users
* Every organization MUST have an "Org Admin" who can manage that org.
* Tenant Admin and Org Admin can create or modify organizations

#### Add/Modify organization

* Goto "Settings" page on the left navigation bar
* Goto "organizations" tab
* Click on "Add Organization"

#### Add user to an organization

* Goto "Settings" page on the left navigation bar
* Goto "organizations" tab
* Click on "Add User"

### User Management

#### Function

A function defines a user role. There are different functions defined to choose from.

AppSec, DevOps, DevSecOps, GRC, Legal, Open Source Office, Product Security, Quality, Sales, SBOM Approver, Tenant Admin, Org Admin

A function to which a user belongs to will enable/disable certain functionalities. For e.g. a Tenant Admin can only add organizations, users etc.

#### Add/Modify User

1. In the left-hand navigation, go to **Settings**.
2. Click **User Management**.
3. Click **Link User** to add a new user.


# Organization example

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FPHtCsWztFiTqsZn43wJz%2Fimage.png?alt=media&amp;token=06a1450d-aaa5-47e4-af92-b8f7b68f3bda" alt=""><figcaption></figcaption></figure>

| **Access**                       | **RootOrg**                                                                                            | **Org1**                                                      | **Org2**                                  | **Org11**                          | **Org12**    | **Org21**    | **Org22**    |
| -------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------- | ----------------------------------------- | ---------------------------------- | ------------ | ------------ | ------------ |
| View Gates                       | G1, G2                                                                                                 | G1, G2                                                        | G1, G2, G3                                | G1, G2, G4                         | G1, G2       | G1, G2, G3   | G1, G2, G3   |
| View SBOMs                       | <p>SBOM-1</p><p>SBOM-2</p><p>SBOM-11(1)</p><p>SBOM-11(2)</p><p>SBOM-12</p><p>SBOM-21</p><p>SBOM-22</p> | <p>SBOM-1</p><p>SBOM-11(1)</p><p>SBOM-11(2)</p><p>SBOM-12</p> | <p>SBOM-2</p><p>SBOM-21</p><p>SBOM-22</p> | <p>SBOM-11(1)</p><p>SBOM-11(2)</p> | SBOM-12      | SBOM-21      | SBOM-22      |
| View Integrations                | None                                                                                                   | Intg-1                                                        | None                                      | None                               | None         | None         | Intg-2       |
| View Findings                    | F1 to F 30                                                                                             | F1 to F21                                                     | F22 to F30                                | F1 to F21                          | None         | None         | F22 to F30   |
| View Cases                       | C1 to C21                                                                                              | C1 to C12                                                     | C13 to C21                                | C1 to C12                          | None         | None         | C13 to C21   |
| CUD Gates                        | UO, UL, TA                                                                                             | None                                                          | U2                                        | UM                                 | None         | None         | UM           |
| CUD SBOMs (update SBOM metadata) | None                                                                                                   | U1                                                            | U2                                        | UM                                 | U12          | U21          | UM           |
| CUD Integrations                 | None                                                                                                   | U1                                                            | None                                      | None                               | None         | None         | UM           |
| CUD Findings                     | NA                                                                                                     | NA                                                            | NA                                        | NA                                 | NA           | NA           | NA           |
| CUD Cases                        | Assignee/Org                                                                                           | Assignee/Org                                                  | Assignee/Org                              | Assignee/Org                       | Assignee/Org | Assignee/Org | Assignee/Org |


# Deploying Lineaje

Lineaje supports SaaS and hybrid deployment models, so you can choose the right balance of speed, control, and network isolation for your environment.

Lineaje supports the following deployment models:

* [SaaS Deployment](https://docs.veedna.com/deploying-lineaje/saas-deployment)
* [Hybrid Deployment](https://docs.veedna.com/deploying-lineaje/hybrid-deployment)


# SaaS Deployment

In SaaS mode, you provide access tokens for your source code repositories or container registries. No software installation is required on your infrastructure.&#x20;

{% stepper %}
{% step %}

### Prerequisites

Complete the [prerequisites](https://docs.veedna.com/deploying-lineaje/saas-deployment/prerequisities) for deployment.
{% endstep %}

{% step %}

###

{% endstep %}
{% endstepper %}


# Prerequisities

* A [Lineaje account](https://docs.veedna.com/getting-started/create-an-account). Contact Lineaje Support for access.&#x20;
* Access tokens for your source code repositories ([GitHub](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens), GitLab, Bitbucket) and container registries.


# Page 2


# Integrations

### Generate an SBOM Project

The Integrations page offers several starting points for generating an SBOM project, categorized by source type: SCM, Container Registries, AI Model, and continuous Integration.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FCN4upDN0t0k5n7fCeAsx%2Fintegrations.png?alt=media&amp;token=3801f561-72f1-4fe2-8c14-d9bf93647d89" alt=""><figcaption></figcaption></figure>

1. Log in to the [Lineaje portal](https://app.veedna.com/auth/signup).&#x20;
2. Navigate to **Integrations** > **Scan Remotely**.&#x20;
3. Select your source type (GitHub, GitLab, Bitbucket, or container registry).&#x20;
4. Click **Add Integration**. **Select your source for detailed setup steps:**
5. Provide your access token and repository URL.&#x20;
6. Click **Connect**. Lineaje scans the repository and generates a project automatically.

Select your source for detailed setup steps:

* [Source Code Management (SCM) As Source](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/source-code-management-scm-as-source)
* [Container Image As Source](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/container-image-as-source)
* [Existing SBOM As Source](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/existing-sbom-as-source)
* [Manifest file As Source](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/manifest-file-as-source)
* [Android Package Kit(APK)](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/binary-files)


# Source Code Management (SCM) As Source

Create a configuration for SCM integration. Each configuration stores settings for a private or public code repository. A public repository configuration supports up to 10 repository URLs. A private repository configuration requires credentials with sufficient permissions to enumerate and list the repositories.


# Public Code Repositories

SBOMs can be generated for public code repositories. Following are the steps to configure a public code repository:

{% stepper %}
{% step %}

### Add Details

Add the following details:

* **Name**: Enter a name for GitHub configuration
* **Description**: Add a description for the configuration
* **Enter a public GitHub URL**: Add up to 10 public code repository URLs per configuration. Lineaje verifies each URL for accessibility and displays its status.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F14qLKLpcXxMZHDIkjq6r%2Fdetails-public-scm.png?alt=media&amp;token=78c9dfca-5888-4473-bb78-e76257a9d0a9" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Review and Save Configuration

1. Review the following: Repository Name, Branch, Tag, Project Name, and Version. You can also edit the auto-generated Project Name and Version.
2. Click **Save Configuration** to generate the SBOM.
   {% endstep %}
   {% endstepper %}


# Private Code Repositories

Private code configuration requires credentials to access the private code. This may include a combination of access token, username, certificates depending on the SCM platform.&#x20;

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FxmHpw143Ptm8st9iqR81%2Fimage.png?alt=media&amp;token=3003194b-d9a1-4c13-9f33-9829a9db9aeb" alt=""><figcaption></figcaption></figure>

1\. In the **Details** section:

* **Name**: Enter a name for the configuration.
* **Description**: Add a description for the configuration.
* <mark style="color:$danger;">**User Name**</mark><mark style="color:$danger;">: ?</mark>
* <mark style="color:$danger;">**Access Token**</mark><mark style="color:$danger;">: ?</mark>
* **Test Connection**: Click to test connection against the credentials.

2. Click **Next**.
3. In the **Review** section, review the following: **Repository Name**, **Branch**, **Tag**, **Project Name**, and **Version**. You can also edit the auto-generated **Project Name** and **Version**.
4. Click **Save Configuration** to generate the SBOM.

![](https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FvLBf9EnmX87arWdLN2tV%2F7.png?alt=media)


# Configure GitHub credentials

GitHub configuration requires a "Personal Access Token".

## Creating Personal Access Token

Refer [GitHub docs](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) to create Personal Access Token.

* Go to [github.com](https://github.com/) and sign-in
* Select your profile.
* Click on Settings.
* Click on Developer Settings.
* Click on Personal access tokens.
* Enter a token name.
* Set an expiration date (optional).
* Define scopes with the following permissions:
  * Repository – contents – read
  * Repository – metadata – read
* Click on Create personal access token.
* Add the newly generated token as "Access Token" in Lineaje configuration.


# Configure Bitbucket credentials

Bitbucket configuration requires "User Name" and "Access Token".

Bitbucket supports two types of access tokens depending on the access privileges. There are two types of tokens that can be generated based on your access rights to Bitbucket.

## Creating App password

Refer [Bitbucket Docs](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/) to learn about creating App password.

* Go to [bitbucket.org](https://bitbucket.org/).
* Go to your repository.
* Select the Settings cog in the upper-right corner of the top navigation bar.
* Under **Personal settings**, select **Personal Bitbucket settings.**
* On the left sidebar, select App passwords.
* Select Create app password, select permissions and save.
* Set the "User Name" in Lineaje configuration to your Bitbucket username. Please note that bitbucket username may not be the same as your email id.
* Add the newly generated token as "Access Token" in Lineaje configuration.

## Creating Access Tokens

Refer [Bitbucket Docs](https://support.atlassian.com/bitbucket-cloud/docs/access-tokens/) to learn about creating Repository/Project/Workspace Access Tokens and [creating](https://support.atlassian.com/bitbucket-cloud/docs/create-a-repository-access-token/) the repository tokens.

* Go to [bitbucket.org](https://bitbucket.org/).&#x20;
* Go to your repository.
* Click Repository Settings.
* Select Access tokens.
* Press Create Repository Access Token.
* Create a token name.
* Select the repository token permissions.
* Click the Create button.
* Copy the token and save it somewhere memorable. The token will be inaccessible once you leave the page.
* As per the Bitbucket docs, set the "User Name" to "**x-token-auth**" in Lineaje configuration.
* Add the newly generated token as "Access Token" in Lineaje configuration.


# Configure Gitlab credentials

Gitlab configuration requires "User Name" and "Access Token".

## Creating Personal Access Token

Refer [Gitlab docs](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) to create Personal Access Token.

* Go to [about.gitlab.com](https://about.gitlab.com/) and sign-in
* Select your profile.
* Click Edit profile.
* Click on Access Tokens.
* Enter a token name.
* Set an expiration date (optional).
* Define scopes.
* Click on Create personal access token.
* Set the "User Name" in Lineaje configuration.
* Add the newly generated token as "Access Token" in Lineaje configuration.


# Configure Git credentials

git configuration requires "User Name" and "Access Token". The exact steps of creating the access token depends on the git cloud that is used.

## Creating Personal Access Token

* Depending on the git cloud used, follow the instructions to generate a personal access token.
* Set the "User Name" in Lineaje configuration.
* Add the newly generated token as "Access Token" in Lineaje configuration.


# Configure Azure Repo

Azure Repo uses standard git interface. Azure Repo can be configured using "[Git](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/source-code-management-scm-as-source/private-code-repositories/configure-git-credentials)".

* Login to your account in [dev.azure.com](https://dev.azure.com)
* Top right corner, click on User Settings
* Click on Personal Access Token
* Click on "New Token"
* Add Name, Organization, Expiration, Scopes (Read access is preferred)

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FE549WGnZs6c4YgkbIGC9%2Fimage.png?alt=media&amp;token=17eaedb9-b31e-48d5-96b8-c254b5a1e82b" alt=""><figcaption></figcaption></figure>


# Container Image As Source

SBOM360 supports integration with different container registries.

* Create a configuration for container image integration. This helps the organizations to group image registries based on location or team or product.
* Each configuration can store settings for private or public image registry
* In case of [public image registry](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/container-image-as-source/public-container-image), one configuration can store up to 10 public image URLs
* In case of [private code registry](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/container-image-as-source/private-container-image), access must be given to enumerate and list the private container images.

<br>


# Public Container Image

SBOMs can be generated for public container images. There are two steps involved:

### Step 1: Details

* Each configuration can store up to 10 container image URLs
* Each container image URL is verified for its accessibility and a status is displayed

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FqbE5A3AL1lOQqqOeIBjT%2Fimage.png?alt=media&amp;token=d698bc2e-922e-4627-82d6-bc999bc5c384" alt=""><figcaption></figcaption></figure>

### Step 2: Review

* The tags available for the verified conatiner image are listed in this step
* Choose a tag to generate an SBOM
* Project name and version will be auto generated but can be edited
* Click on “Save Configuration” to generate SBOM

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F61YvAyYUqq0rKpFtho5b%2Fimage.png?alt=media&amp;token=e2370f21-4149-4758-8ab5-994ee8af07da" alt=""><figcaption></figcaption></figure>

<br>


# Private Container Image

SBOMs can be generated for private code repositories.

There are three steps involved:

### Step 1: Details

* Each configuration requires a mandatory name and a description.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FyjSkJwk18PnjCz8f0TnO%2Fimage.png?alt=media&amp;token=8b6b24f5-60ab-4ea8-a8f1-a861f6c2848c" alt=""><figcaption></figcaption></figure>

### Step 2: Configure

* Enter the credentials required to access the private registry. This gives Lineaje access to your organization’s private image registry,
* This step varies for AWS-ECR, GCP-Container Registry, and Docker Hub.
* By clicking on Test Connection, the connection will be tested against the credentials.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F2iZys0h5owMDzAC21W9u%2Fimage.png?alt=media&amp;token=2becdc1f-ae57-436f-9f2d-a90d27a63086" alt=""><figcaption></figcaption></figure>

### Step 3: Review

* All the container images available in the private registry will be displayed
* Choose a container image
* Project name and version will be auto generated but can be edited
* Click on Save Configuration to generate a project


# Configure AWS Elastic Container Registry

Provide credentials to access private ECR

There are two options to configure access to AWS-ECR private registry: CloudFormation Template and Configure Manually

### Manual Configuration

This configuration allows you to enter the accountID, accessToken, secretkey and Region. This would allow Lineaje to get access to your organization’s private ECR registry.

For security reasons, Lineaje recommends creating new user with cross account role. Follow the below steps to create a new user:&#x20;

* Go to the AWS console and login using your organization credentials
* Navigate to Identity and Access Management (IAM) and click Users
* Add users, then enter the user name

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FeCrjgewdS32gEMc1azo5%2Fimage.png?alt=media&amp;token=82f4a05b-363d-4734-94b3-6433a5ad1830" alt=""><figcaption></figcaption></figure>

* For the AWS credential type, press Access key - Programmatic access then set permissions. There are two required permissions you will need to set:
  * AmazonEC2ContainerRegistryFullAccess
  * AmazonElasticContainerRegistryPublicFullAccess

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2Fu1KhtSkoe7oAYwz8MHdw%2Fimage.png?alt=media&amp;token=c6d5a479-02f7-4464-9b95-f48bc565ff42" alt=""><figcaption></figcaption></figure>

* Skip Tags Tab
* Review Tab

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FTAW4YQKzZGtvXcPWQYvy%2Fimage.png?alt=media&amp;token=e7269ac8-c0d6-485b-8d24-0857c805f083" alt=""><figcaption></figcaption></figure>

* Final tab will provide you the access key id and secret access key

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FxPxF4kpejBEDahPnyPtP%2Fimage.png?alt=media&amp;token=52e21f5a-9ce1-42c8-ae9b-9e50ac2d17cb" alt=""><figcaption></figcaption></figure>

### IAM CloudFormation Template​

The CloudFormation Template (CFT) option needs a CFT file to be uploaded.&#x20;

* Download the sample CFT file
* Go to the AWS console and login using your organization credentials

  * Go to the AWS *sign-in page* <https://console.aws.amazon.com/cloudformation&#x20>;
  * Click the buttons Create Stack -> With New Resources

  <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F00e64pQJ173zNyk8drtf%2Fimage.png?alt=media&amp;token=f0b4b9d0-d7af-4eaf-844c-b515f7e5a2be" alt=""><figcaption></figcaption></figure>

  * Leave the Prepare Template setting as-is
    * For Template source select Upload a template file
    * Click Choose file and select the CloudFormation template you downloaded and click Next

  <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FdAFoTeQohKAOXJadGF6q%2Fimage.png?alt=media&amp;token=d7a6eae4-1904-4766-bef7-87e675d97f62" alt=""><figcaption></figcaption></figure>

  * For Stack name use SBOM360-ECR-Permissions-Stack and click Next

  <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F6fPcbbmIO3Ch8xUOJsjN%2Fimage.png?alt=media&amp;token=1d867041-b5ae-42b1-8256-ecce4f418773" alt=""><figcaption></figcaption></figure>

  * For Configure Stack Options, it is recommended to use configuring tags, which are key-value pairs that can help you identify your stacks and the resources they create. You will not have to use additional permissions or advanced options so click Next.
  * For Review

    * Scroll down to the bottom of the page and select "I acknowledge that AWS CloudFormation might create IAM resources with custom names."
    * Click Create Stack

    <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FZPp6ZdSKKT6Mr17SB977%2Fimage.png?alt=media&amp;token=4a4827b3-2e94-4d9f-9aa6-9a4406c7e7ef" alt=""><figcaption></figcaption></figure>

    * You will be taken to the CloudFormation stack status page, showing the stack creation in progress
      * Click on the Events tab and watch the CloudFormation events as they form the IAM Role
    * Click on the Outputs tab and copy the value of the EcrIntegrationRoleARN key

    <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FDbt8hAuLlgAMa6cASoTa%2Fimage.png?alt=media&amp;token=71d87482-1ce2-42dc-a8d8-bd653c7229b6" alt=""><figcaption></figcaption></figure>

    * It should look similar to the following key - arn:aws:iam:/sbom360/SBOM360\_ECR\_Role
* Upload the updated CFT in the configure step
* By clicking on Test Connection, the connection will be tested against the credentials


# Configure Google Container Registry

To give access to your organizations’ artifact registry, you will have to enter the project-ID, region and upload the Google Service Account file.

\
To identify the project-ID, follow these steps:

* Go to the GCP console and login using your organization credentials
* Go to the API Console and view the projects list
* Move to the projects list and click Manage all projects
  * NOTE: The Manage all projects space will display all the project names and IDs that you are a member of.
* Navigate to the desired project select the project to display its project-ID


# Configure Docker Hub

To give access to your organizations’ Docker Hub account, you will have to provide the Docker ID and Access Token of the Docker Hub to start this process.&#x20;

<br>


# Configure Generic OCI Registry


# Configure Azure Container Registry

Azure Container Registry supports the standard Docker commands. Azure Container Registry can be configured using "[OCI Compatible Registry](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/container-image-as-source/private-container-image/configure-generic-oci-registry)".

* Goto [portal.azure.com](https://portal.azure.com.).
* Search to Container Registry
* Navigate to your private Container Registry
* Goto Settings -> Access Keys
* Enter the details -> Registry Name, Login server, Admin user, Username, password, password2

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FBbJG4MfOvumdyLuHD5Uz%2Fimage.png?alt=media&amp;token=1f72f011-49b3-49b8-8172-2f56db4b7ad6" alt=""><figcaption></figcaption></figure>


# Frequently Asked Questions

### Why do I not see a new project triggered even after clicking on "Save Configuration"?

Project generation has a n optimization to avoid accidental runs of same project configuration. A combination of Project Name, Version, digest of the image is used to generate a unique identifier for each project. A project run is triggered only if the combination of Project Name and Version does not exist.

Note: If its only for testing, the previous project in projects page can be deleted to trigger a new run for the same image.

### How can I change the settings for an existing project?

To change the configure, click on edit configuration.

* Step 1 (Details): Configuration name, description, credentials, repo URLs can be modified.
* Step 2 (Review): Branch/tag can be changed for the existing configuration by going to "Edit Repositories" tab.
* Click on Save Configuration to trigger a new project.


# Existing SBOM As Source

Generate a project by uploading your existing SBOMs in either SPDX or CycloneDX format.

Follow the below steps:

1. Step 1: Project name and version
   1. Enter a name and version for your project.
2. Step 2: Choose format and upload file
   1. Choose the format of your SBOM.
      1. SBOM360 supports both SPDX and CycloneDX files.
      2. Please refer the [support matrix](https://docs.veedna.com/sca360-secure-deployment-for-restricted-environments/support-matrix) for  supported versions and formats
   2. Drag and drop or browse to find and enter your desired SBOM file.
   3. CSV uploads are also supported.  Please refer to the following sample file for the supported format.

{% file src="/files/Uhcd8iscswjLhh3Tu39U" %}

1. Step 3: Review
   1. For every file uploaded, [EO 14028](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/existing-sbom-as-source/eo-14028-checks) check is performed and errors (if any) are displayed
   2. Once the submit is clicked, the SBOM generation kicks off
   3. Please note that the outcome of an SBOM generation with errors in the EO 14028 check will be incomplete.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FkJjp2ILqkuJHmChFByVA%2Fimage.png?alt=media&amp;token=37347f9d-dc39-438b-b0a0-f27372a93327" alt=""><figcaption></figcaption></figure>


# EO 14028 checks

Minimum elements for an SBOM

### Minimum fields

EO 14028 checks correspond to the minimum elements in an SBOM as described by <https://www.ntia.doc.gov/files/ntia/publications/sbom_minimum_elements_report.pdf>

The table below lists the minimum elements. Some of these fields are at a SBOM level and the others are applicable for each component in the SBOM.

<table><thead><tr><th width="248">Data Field</th><th>Description</th></tr></thead><tbody><tr><td>SBOM Timestamp</td><td>Record of the date and time of the SBOM data creation</td></tr><tr><td>SBOM Author</td><td>The name of the entity that creates the SBOM data for this component</td></tr><tr><td>SBOM dependencies</td><td>Characterizing the relationship that a component X is included in software Y</td></tr><tr><td>Component Name</td><td>Designation assigned to a unit of software defined by the original supplier</td></tr><tr><td>Component Version</td><td>Version assigned to a unit of software defined by the original supplier</td></tr><tr><td>Component Supplier Name</td><td>The name of an entity that creates, defines, and identifies components</td></tr><tr><td>Component Unique Identifiers</td><td>Identifiers that are used to identify a component (like PURL, BomRefId etc)</td></tr></tbody></table>

### Mapping of minimum fields&#x20;

Below is a table mapping the NTIA minimum SBOM fields to SPDX and CycloneDX

|                         | SPDX                                       | CycloneDX                                                        |
| ----------------------- | ------------------------------------------ | ---------------------------------------------------------------- |
| SBOM Timestamp          | (2.9) Created:                             | metadata/timestamp                                               |
| SBOM Author             | (2.8) Creator:                             | metadata/authors/author                                          |
| SBOM dependencies       | (7.1) Relationship: DESCRIBES CONTAINS     | Inherent in nested assembly/subassembly and/or dependency graphs |
| Component Name          | (3.1) PackageName:                         | name                                                             |
| Component Version       | (3.3) PackageVersion:                      | version                                                          |
| Component Supplier Name | (3.5) PackageSupplier:                     | Supplier publisher                                               |
| Component Unique Ids    | (2.5)SPDX Document Namespace (3.2) SPDXID: | bom/serialNumber component/bom-ref                               |


# Manifest file As Source

A manifest file is a configuration file that build tools use to build a project. A manifest file typically carries various build configurations as well as information about dependencies.

Enteprises do not expose the source code. The scm tool that is used for source code management is accessible within the enterprise boundary. So the persona who wants to generate SBOM using Lineaje is often stuck with getting right permissions to provide Lineaje cloud access to the source code. To simplify the SBOM creation, Lineaje supports uploading of the manifest file alone. Doing so will kick start the SBOM generation. All private and third party dependencies referred in the manifest file will remain unresolved as Lineaje does not have access. On the other hand all open source dependencies show up.

The below table lists down the supported manifest files for different build tools. The manifest file typically is found in the root of the source code. Depending on the type of the project, there could be one or more manifest files (root + sub directories).

<table data-header-hidden><thead><tr><th width="92.33333333333331">#</th><th width="323">Build tool</th><th>Manifest file</th></tr></thead><tbody><tr><td>1</td><td>Java / Maven</td><td>pom.xml</td></tr><tr><td>2</td><td>Python / PIP</td><td>requirements.txt</td></tr><tr><td>3</td><td>Rust / Cargo</td><td>Cargo.lock</td></tr><tr><td>4</td><td>Golang / Go Modules</td><td>go.mod</td></tr><tr><td>5</td><td>Yarn</td><td>yarn.lock</td></tr><tr><td>6</td><td>JavaScript / NPM</td><td>package-lock.json</td></tr></tbody></table>


# Binary Files

You can generate an SBOM for your applications using this option.

Currently, the following binary types are supported: **Windows EXE, Windows MSI, Windows DLL, and Android APK**.

Follow the steps below:

* Enter a name and version for your project.
* Drag and drop or browse to select your desired binary file (**.exe, .msi, .dll, .apk**).
* Click the Upload Binary button.
* Once the upload is complete, you will be redirected to your projects page.<br>

<br>


# Hybrid Deployment

Hybrid deployment keeps source code and artifacts inside your environment. Lineaje performs local analysis and sends only SBOM metadata to the Lineaje platform.

{% stepper %}
{% step %}

### Prerequisites

Complete the [prerequisites](https://docs.veedna.com/deploying-lineaje/hybrid-deployment/prerequisites) for system, network, and toolset configuration.&#x20;
{% endstep %}

{% step %}

### Deploy Lineaje Producs

* To deploy SBOM360, see [Deploying SBOM360](https://docs.veedna.com/deploying-lineaje/hybrid-deployment/deploying-sbom360).
* To deploy UnifAI, see [Deploying UnifAI](https://docs.veedna.com/deploying-lineaje/hybrid-deployment/deploying-unifai).
  {% endstep %}

{% step %}

### Register the CLI

After deploying SBOM360, [register the CLI](https://docs.veedna.com/deploying-lineaje/hybrid-deployment/installing-and-registering-the-cli#registering-the-cli).
{% endstep %}

{% step %}

### Use the CLI

To generate SBOMs for source code, package files, and container images, see [Using the CLI](https://docs.veedna.com/deploying-lineaje/hybrid-deployment/using-the-cli).
{% endstep %}
{% endstepper %}


# Prerequisites

Network configuration applies to every deployment mode. OVA also needs system configuration. AWS uses only network configuration. CLI Binary also needs system and toolset configuration.

* [System Configuration](https://docs.veedna.com/deploying-lineaje/hybrid-deployment/prerequisites/system-configuration)
* [Network Configuration](https://docs.veedna.com/deploying-lineaje/hybrid-deployment/prerequisites/network-configuration)
* [Toolset Configuration](https://docs.veedna.com/deploying-lineaje/hybrid-deployment/prerequisites/toolset-configuration)


# System Configuration

Before deploying Lineaje solutions, ensure your environment meets the following configuration requirements.

### Hardware for CBOM

| Requirement      | Minimum specification                         |
| ---------------- | --------------------------------------------- |
| Operating system | Linux (RHEL 8+, Ubuntu 20.04+, or equivalent) |
| CPU              | 4 cores                                       |
| RAM              | 20 GB                                         |
| Disk             | 250 GB SSD                                    |
| Network          | Outbound HTTPS access to \*.v2.prod.vdna.com  |

### Hardware for SBOM

<table><thead><tr><th width="198">Component</th><th>Requirements</th></tr></thead><tbody><tr><td>Processors</td><td><p>Intel x86_64 architecture-based processor</p><ul><li>Minimum: 2 vCPU</li><li>Recommended: 4 vCPU</li></ul></td></tr><tr><td>Memory</td><td><p>Minimum: 2 GB RAM</p><p>Recommended: 4 GB RAM </p></td></tr><tr><td>Disk space</td><td><p>Output Directory – Minimum 100 GB </p><p>“/tmp” Directory – Minimum 40 GB </p><p>“/home” Directory – Minimum 1 GB</p></td></tr></tbody></table>

### Operating System

* Ubuntu 22.04 LTS
* Red Hat Enterprise Linux 8

{% hint style="info" %}
The CLI does not support 32-bit platforms.
{% endhint %}

### Additional Software Requirement

The CLI requires the following software:

* Git Client

For language decomposition, see [Toolset Configuration](https://docs.veedna.com/sca360-secure-deployment-for-restricted-environments/toolset-configuration).

The following tools are recommended for troubleshooting:&#x20;

* `unzip`&#x20;
* `strace`
* `screen/tmux`
* `gdb`&#x20;
* `wget / curl`
* `vim`
* `tcpdump`
* `jq`


# Network Configuration

Configure the network access that SCA360 needs to run, such as outbound ports, runtime privileges, and external domains used for analysis, uploads, and report downloads. Allow only the services that apply to your environment and enabled features.

### Security and Firewall Requirements

<table><thead><tr><th width="154">Port</th><th>Usage</th></tr></thead><tbody><tr><td>TCP/443</td><td>SCA360 uses this port to connect to the SBOM360 backend and fetch data from public repositories.</td></tr></tbody></table>

### Privileges Configuration

<table><thead><tr><th width="154">Privilege type</th><th>Usage</th></tr></thead><tbody><tr><td>Regular User</td><td>SCA360 runs as a regular user. Root or sudo privileges are not required. The user must have a valid home directory.</td></tr><tr><td>Network access</td><td>SCA360 requires access to external networks on the ports listed in the Firewall Requirements table. Depending on the configuration, SCA360 may also require access to internal source and package repositories.</td></tr><tr><td>Execution access</td><td>SCA360 executes the following: third-party tools shipped in the <code>third_party</code> folder, and the <code>git</code> client to clone source code.</td></tr></tbody></table>

### Domains Requiring Access

This access is required to be configured only if the Firewall does not allow outgoing HTTPS connection by default.

#### Common

<table><thead><tr><th width="336.727294921875">Services accessed</th><th></th></tr></thead><tbody><tr><td>Local Vulnerability Lookup</td><td><p>https://*.anchore.io </p><p><strong>OR</strong></p><ul><li>https://toolbox-data.anchore.io/</li><li>https://grype.anchore.io</li></ul></td></tr><tr><td>Malware Lookup</td><td>https://data.reversinglabs.com</td></tr><tr><td>Maven and Gradle Package Repository</td><td><ul><li>https://repo.maven.apache.org</li><li>https://repo1.maven.org</li><li>https://repo.spring.io</li><li>https://oss.sonatype.org</li><li>https://maven.google.com</li><li>https://dl.google.com</li></ul></td></tr><tr><td>NPM and JavaScript Package Repository</td><td>https://registry.npmjs.org<a href="https://registry.npmjs.org"></a></td></tr><tr><td>Python Package Repository</td><td>https://pypi.org</td></tr><tr><td>Rust Package Repository</td><td>https://crates.io</td></tr><tr><td>Ruby Package Repository</td><td>https://rubygems.org</td></tr><tr><td>Dotnet Package Repository</td><td>https://api.nuget.org</td></tr><tr><td>Go Package Repository</td><td><ul><li>https://sum.golang.org</li><li>https://proxy.golang.org</li><li>https://golang.org</li><li>https://google.golang.org</li><li>https://pkg.go.dev</li></ul></td></tr><tr><td>Packagist Repository</td><td>https://packagist.org</td></tr><tr><td>Source Repository (based on usage)</td><td><ul><li>https://github.com </li><li>https://bitbucket.org </li><li>https://gitlab.com</li></ul></td></tr><tr><td>Ubuntu Container</td><td><p>https://*.ubuntu.com </p><p><strong>OR</strong> </p><ul><li>https://archive.ubuntu.com</li><li>https://security.ubuntu.com</li><li>https://old-releases.ubuntu.com</li></ul></td></tr><tr><td>Debian Container</td><td><p>https://*.debian.org </p><p><strong>OR</strong></p><p>https://ftp.de.debian.org</p></td></tr><tr><td>Red Hat Container</td><td><p>https://*.redhat.com </p><p><strong>OR</strong></p><ul><li>https://sso.redhat.com</li><li>https://api.access.redhat.com</li><li>https://cdn-ubi.redhat.com</li></ul></td></tr><tr><td>Alpine Container</td><td><p>https://*.alpinelinux.org</p><p><strong>OR</strong></p><ul><li>https://build.alpinelinux.org</li><li>https://dl-cdn.alpinelinux.org</li></ul></td></tr><tr><td>Amazon Linux Container</td><td><p>https://*.amazonlinux.com </p><p><strong>OR</strong><br>https://cdn.amazonlinux.com</p></td></tr></tbody></table>

#### USA based deployment

For a USA-based deployment, whitelist the following URLs to enable communication with the required Lineaje services.

| Services accessed            | Text                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| UI                           | <https://app.veedna.com>                                                                                                                                                                                                                                                                                                                                                                                                 |
| Lineaje Backend Services     | <p>https\://\*.v2.prod.veedna.com<strong>OR</strong></p><ul><li><https://data-service-v2-apigw.v2.prod.veedna.com></li><li><https://notification-service.v2.prod.veedna.com></li><li><https://lineaje-gpt-service.v2.prod.veedna.com></li><li><https://lineaje-identity-service.v2.prod.veedna.com></li><li><https://scim-service.v2.prod.veedna.com></li><li><https://lineaje-idp-service.v2.prod.veedna.com></li></ul> |
| Upload SBOM metadata         | <https://us-east-1-commercialprod-veedna-opa.s3.amazonaws.com/\\>\*                                                                                                                                                                                                                                                                                                                                                      |
| Download reports             | <ul><li><https://us-east-1-commercialprod-veedna-sbomreport-bucket.s3.amazonaws.com/>*</li><li><https://us-east-1-commercialprod-veedna-datapipeline.s3.amazonaws.com/>*</li></ul>                                                                                                                                                                                                                                       |
| Gold Open Source Artifactory | <ul><li><https://enforce.fortknox.v2.prod.veedna.com></li><li><https://observe.fortknox.v2.prod.veedna.com></li></ul>                                                                                                                                                                                                                                                                                                    |
| UnifAI MCP Server            | <https://mcp.v2.prod.veedna.com/mcp>                                                                                                                                                                                                                                                                                                                                                                                     |

#### ​**India based deployment**

For an India-based deployment, whitelist the following URLs to enable communication with the required Lineaje services.

| Services accessed        | Text                                                                                                                                                                                                                                                                                                                                              |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| UI                       | <https://app.veedna.in>                                                                                                                                                                                                                                                                                                                           |
| Lineaje Backend Services | <p>https\://\*.v2.prod.veedna.in<strong>OR</strong></p><ul><li><https://scim-service.v2.prod.veedna.in></li><li><https://scm-service.v2.prod.veedna.in></li><li><https://notification-service.v2.prod.veedna.in></li><li><https://data-service-v2-apigw.v2.prod.veedna.in></li><li><https://lineaje-identity-service.v2.prod.veedna.in></li></ul> |
| Upload SBOM metadata     | <https://ap-south-1-indiaprod-veedna-opa.s3.ap-south-1.amazonaws.com/\\>\*                                                                                                                                                                                                                                                                        |
| Download reports         | <ul><li><https://ap-south-1-indiaprod-sbomreport-bucket.s3.ap-south-1.amazonaws.com/>*</li><li><https://ap-south-1-indiaprod-veedna-datapipeline.s3.ap-south-1.amazonaws.com/>*</li></ul>                                                                                                                                                         |


# Toolset Configuration

Local SBOM generation resolves a language-specific toolchain for each ecosystem a scan touches. The CLI prefers the system-installed toolchain when it meets the minimum version requirements and falls back to a pinned toolset under `third_party/linux` when the system toolchain doesn't qualify.

Toolset settings are read from `third_party/runtimes-config.json` and `third_party/tools-config.json`.&#x20;

Edit these files only to override a default tool path or version:

```bash
cd veecli
cat third_party/runtimes-config.json | jq . | less
cat third_party/tools-config.json | jq . | less
```

### Toolset Requirements

The CLI resolves toolsets independently for each of the following ecosystems, using the system toolchain wherever it qualifies.

* PyPI and Python
* npm and Node.js
* Maven and Gradle
* Cargo and Rust
* Ruby
* Go modules
* NuGet and .NET

### Use Native Python

Native Python resolution requires a system Python interpreter, `pipdeptree` version `2.3.3` or later, and virtual environment support.

```bash
cd veecli
which python
pip show pipdeptree
sudo pip install pipdeptree==2.3.3
python -m venv /tmp/python-venv
```

<details>

<summary>Set up Python on Ubuntu 22.04</summary>

#### Python 3.10

```bash
cd veecli
sudo apt-get update
sudo apt-get install apt-utils pkg-config git tar wget build-essential unzip jq -y
sudo apt-get install libssl-dev libpq-dev libffi-dev libsqlite3-dev -y
sudo apt-get install python3-pip python3-venv -y

wget -q https://www.python.org/ftp/python/3.10.8/Python-3.10.8.tgz
tar -xzf Python-3.10.8.tgz
mkdir -p third_party/linux/python310
cd Python-3.10.8
./configure --prefix=$(pwd)/../third_party/linux/python310 > /dev/null 2>&1
make install > /dev/null 2>&1
cd -

ls -al third_party/linux/python310/bin/python3.10
sudo pip install pipdeptree==2.3.3

rm -f Python-3.10.8.tgz
rm -rf Python-3.10.8
```

#### Python 3.9

```bash
cd veecli
sudo apt-get update
sudo apt-get install apt-utils pkg-config git tar wget build-essential unzip jq -y
sudo apt-get install libssl-dev libpq-dev libffi-dev libsqlite3-dev python3-pip -y

wget -q https://www.python.org/ftp/python/3.9.15/Python-3.9.15.tgz
tar -xzf Python-3.9.15.tgz
mkdir -p third_party/linux/python39
cd Python-3.9.15
./configure --prefix=$(pwd)/../third_party/linux/python39 > /dev/null 2>&1
make install > /dev/null 2>&1
cd -

ls -al third_party/linux/python39/bin/python3.9
sudo pip install pipdeptree==2.3.3

rm -f Python-3.9.15.tgz
rm -rf Python-3.9.15
```

</details>

### Use Native npm

Native npm resolution requires `npm` on the system path.

```bash
which npm
```

<details>

<summary>Set up npm on Ubuntu 22.04</summary>

```bash
cd veecli
sudo apt-get update
sudo apt-get install apt-utils pkg-config git tar wget build-essential unzip jq -y
sudo apt-get install python2 libx11-dev libxkbfile-dev libkrb5-dev libsecret-1-dev -y

wget -q https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz
mkdir -p third_party/linux/node-16.20.2
tar --strip-components=1 -C third_party/linux/node-16.20.2 -xf node-v16.20.2-linux-x64.tar.xz

wget -q https://nodejs.org/dist/v18.19.0/node-v18.19.0-linux-x64.tar.xz
mkdir -p third_party/linux/node-18.19.0
tar --strip-components=1 -C third_party/linux/node-18.19.0 -xf node-v18.19.0-linux-x64.tar.xz

wget -q https://nodejs.org/dist/v21.4.0/node-v21.4.0-linux-x64.tar.xz
mkdir -p third_party/linux/node-21.4.0
tar --strip-components=1 -C third_party/linux/node-21.4.0 -xf node-v21.4.0-linux-x64.tar.xz

ls -al third_party/linux/node-16.20.2/bin/npm
ls -al third_party/linux/node-18.19.0/bin/npm
ls -al third_party/linux/node-21.4.0/bin/npm

rm node-v16.20.2-linux-x64.tar.xz
rm node-v18.19.0-linux-x64.tar.xz
rm node-v21.4.0-linux-x64.tar.xz
```

</details>

<details>

<summary>Set up npm on Red Hat Enterprise Linux 8</summary>

```bash
cd veecli
sudo yum check-update
sudo yum install git jq vim -y
sudo yum groupinstall "Development Tools" -y
sudo yum install dnf-utils pkg-config tar wget -y
sudo yum install python2 krb5-devel libsecret-devel -y

wget -q https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz
mkdir -p third_party/linux/node-16.20.2
tar --strip-components=1 -C third_party/linux/node-16.20.2 -xf node-v16.20.2-linux-x64.tar.xz

wget -q https://nodejs.org/dist/v18.19.0/node-v18.19.0-linux-x64.tar.xz
mkdir -p third_party/linux/node-18.19.0
tar --strip-components=1 -C third_party/linux/node-18.19.0 -xf node-v18.19.0-linux-x64.tar.xz

wget -q https://nodejs.org/dist/v21.4.0/node-v21.4.0-linux-x64.tar.xz
mkdir -p third_party/linux/node-21.4.0
tar --strip-components=1 -C third_party/linux/node-21.4.0 -xf node-v21.4.0-linux-x64.tar.xz

ls -al third_party/linux/node-16.20.2/bin/npm
ls -al third_party/linux/node-18.19.0/bin/npm
ls -al third_party/linux/node-21.4.0/bin/npm

rm node-v16.20.2-linux-x64.tar.xz
rm node-v18.19.0-linux-x64.tar.xz
rm node-v21.4.0-linux-x64.tar.xz
```

</details>

### Use Native Maven

Native Maven resolution requires Java and Maven on the system path.

```bash
which java
which mvn
```

<details>

<summary>Set up Maven on Ubuntu 22.04</summary>

```bash
cd veecli
sudo apt-get update
sudo apt-get install apt-utils pkg-config git tar wget build-essential unzip jq -y

wget -q https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz
mkdir -p third_party/linux/openjdk-17.0.2_linux-amd64
tar --strip-components=1 -C third_party/linux/openjdk-17.0.2_linux-amd64 -xzf openjdk-17.0.2_linux-x64_bin.tar.gz
ls -al third_party/linux/openjdk-17.0.2_linux-amd64/bin/java

mkdir -p third_party/linux/maven-3.8.8
wget -q https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz
tar --strip-components=1 -C third_party/linux/maven-3.8.8 -xzf apache-maven-3.8.8-bin.tar.gz
ls -al third_party/linux/maven-3.8.8/bin/mvn

export JAVA_HOME=$(pwd)/third_party/linux/openjdk-17.0.2_linux-amd64

rm openjdk-17.0.2_linux-x64_bin.tar.gz apache-maven-3.8.8-bin.tar.gz
```

</details>

<details>

<summary>Set up Maven on Red Hat Enterprise Linux 8</summary>

```bash
cd veecli
sudo yum check-update
sudo yum install git jq vim -y
sudo yum groupinstall "Development Tools" -y
sudo yum install dnf-utils pkg-config tar wget -y

wget -q https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz
mkdir -p third_party/linux/openjdk-17.0.2_linux-amd64
tar --strip-components=1 -C third_party/linux/openjdk-17.0.2_linux-amd64 -xzf openjdk-17.0.2_linux-x64_bin.tar.gz
ls -al third_party/linux/openjdk-17.0.2_linux-amd64/bin/java

mkdir -p third_party/linux/maven-3.8.8
wget -q https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz
tar --strip-components=1 -C third_party/linux/maven-3.8.8 -xzf apache-maven-3.8.8-bin.tar.gz
ls -al third_party/linux/maven-3.8.8/bin/mvn

export JAVA_HOME=$(pwd)/third_party/linux/openjdk-17.0.2_linux-amd64

rm openjdk-17.0.2_linux-x64_bin.tar.gz apache-maven-3.8.8-bin.tar.gz
```

</details>

### Use Native Gradle

Native Gradle resolution requires Java and Gradle on the system path.

```bash
which java
which gradle
```

<details>

<summary>Set up Gradle on Ubuntu 22.04</summary>

```bash
cd veecli
sudo apt-get update
sudo apt-get install apt-utils pkg-config git tar wget build-essential unzip jq -y

wget -q https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz
mkdir -p third_party/linux/openjdk-17.0.2_linux-amd64
tar --strip-components=1 -C third_party/linux/openjdk-17.0.2_linux-amd64 -xzf openjdk-17.0.2_linux-x64_bin.tar.gz
ls -al third_party/linux/openjdk-17.0.2_linux-amd64/bin/java

wget -q https://services.gradle.org/distributions/gradle-7.5.1-bin.zip
unzip -q gradle-7.5.1-bin.zip -d third_party/linux
ls -al third_party/linux/gradle-7.5.1/bin/gradle

export JAVA_HOME=$(pwd)/third_party/linux/openjdk-17.0.2_linux-amd64

rm openjdk-17.0.2_linux-x64_bin.tar.gz gradle-7.5.1-bin.zip
```

</details>

### Use Native Cargo

Native Cargo resolution requires Cargo and `cargo-lock`, ideally installed to the same location.

```bash
which cargo
which cargo-lock
```

<details>

<summary>Set up Cargo on Ubuntu 22.04</summary>

```bash
cd veecli
sudo apt-get update
sudo apt-get install apt-utils pkg-config git tar wget build-essential unzip jq -y
sudo apt-get install libssl-dev -y

curl -s https://sh.rustup.rs -o rust.sh
export RUSTUP_HOME=$(pwd)/third_party/linux/rustup
export CARGO_HOME=$(pwd)/third_party/linux/cargo
bash rust.sh -y -q > /dev/null 2>&1

ls -al third_party/linux/cargo/bin/cargo
third_party/linux/cargo/bin/cargo install -q --root $(pwd)/third_party/linux/cargo cargo-lock --features=cli

rm rust.sh
```

</details>

### Use Native Ruby

Native Ruby resolution requires Ruby, Bundler, RubyGems, the `bundler-graph` plugin, and the `ruby-graphviz` and `cyclonedx-ruby` gems.

```bash
which ruby
which bundle
which gem
bundle plugin list
gem list ruby-graphviz
which cyclonedx-ruby
gem specification cyclonedx-ruby version
echo $BUNDLE_PATH
echo $GEM_PATH
```

<details>

<summary>Set up Ruby on Ubuntu 22.04</summary>

```bash
cd veecli
sudo apt-get update
sudo apt-get install apt-utils pkg-config git tar wget build-essential unzip jq -y
sudo apt-get install libyaml-dev graphviz libsqlite3-dev libssl-dev zlib1g-dev -y

wget -q https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz
mkdir -p third_party/linux/ruby-3.2.2
tar -xzf ruby-3.2.2.tar.gz
cd ruby-3.2.2
./configure --prefix=$(pwd)/../third_party/linux/ruby-3.2.2 > /dev/null 2>&1
make install > /dev/null 2>&1
cd -

ls -al third_party/linux/ruby-3.2.2/bin/ruby
mkdir -p $(pwd)/third_party/linux/ruby-gems

export PATH=$PATH:$(pwd)/third_party/linux/ruby-3.2.2/bin
export BUNDLE_PATH=$(pwd)/third_party/linux/ruby-gems
export GEM_PATH=$(pwd)/third_party/linux/ruby-gems

./third_party/linux/ruby-3.2.2/bin/bundle plugin install bundler-graph
./third_party/linux/ruby-3.2.2/bin/gem install ruby-graphviz

git clone https://github.com/lineaje-labs/cyclonedx-ruby-gem.git
cd cyclonedx-ruby-gem
git checkout ffe6a1a6d78efafc02c47c1c6c245a0082bfa68a
gem build cyclonedx-ruby.gemspec
gem install cyclonedx-ruby-1.2.0.lineaje.gem > /dev/null 2>&1
cd -
rm -rf cyclonedx-ruby-gem
```

</details>

### Use Native Go

Native Go resolution requires a system Go installation and `cyclonedx-gomod` version `1.3.0` or later.

```bash
which go
which cyclonedx-gomod
cyclonedx-gomod version
wget -q https://github.com/CycloneDX/cyclonedx-gomod/releases/download/v1.3.0/cyclonedx-gomod_1.3.0_linux_amd64.tar.gz
tar -xzf cyclonedx-gomod_1.3.0_linux_amd64.tar.gz
sudo cp cyclonedx-gomod /usr/sbin
echo $GOROOT
```

<details>

<summary>Set up Go on Ubuntu 22.04</summary>

```bash
cd veecli
sudo apt-get update
sudo apt-get install apt-utils pkg-config git tar wget build-essential unzip jq -y

wget -q https://golang.google.cn/dl/go1.18.10.linux-amd64.tar.gz
mkdir -p third_party/linux/go-1.18
tar --strip-components=1 -C third_party/linux/go-1.18 -xzf go1.18.10.linux-amd64.tar.gz
ls -al third_party/linux/go-1.18/bin/go

mkdir -p third_party/linux/cyclonedx-gomod-1.3
wget -q https://github.com/CycloneDX/cyclonedx-gomod/releases/download/v1.3.0/cyclonedx-gomod_1.3.0_linux_amd64.tar.gz
tar -C third_party/linux/cyclonedx-gomod-1.3 -xzf cyclonedx-gomod_1.3.0_linux_amd64.tar.gz
ls -al third_party/linux/cyclonedx-gomod-1.3/cyclonedx-gomod

export GOROOT=$(pwd)/third_party/linux/go-1.18
export PATH=$PATH:$GOROOT/bin

rm go1.18.10.linux-amd64.tar.gz cyclonedx-gomod_1.3.0_linux_amd64.tar.gz
```

</details>

### Use Native NuGet

Native NuGet resolution requires `dotnet` and `dotnet-cyclonedx` on the system path.

```bash
which dotnet
which dotnet-cyclonedx
echo $DOTNET_ROOT
```

<details>

<summary>Set up NuGet on Ubuntu 22.04</summary>

```bash
cd veecli
sudo apt-get update
sudo apt-get install apt-utils pkg-config git tar wget build-essential unzip jq -y

wget -q https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
mkdir -p third_party/linux/dotnet

bash ./dotnet-install.sh --install-dir third_party/linux/dotnet -c LTS > /dev/null 2>&1
bash ./dotnet-install.sh --install-dir third_party/linux/dotnet -c STS > /dev/null 2>&1
bash ./dotnet-install.sh --install-dir third_party/linux/dotnet -c 6.0 > /dev/null 2>&1

ls -al third_party/linux/dotnet/dotnet

export DOTNET_ROOT=$(pwd)/third_party/linux/dotnet
export PATH=$PATH:$(pwd)/third_party/linux/dotnet:$(pwd)/third_party/linux/dotnet/tools

mkdir -p third_party/linux/cyclonedx-dotnet
dotnet tool install --tool-path $(pwd)/third_party/linux/cyclonedx-dotnet CycloneDX > /dev/null 2>&1
ls -al third_party/linux/cyclonedx-dotnet/dotnet-CycloneDX

rm dotnet-install.sh
```

</details>


# Deploying SBOM360

SBOM360 provides continuous software supply chain security management by mapping the lineage of your programs. It helps you generate and analyze Software Bills of Materials, assess risk across dependencies, and protect against software supply chain attacks.

Choose a deployment mode for deploying SBOM360.

<details>

<summary>CLI Binary</summary>

With CLI Binary, you can deploy and manage SBOM360 on your own VM.

Download the CLI from the Lineaje Portal, then complete installation in [Installing CLI](https://docs.veedna.com/deploying-lineaje/hybrid-deployment/installing-and-registering-the-cli#installing-cli).

</details>

<details>

<summary>AWS Marketplace</summary>

You can deploy Lineaje SCA360 in your AWS environment by subscribing to the Lineaje service and creating a stack and then configuring the instance in the Lineaje Portal.

### Step 1: Deploying Lineaje SCA360 Through AWS Marketplace

1. Log in to the AWS Marketplace and search for `Lineaje SCA360` in the AWS Marketplace products.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FHT6FzdA3tbJxLOqXDj1i%2Faws-market-place-search-lineaje-1.png?alt=media&amp;token=dfead68a-960b-4bad-b5d5-e7ef3990b742" alt="Search for Lineaje in AWS Marketplace"><figcaption></figcaption></figure>
2. Click on **View purchase options** and click **Subscribe**.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FSP5SUJ85HrIVh3PqDmZw%2Faws-market-place-view-purchase-option-1.png?alt=media&amp;token=33ed447e-744c-4688-aee4-48573c4b682d" alt="Lineaje purchase options"><figcaption></figcaption></figure>
3. Click **Set up your account** and enter the details.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FNy967qjgw6XYDPpeWOeK%2Faws-market-place-set-up-account-1.png?alt=media&amp;token=ecd527a6-87d7-41da-95dd-75183365e928" alt="Enter account details"><figcaption></figcaption></figure>
4. Click **Next**.
5. Click **Deploy** to set up SCA360 in your preferred AWS region.
6. On the **Stacks** page, a pre-filled CloudFormation template is displayed. Enter the following information:

   * **VPC ID**: Choose your preferred VPC to define the network boundary of your AWS resources. VPC ID must be created prior to deployment. To learn more, see [Prerequisites](https://veedna.atlassian.net/wiki/spaces/~712020229c992a6cc548239d3993932adc913d/pages/1024163841/Tech+Writer+Copy+Lineaje+SCA360+Installation#Prerequisites).
   * **Subnet ID**: Choose a subnet where your resources will be launched within the VPC. Subnet ID must be created prior to deployment. To learn more, see [Prerequisites](https://veedna.atlassian.net/wiki/spaces/~712020229c992a6cc548239d3993932adc913d/pages/1024163841/Tech+Writer+Copy+Lineaje+SCA360+Installation#Prerequisites).
   * **CIDR IP Range**: Enter `0.0.0.0/0`. Accesses the VM or EC2 instance to allow access of all IP addresses. To allow a specific IP address access, set CIDR to `x.x.x.x/32`.
   * **Key Pair**: Select the Key Pair. Key Pair must be created prior to deployment. To learn more, see [Prerequisites](https://veedna.atlassian.net/wiki/spaces/~712020229c992a6cc548239d3993932adc913d/pages/1024163841/Tech+Writer+Copy+Lineaje+SCA360+Installation#Prerequisites).

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FaVcyjf0qvhxud7T0ZvBG%2Faws-market-place-cloudformation-1.png?alt=media&amp;token=5c36dc6a-b8b6-4582-94f9-0fa277c58060" alt="Aws stacks page"><figcaption></figcaption></figure>
7. Under **Capabilities**, check **I acknowledge that that AWS CloudFormation might create IAM resources**.
8. Click **Create stack.**

### Step 2: Configuring Lineaje SCA360 in the Lineaje Portal

1. Log in to the [Lineaje Portal](https://app.veedna.com/).
2. In the left-hand navigation, select **Integrations**.
3. Click **Scan Remotely** to create an SBOM by connecting to your relevant SCM or Container Registry. Click **Upload and Scan** > **Upload Manifest File** if you want to generate SBOM by uploading a Manifest File.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FL9LDVPcKPdwFnHlsdh1d%2Flineaje-portal-scan-remotely-1.png?alt=media&amp;token=07ed670d-5e8b-4822-ac9d-4e51e03cef14" alt="Scan remotely"><figcaption></figcaption></figure>
4. To create an SBOM using your GitHub repository:

   1. In **Scan Remotely**, select **GitHub**.
   2. In the **Details** section, enter a name for your integration and enter a GitHub link.
   3. Click **Next**.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FqbtFXsDHeKAZqeA6PfFt%2Flineaje-portal-github-1.png?alt=media&amp;token=aba77a5f-7b02-4b5a-bf0d-65a38737411d" alt="Add details"><figcaption></figcaption></figure>
5. In the **Repositories** section, select the tag or branch you want to scan from your GitHub repository and click **Save Configuration**.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FxNREvqNxqVcP0RpEOfdO%2Flineaje-portal-github-select-repo-1.png?alt=media&amp;token=9f458185-b82c-4eab-8d13-fe90eb81af3d" alt="Select tag or branch"><figcaption></figcaption></figure>
6. Under **Project Name**, click on your project to view the enriched SBOM.
7. Click **Actions** to download the SBOM.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F8TmKZ0K9zZlvhIZyA7Ez%2Flineaje-portal-github-select-repo-download-sbom-1.png?alt=media&amp;token=1fc63828-978e-46f5-88ca-4893002ab167" alt="Download the SBOM"><figcaption></figcaption></figure>

</details>

<details>

<summary>Open Virtual Appliance (OVA)</summary>

Set up your Windows 11 environment to deploy Lineaje SCA360. Install the required components, configure a virtual machine, and deploy SCA360 using Gitbash.

### **Step 1: Installing the Required Components**

Install the following on your Windows 11 system (use default settings):

* [Python 3](https://www.python.org/downloads/windows/)
* [Git Bash](https://git-scm.com/install/windows)
* [Oracle VirtualBox](https://www.virtualbox.org/wiki/Downloads)

### **Step 2: Setting Up a Virtual Machine**

1. Download the OVA file from the SharePoint link sent to your email address.
2. Open **Oracle VirtualBox** > **File** > **Import Virtual Application**.
3. Select the OVA file and click **Finish**.
4. After import, go to **Settings**.

   <div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FH6FtJ0HkoAJgC3wSrsNd%2FOVA-settings.png?alt=media&amp;token=cf981485-b685-46f3-a91b-840d736d1779" alt="Settings"><figcaption></figcaption></figure></div>
5. In the **System** section, set **Base Memory** to **4096 MB**.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FDHMT5zLKGdau8dCxXAdE%2Fova-system.png?alt=media&amp;token=8acb9e21-67ed-40f9-b18f-c1e1c9e1eb70" alt="System section"><figcaption></figcaption></figure>
6. In the **Network** section, click on **Port Forwarding**.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FGDT2zcU4Bu0SEMoM17Y0%2Fova-port-forwarding.png?alt=media&amp;token=ec44c84f-796b-451e-8fbb-c0fa7cfdb562" alt="Port forwarding"><figcaption></figcaption></figure>
7. Create a new rule with the following configuration:
   * **Name**: SSH
   * **Protocol**: TCP
   * **Host IP**: 127.0.0.1
   * **Host Port**: 2222
   * **Guest Port**: 22

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FJhDgo3ClL7IUlsl3d4Ki%2Fova-port-forwarding-rules.png?alt=media&amp;token=9f7c66bc-dd1b-449f-b129-275a66413e0b" alt="New rule configuration"><figcaption></figcaption></figure>

8. Click **OK**.
9. Click **OK** to save the settings. 8. Start the virtual machine. 9. Log in using the following credentials:
   * Username: `lineaje`
   * Password: `lineaje`

{% hint style="info" %}
The default host key is the right Ctrl key. The minimum disk space is 20 GB. For POC, a minimum 100 GB is recommended.
{% endhint %}

10. Confirm that the CLI is installed correctly by checking its version.

`./veecli --version`

{% hint style="info" %}
If SSH or download fails, type the command sudo dhclient. Verify that the virtual machine has internet connectivity by performing a simple network check, such as sending a ping request to a reliable website (e.g., Google).
{% endhint %}

</details>

#### Next steps

After deployment, complete these steps for all modes:

1. [Registering CLI](https://docs.veedna.com/deploying-lineaje/hybrid-deployment/installing-and-registering-the-cli#registering-cli)
2. [Using the CLI](https://docs.veedna.com/deploying-lineaje/hybrid-deployment/using-the-cli)


# Deploying UnifAI

UnifAI is the unified AI security orchestrator for agentic AI application development. It secures AI applications as they are built, applies corporate security policies in real time, and continuously discovers AI assets so developers can build secure applications with integrated controls.

To deploy UnifAI, see [Setting Up](https://docs.veedna.com/unifai/setting-up).


# Installing and Registering the CLI

Use this guide to install the CLI on your VM, register it with Lineaje, or deregister it when you no longer need it.

<details>

<summary>Installing the CLI</summary>

Download the CLI from the Lineaje Portal, extract it on your VM, and register it with your device code.

1. Log in to the [Lineaje Portal](https://app.veedna.com/auth/signup).
2. From the left-hand navigation, choose **Integrations**.
3. Under **SCA360**, click **Download SCA360**.
4. Extract the CLI using the following steps:

```
# Run these commands as a regular user
# Extract the veecli.tar.gz
ubuntu@ip-a.b.c.d:~$ tar -xzf veecli.tar.gz
# This will create a directory called veecli
ubuntu@ip-a.b.c.d:~$ cd veecli
# Run pre.sh to set the permissions of the CLI and associated files
ubuntu@ip-a.b.c.d:~$ bash pre.sh
```

5. Go to the Lineaje Portal and click **Verify Device**.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FmdjsCWCUVTW7JLXw2sQE%2Fimage.png?alt=media&amp;token=5b5cc16a-55b6-4db1-aa6d-a2563cc2c547" alt=""><figcaption></figcaption></figure>

6. Click **Verify Link**. The device confirmation code appears.

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FKdsA2U8hvIbMbuhFysGZ%2Fimage.png?alt=media&amp;token=52850780-9f5d-48a8-9f38-f7606b4b8380" alt=""><figcaption></figcaption></figure></div>

7. Click **Confirm**.
8. Provide your credentials, if prompted.

</details>

<details>

<summary>Registering the CLI</summary>

1. After device registration succeeds, copy the code shown in the Lineaje Portal. The device registration code is valid for 5 minutes. If it expires, click **Verify Device** → **Verify Link** to get a new code.

<div align="right"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FIUjNPiSE7bhEYBvDdejZ%2Fcopy-code.png?alt=media&amp;token=af3e73aa-23f5-48a2-8e62-cdc2173c787c" alt=""><figcaption></figcaption></figure></div>

2. Run the following commands from the Ubuntu machine where the CLI is extracted.

```
# Run these commands as a regular user
# Go inside the directory where CLI is extracted
ubuntu@ip-172-31-26-185:~$ cd veecli
# Register the CLI with the SBOM360 backend using the device code obtained from portal
ubuntu@ip-172-31-26-185:~$ ./veecli register --devicecode npbP_fImda2Cj_Hzk9LgxJUn
2022-07-07T14:18:15.584+0300 info Starting to register veeCLI
2022-07-07T14:18:16.924+0300 info Successfully configured authentication
2022-07-07T14:18:16.924+0300 debug Signature in auth0 access token payload is 
unknown
2022-07-07T14:18:16.933+0300 info Authenticated for Tenant Name - ******, Tenant 
Id - vdna_************** and Device Code - npbP_fImda2Cj_Hzk9LgxJUn
2022-07-07T14:18:16.934+0300 info Successfully registered veeCLI
```

</details>

<details>

<summary>Deregistering the CLI</summary>

Deregister the CLI when you want to stop it from communicating with the Lineaje backend.

```bash
cd veecli
./veecli deregister --force
```

</details>


# Using the CLI

Use the CLI to generate SBOMs for source code, package files, and container images. SBOMs appear on the Projects page after upload. Generation time varies from a few seconds to several hours, depending on project size. The CLI collects metadata at n levels of depth, covering each component, its direct dependencies, and its transitive dependencies.

Ensure the `output` folder has at least 100 GB of free space.

Depending on the size of the source, packages, and dependencies discovered, the CLI may take a significant amount of time to complete. Run the CLI inside a `screen` or `tmux` session to prevent an interrupted user session from breaking the CLI run.

The CLI creates a JSON log file named `veelocal.log` in the current directory. To also capture CLI output, redirect it to a separate log file:

`./veecli collect --inputfile input.json --output output 2>&1 | tee output.log`

This page covers common collection and upload workflows across local files, Docker, Docker Hub, Amazon ECR, and Azure Container Registry.

<details>

<summary>Generate an SBOM From an Input JSON</summary>

Provide an input file and an output directory.

The output directory is used for checkout, downloads, extraction, and artifacts.

```bash
cd veecli
./veecli collect --inputfile input.json --output output
```

Example output:

```
2022-07-07T14:18:15.584+0300 info Starting data collection
2022-07-07T14:18:16.924+0300 info SBOM created for project acme and version 2.10.5 with project id - ***, sbom id - SPDXRef-DOCUMENT-vdna_*****, sbom job id - SPDXRef-DOCUMENT-vdna_****
...
2022-07-07T14:18:16.934+0300 info Successfully uploaded archive of collection artifacts – output/acme/acme-SPDXRef-DOCUMENT-vdna_******.tar.gz
2022-07-07T14:18:16.934+0300 info Successfully completed data collection
```

Keep at least `100 GB` free in the output directory.

Large scans can run for a while.

Use `screen` or `tmux` for long-running jobs.

The CLI also writes a JSON log file named `veelocal.log` in the current directory.

A common pattern is:

```bash
./veecli collect --inputfile input.json --outpath output 2>&1 | tee output.log
```

#### Generating SBOM From Source Code

Run the CLI using the following command. The CLI decomposes source code locally and uploads only the metadata to the Lineaje backend. Metadata includes package information (name, version, checksum) and source code information (URL, version, commits, timezone).

```
./veecli collect --inputfile <input.json> --output <output_path>
```

**Open Source examples of input.json**

```json
Maven project
{
  "project": "maven project",
  "version": "0.9.125",
  "exclude_test_dependency": true,
  "exclude_optional_dependency": true,
  "use_native_tools": true,
  "inputtype": "github",
  "inputs": [
    {
      "src_info": {
        "srcurl": "https://github.com/cloudera/cdp-sdk-java",
        "matchingref": "0.9.125",
        "type": "github"
      }
    }
  ]
}

Gradle project
{
  "project": "gradle project",
  "version": "parent-4.12.0",
  "exclude_test_dependency": true,
  "exclude_optional_dependency": true,
  "use_native_tools": true,
  "inputtype": "github",
  "inputs": [
    {
      "src_info": {
        "srcurl": "https://github.com/square/okhttp",
        "matchingref": "parent-4.12.0",
        "type": "github"
      }
    }
  ]
}

Python project
{
  "project": "pypi project",
  "version": "v1.9.2",
  "exclude_test_dependency": true,
  "exclude_optional_dependency": true,
  "use_native_tools": true,
  "inputtype": "github",
  "inputs": [
    {
      "src_info": {
        "srcurl": "https://github.com/aio-libs/yarl",
        "matchingref": "v1.9.2",
        "type": "github"
      }
    }
  ]
}

go-lang project
{
  "project": "golang project",
  "version": "v0.10.0",
  "exclude_test_dependency": true,
  "exclude_optional_dependency": true,
  "use_native_tools": true,
  "inputtype": "github",
  "inputs": [
    {
      "src_info": {
        "srcurl": "https://github.com/charmbracelet/lipgloss.git",
        "matchingref": "v0.10.0",
        "type": "github"
      }
    }
  ]
}

NPM project
{
  "project": "npm project",
  "version": "v8.4.0",
  "exclude_test_dependency": true,
  "exclude_optional_dependency": true,
  "use_native_tools": true,
  "inputs": [
    {
      "src_info": {
        "srcurl": "https://github.com/bevry/cson",
        "type": "github",
        "matchingref": "v8.4.0"
      }
    }
  ]
}

Rust project
{
  "project": "rust project",
  "version": "v0.2.7",
  "exclude_test_dependency": true,
  "exclude_optional_dependency": true,
  "use_native_tools": true,
  "inputtype": "github",
  "inputs": [
    {
      "src_info": {
        "srcurl": "https://github.com/redcanaryco/oxidebpf",
        "matchingref": "v0.2.7",
        "type": "github"
      }
    }
  ]
}

Ruby project
{
  "project": "ruby project",
  "version": "v3.4.2",
  "exclude_test_dependency": true,
  "exclude_optional_dependency": true,
  "use_native_tools": true,
  "inputtype": "github",
  "inputs": [
    {
      "src_info": {
        "srcurl": "https://github.com/rails/sprockets-rails",
        "type": "github",
        "matchingref": "v3.4.2"
      }
    }
  ]
}

Nuget project
{
  "schema": "1.0",
  "project": "sanity project",
  "version": "13.0.1",
  "exclude_test_dependency": true,
  "exclude_optional_dependency": true,
  "use_native_tools": true,
  "inputtype": "github",
  "inputs": [
    {
      "src_info": {
        "srcurl": "https://github.com/JamesNK/Newtonsoft.Json",
        "type": "github",
        "matchingref": "13.0.1"
      }
    }
  ]
}

PHP project
{ 
"project": "php project", 
"version": "1.0.0", 
"exclude_test_dependency": true, 
"inputtype": "github", 
"inputs": [ 
   { 
     "src_info": { 
       "srcurl": "https://github.com/akaunting/akaunting", 
       "matchingref": "master", 
       "type": "github" 
     } 
   } 
 ] 
} 
```

**Private source example of input.json**

```json
{
  "project": "<private-repo-name>",
  "version": "<branch/tag/commit-id>",
  "exclude_test_dependency": true,
  "exclude_optional_dependency": true,
  "use_native_tools": true,
  "inputtype": "<github/gitlab/bitbucket/git>",
  "inputs": [
    {
      "src_info": {
        "srcurl": "<private repo url>",
        "matchingref": "<branch/tag/commit-id>",
        "type": "<github/gitlab/bitbucket/git>"
      }
    }
  ],
  "repository_access_configs": [
    {
      "path": "<private repo url>",
      "type": "<github/gitlab/bitbucket/git>",
      "user_name": "<user-name>",
      "token": "<auth-token>"
    }
  ]
}

A sample bitbucket private repo
{
  "project": "curl-private-1",
  "version": "main",
  "exclude_test_dependency": true,
  "exclude_optional_dependency": true,
  "use_native_tools": true,
  "inputtype": "github",
  "inputs": [
    {
      "src_info": {
        "srcurl": "https://bitbucket.org/1234/curl-private",
        "matchingref": "main",
        "type": "bitbucket"
      }
    }
  ],
  "repository_access_configs": [
    {
      "path": "https://bitbucket.org/1234/curl-private",
      "type": "bitbucket",
      "user_name": "x-token-auth",
      "token": "1234567890"
    }
  ]
}
```

</details>

<details>

<summary>Generate an SBOM From Files in a Directory</summary>

Use `upload` when you want to scan a directory and send the result to the backend.

All fields are required.

```bash
cd veecli
./veecli upload --input dir --type folder --name my-project --version 1.0
```

</details>

<details>

<summary>Generate an SBOM From WAR or EAR Files in a Directory</summary>

Use `collect` when the directory contains `WAR` or `EAR` packages.

You must provide the project name and version.

```bash
cd veecli
./veecli collect --input-dir package-dir --output output --project my-project --version 1.0
```

</details>

<details>

<summary>Generate an SBOM From Local Docker</summary>

The CLI supports two approaches:

1. Upload the image manifest and generate the SBOM in the backend.
2. Generate the SBOM locally and upload the collected results.

Backend generation is faster.

Local generation uses more disk and CPU.

</details>

<details>

<summary>Generate an SBOM From Public Docker Hub</summary>

</details>

<details>

<summary>Generate an SBOM From Private Docker Hub</summary>

</details>

<details>

<summary>Generate an SBOM From Private Amazon ECR</summary>

Before you scan a private ECR image:

1. Create an IAM role with the required permissions.
2. Install and configure the AWS CLI.
3. Run `docker login` with an ECR token.

Grant at least these AWS permissions:

* `AmazonEC2ContainerRegistryReadOnly`
* `AmazonElasticContainerRegistryPublicReadOnly`

The CLI supports Docker Community Engine.

Docker installed through Ubuntu `snap` is not supported.

</details>

<details>

<summary>Generate an SBOM From Public Amazon ECR</summary>

</details>

<details>

<summary>Generate an SBOM From Private Azure Container Registry</summary>

Private ACR access requires registry access keys.

Set the username and password before running the scan.

</details>

<details>

<summary>Generate an SBOM From Public Azure Container Registry</summary>

</details>

<details>

<summary>Generate an SBOM From An Image</summary>

To scan an open source container image, run the following command. The example below uses `alpine:3.18.0` from Docker Hub.

**Open Source image example**

```json
./veecli upload --type image-source --input registry:docker.io/library/alpine:3.18.0 --name alpine --version 3.18.0
```

**Private image example**

```
export LINEAJE_REGISTRY_AUTH_USERNAME=<docker-login-username>
export LINEAJE_REGISTRY_AUTH_PASSWORD=<docker-login-password>
 
./veecli upload --type image-source --input registry:<repourl>:<tag> --name <project_name> --version <version>
```

</details>


# Gold Open Source (GOS)

## Background

Enterprise applications routinely incorporate hundreds to thousands of open-source packages sourced from public registries such as Maven Central, PyPI, and npmjs.com. Each declared dependency introduces its own transitive dependencies, and every component in this chain can carry vulnerabilities. The resulting dependency graph forms a broad, opaque attack surface that adversaries actively target.

Several incidents illustrate the operational impact of this issue:

• [**Log4Shell (CVE-2021-44228)**](https://nvd.nist.gov/vuln/detail/CVE-2021-44228): A single flaw in the widely deployed Log4j library affected hundreds of thousands of systems worldwide and required extensive remediation across organizations.

• [**Colors / Faker (2022)**](https://www.theregister.com/2022/01/10/npm_fakerjs_colorsjs/): The maintainer of two widely used npm packages intentionally introduced breaking changes, disrupting thousands of downstream builds.

• [**PyTorch supply-chain attack (2022)**](https://pytorch.org/blog/compromised-nightly-dependency/): Threat actors published malicious packages to PyPI that masqueraded as legitimate PyTorch dependencies and exfiltrated data from developer environments.

• [**XZ Utils backdoor (CVE-2024-3094)**](https://nvd.nist.gov/vuln/detail/CVE-2024-3094): A long-running attempt to insert a backdoor into a core Linux compression library nearly resulted in a widespread compromise of SSH authentication.

## **Introduction to Gold Open Source (GOS)?**

Gold Open Source (GOS) is Lineaje's curated catalog of open-source packages and container images — pre-vetted and confirmed free of critical, high, and exploitable vulnerabilities before they ever reach your environment.

GOS covers over 3 million packages and 2,000+ OCI-compliant container images, each evaluated across 100+ attributes including transitive dependencies, with pre-attested lineage included.

Here's what GOS does for your supply chain:

* **Everything is rebuilt from verified source.** Every OSS component is rebuilt from clean, confirmed source code. Upstream tampering, hidden dependencies, and malware are removed before anything enters your pipeline — not patched after the fact.
* **No source code, no binary.** If verified source isn't available, the package isn't included. This removes license risk and eliminates malicious artifacts that lack a public source repository.
* **Only direct dependencies get fixed.** Remediation targets direct dependencies, not the full transitive chain. That keeps changes minimal and reduces fix effort by up to 85%.
* **Continuous and automatic.** Once set up, GOS continuously rebuilds, scans, and enforces policies across your repos and pipelines without manual intervention.

### **What Qualifies as GOS**

A package either meets the gold standard or it doesn't enter the build. Every package in the catalog must satisfy all four of the following:

* **Zero exploitable vulnerabilities (ECH = 0).** No exploitable, critical, or high severity CVEs at the time of consumption. Lineaje monitors National Vulnerability Database (NVD), GitHub Advisories, OSV, and vendor feeds continuously to keep this current.
* **Clean malware scan.** Every artifact is scanned for malware before inclusion.
* **Your policy requirements, met.** Packages must satisfy any custom policies your team has defined — license allowlists/blocklists, provenance requirements, author reputation thresholds, dependency-depth limits, and so on.
* **Acceptable Lineaje risk score.** Lineaje's risk score covers maintainability, provenance, update cadence, and ecosystem health so the package lands within your organization's acceptable band.

### GOS Offerings

| Type        | Description                                                                                                                           | Example                             | SLA                                                           |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- | ------------------------------------------------------------- |
| Curated     | When the package has a compatible, fixed upstream version available and no ECH vulnerabilities in transitive dependencies             | xyz\@1.0.0 to xyz\@1.0.5            | <p>Immediate<br>(available already)</p>                       |
| GOS Rebuild | When the package does not have ECH vulnerabilities, and one or more transitive dependencies have a compatible, fixed upstream version | xyz\@1.0.0 to xyz\@1.1.0-lineaje-01 | <p>2 hours<br>(automatically triggered in the background)</p> |
| GOS Premium | When no upstream fix is available and a custom fix is required - either it in the package itself or in its transitive dependencies.   | xyz\@1.0.0 to xyz\@1.0.0-lineaje-01 | <p>3-4 weeks<br>(requires to be explictily requested)</p>     |

For all communication or issues, please reach out to your Lineaje representative.


# Gold Packages


# Deployment Models

Lineaje GOS supports two deployment models to accommodate varying security, compliance, and data sovereignty requirements:

{% columns %}
{% column width="50%" %}

### SaaS

<mark style="color:$info;">Managed by Lineaje</mark>

***

**DATA RESIDENCY**

Lineaje-managed cloud (US East, EU options available)

***

**CLI EXECUTION**

Cloud-hosted scan agents

***

**LINEAJE GOS ARTIFACTORY PROXY**

Cloud-hosted registry endpoint

{% hint style="success" %}
**BEST FOR**

Rapid onboarding; less stringent data controls
{% endhint %}
{% endcolumn %}

{% column width="33.33333333333333%" %}

### On-prem

<mark style="color:$info;">Runs within your network</mark>

***

**DATA RESIDENCY**

All source code and artifacts remain within customer network boundary&#x20;

***

**CLI EXECUTION**

Lineaje CLI runs on customer-controlled infrastructure

***

**LINEAJE GOS ARTIFACTORY PROXY**

On-premises or private cloud deployment available

{% hint style="success" %}
**BEST FOR**

Regulated industries; strict IP or data sovereignty requirements&#x20;
{% endhint %}
{% endcolumn %}

{% column %}

{% endcolumn %}

{% column %}

{% endcolumn %}
{% endcolumns %}


# What is GOS API?

The Lineaje GOS workflow is fully automatable via REST APIs. The following table documents the three core API calls required to execute a complete GOS remediation cycle within a CI/CD pipeline.

All API calls require a Bearer token obtained via one of two authentication methods:&#x20;

* **Username / Password**: POST credentials to the identity service to receive an access token (valid 24 hours).&#x20;
* **API Key**: Contact [Lineaje Support](https://support.lineaje.com) to provision a long-lived API key for service-to-service authentication.&#x20;

### How it works&#x20;

The API follows a three-step flow:&#x20;

1. **Authenticate**: Exchange your Lineaje credentials for a Bearer token.&#x20;
2. **Get your project list**: Retrieve your scanned projects and capture the sbom\_id for the project you want to remediate.&#x20;
3. **Request and poll for a fix plan**: Submit the sbom\_id to the fix plan endpoint and poll until the plan status returns as available.&#x20;


# What is Lineaje Gold Open Source (GOS) Artifactory Proxy?

Lineaje Gold Open Source (GOS) Artifactory Proxy is a drop-in replacement registry URL. Build systems point their Maven, pip, or npm configuration to Lineaje GOS Artifactory Proxy endpoint, and the platform handles the rest transparently.&#x20;

The proxy does not require:&#x20;

* Changes to application source code&#x20;
* Modifications to build tool configuration beyond a one-time registry URL change&#x20;
* Access to your source repository or secrets beyond the Lineaje GOS Artifactory Proxy credentials&#x20;

The Lineaje GOS Artifactory Proxy operates in two modes:

* [Enforce Mode](https://docs.veedna.com/gold-open-source-gos/gold-packages/what-is-lineaje-gold-open-source-gos-artifactory-proxy/modes-of-operation#enforce-mode)
* [Observe Mode](https://docs.veedna.com/gold-open-source-gos/gold-packages/what-is-lineaje-gold-open-source-gos-artifactory-proxy/modes-of-operation#observe-mode)


# Modes of Operation

The Lineaje GOS Artifactory Proxy ships with two operating modes, allowing teams to adopt it incrementally without disrupting existing delivery pipelines.&#x20;

## Enforce Mode&#x20;

In Enforce mode, the proxy strictly blocks the download of any package that does not meet the GOS criteria or fails a custom policy check. The build receives an HTTP 4XX error response and the download is stopped. This is the recommended steady-state operating mode for production build pipelines where supply chain integrity is non-negotiable.&#x20;

* Build fails fast when a non-gold dependency is requested&#x20;
* Stops unsafe code before it can be compiled, tested, or deployed&#x20;
* Provides an immutable audit trail of every blocked attempt&#x20;
* Policy violation details are logged to the Lineaje platform and surfaced in build output&#x20;

## Observe Mode&#x20;

In Observe mode, all artifact downloads are permitted regardless of GOS status or policy violations. However, every non-compliant download is recorded, classified, and reported on the Lineaje GOS dashboard. Observe mode is ideal for:&#x20;

* Initial onboarding and baselining — understand your current open source risk posture before enforcing&#x20;
* Teams that need visibility without yet committing to hard enforcement&#x20;
* Audit and compliance reporting without disrupting existing build pipelines&#x20;
* Gradually building the organizational muscle to move toward Enforce mode&#x20;

{% hint style="danger" %}
Observe mode does not prevent unsafe packages from entering your build. It is a transitional tool. Lineaje recommends transitioning to Enforce mode within 90 days of initial deployment.&#x20;
{% endhint %}


# AI Remediate

Integrating Lineaje API into Your CI/CD Pipeline


# Pre-requisities

Allowlist the following URLs:

* [https://lineaje-identity-service.v2.prod.veedna.com/lineajeidentity/api/v1/login ](<https://lineaje-identity-service.v2.prod.veedna.com/lineajeidentity/api/v1/login >)

  Obtains an access token for authorized API calls.
* <https://scim-service.v2.prod.veedna.com/scim/api/v1/sbom_jobs/upload?sbom_format=SPDX>

  Associates generation metadata with an existing sbom\_id.
* [https://lineaje-gpt-service.v2.prod.veedna.com/api/v1/explain ](<https://lineaje-gpt-service.v2.prod.veedna.com/api/v1/explain >)

  Allows remediation recommendations based on SBOM analysis


# Authentication

Authentication endpoints

## Authenticate user

> Authenticates with username and password and returns a bearer token.

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"tags":[{"name":"Authentication","description":"Authentication endpoints"}],"servers":[{"url":"https://lineaje-identity-service.v2.prod.veedna.com","description":"Default server for authentication requests"}],"paths":{"/lineajeidentity/api/v1/login":{"post":{"tags":["Authentication"],"summary":"Authenticate user","description":"Authenticates with username and password and returns a bearer token.","operationId":"authenticationLogin","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}}},"responses":{"200":{"description":"Authentication successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}}}}}},"components":{"schemas":{"LoginRequest":{"type":"object","required":["username","password"],"properties":{"username":{"type":"string","description":"Lineaje username"},"password":{"type":"string","format":"password","description":"Lineaje password"}}},"LoginResponse":{"type":"object","required":["accessToken","tokenType","expiresIn","scope"],"properties":{"accessToken":{"type":"string","description":"Access token to be used in Authorization header"},"tokenType":{"type":"string"},"expiresIn":{"type":"integer","description":"Token expiration time in seconds"},"scope":{"type":"string"}}}}}}
```


# Projects

Project listing endpoints

## List projects

> Returns all projects and their associated SBOM IDs.

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"tags":[{"name":"Projects","description":"Project listing endpoints"}],"servers":[{"url":"https://scim-service.v2.prod.veedna.com","description":"SCIM Service"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"ListProjectsResponse":{"type":"object","properties":{"results":{"type":"object","properties":{"projects":{"type":"array","items":{"$ref":"#/components/schemas/Project"}}}},"total_count":{"type":"integer"}}},"Project":{"type":"object","properties":{"projectId":{"type":"integer"},"sbomId":{"type":"string","description":"SBOM identifier for the project"},"jobStatus":{"type":"string"}}}}},"paths":{"/scim/api/v2/projects/":{"get":{"tags":["Projects"],"summary":"List projects","description":"Returns all projects and their associated SBOM IDs.","operationId":"projectsList","parameters":[{"name":"page","in":"query","required":false,"description":"Page index","schema":{"type":"integer"}},{"name":"size","in":"query","required":false,"description":"Number of results to return","schema":{"type":"integer"}},{"name":"timestamp","in":"query","required":false,"description":"Timestamp parameter used by the API","schema":{"type":"integer"}}],"responses":{"200":{"description":"Project list returned successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectsResponse"}}}},"401":{"description":"Unauthorized"}}}}}}
```


# Fix Plan

Fix plan request endpoints

## Request fix plan

> Requests a fix plan for a given SBOM. The client should poll this endpoint\
> until meta\_data.overall\_status becomes "available".<br>

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"tags":[{"name":"Fix Plan","description":"Fix plan request endpoints"}],"servers":[{"url":"https://lineaje-gpt-service.v2.prod.veedna.com","description":"GPT Service"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"FixPlanRequest":{"type":"object","required":["query","sbom_id"],"properties":{"query":{"type":"string"},"sbom_id":{"type":"string","description":"SBOM identifier captured from the projects API"}}},"FixPlanResponse":{"type":"object","properties":{"meta_data":{"$ref":"#/components/schemas/FixPlanMetaData"}}},"FixPlanMetaData":{"type":"object","properties":{"plan_details":{"type":"array","items":{"$ref":"#/components/schemas/PlanDetail"}},"overall_status":{"type":"string","description":"Poll until this becomes available"}}},"PlanDetail":{"type":"object","properties":{"type":{"type":"string"},"vuln_fixed":{"type":"array","items":{"type":"string"}},"efforts":{"type":"string"},"is_compatible":{"type":"boolean"}}}}},"paths":{"/api/v1/explain":{"post":{"tags":["Fix Plan"],"summary":"Request fix plan","description":"Requests a fix plan for a given SBOM. The client should poll this endpoint\nuntil meta_data.overall_status becomes \"available\".\n","operationId":"fixPlanRequest","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixPlanRequest"}}}},"responses":{"200":{"description":"Fix plan response returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixPlanResponse"}}}},"401":{"description":"Unauthorized"}}}}}}
```


# Models

## The LoginRequest object

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"components":{"schemas":{"LoginRequest":{"type":"object","required":["username","password"],"properties":{"username":{"type":"string","description":"Lineaje username"},"password":{"type":"string","format":"password","description":"Lineaje password"}}}}}}
```

## The LoginResponse object

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"components":{"schemas":{"LoginResponse":{"type":"object","required":["accessToken","tokenType","expiresIn","scope"],"properties":{"accessToken":{"type":"string","description":"Access token to be used in Authorization header"},"tokenType":{"type":"string"},"expiresIn":{"type":"integer","description":"Token expiration time in seconds"},"scope":{"type":"string"}}}}}}
```

## The Project object

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"components":{"schemas":{"Project":{"type":"object","properties":{"projectId":{"type":"integer"},"sbomId":{"type":"string","description":"SBOM identifier for the project"},"jobStatus":{"type":"string"}}}}}}
```

## The ListProjectsResponse object

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"components":{"schemas":{"ListProjectsResponse":{"type":"object","properties":{"results":{"type":"object","properties":{"projects":{"type":"array","items":{"$ref":"#/components/schemas/Project"}}}},"total_count":{"type":"integer"}}},"Project":{"type":"object","properties":{"projectId":{"type":"integer"},"sbomId":{"type":"string","description":"SBOM identifier for the project"},"jobStatus":{"type":"string"}}}}}}
```

## The FixPlanRequest object

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"components":{"schemas":{"FixPlanRequest":{"type":"object","required":["query","sbom_id"],"properties":{"query":{"type":"string"},"sbom_id":{"type":"string","description":"SBOM identifier captured from the projects API"}}}}}}
```

## The PlanDetail object

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"components":{"schemas":{"PlanDetail":{"type":"object","properties":{"type":{"type":"string"},"vuln_fixed":{"type":"array","items":{"type":"string"}},"efforts":{"type":"string"},"is_compatible":{"type":"boolean"}}}}}}
```

## The FixPlanMetaData object

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"components":{"schemas":{"FixPlanMetaData":{"type":"object","properties":{"plan_details":{"type":"array","items":{"$ref":"#/components/schemas/PlanDetail"}},"overall_status":{"type":"string","description":"Poll until this becomes available"}}},"PlanDetail":{"type":"object","properties":{"type":{"type":"string"},"vuln_fixed":{"type":"array","items":{"type":"string"}},"efforts":{"type":"string"},"is_compatible":{"type":"boolean"}}}}}}
```

## The FixPlanResponse object

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"components":{"schemas":{"FixPlanResponse":{"type":"object","properties":{"meta_data":{"$ref":"#/components/schemas/FixPlanMetaData"}}},"FixPlanMetaData":{"type":"object","properties":{"plan_details":{"type":"array","items":{"$ref":"#/components/schemas/PlanDetail"}},"overall_status":{"type":"string","description":"Poll until this becomes available"}}},"PlanDetail":{"type":"object","properties":{"type":{"type":"string"},"vuln_fixed":{"type":"array","items":{"type":"string"}},"efforts":{"type":"string"},"is_compatible":{"type":"boolean"}}}}}}
```


# Integrating Lineaje GOS Artifactory Proxy into Your CI/CD Pipeline

When a build tool (Maven, pip, npm) resolves a dependency, it issues an HTTP GET request to the configured registry URL. With the Lineaje GOS Artifactory Proxy enabled, that URL resolves to the Proxy endpoint instead of the upstream public registry. The following sequence describes what happens for every artifact request:&#x20;

1. **Build tool issues HTTP GET**

   The build tool requests an artifact using the standard package-manager protocol (Maven repository layout, PyPI simple API, or npm registry API). The only difference from a vanilla build is that the registry hostname points to the Proxy.&#x20;
2. **Authentication check**

   The proxy validates the provided credentials (Basic Auth over HTTPS). Requests without valid credentials receive HTTP 401 immediately.&#x20;
3. **Package coordinate extraction**

   The Proxy parses the request path to extract the package's PURL (Package URL) coordinates — ecosystem, name, and version.&#x20;
4. **GOS & policy evaluation**

   The extracted PURL is evaluated against the Gold Open Source index and your organization's custom policies. Results are cached to ensure build performance is not impacted.&#x20;
5. **Allow or block decision**

   In enforce mode, non-gold packages receive an error response. To learn more, see [HTTP Response Codes](https://docs.veedna.com/gold-open-source-gos/gold-packages/integrating-lineaje-gos-artifactory-proxy-into-your-ci-cd-pipeline/http-response-codes). In observe mode, all packages are forwarded regardless of status.&#x20;
6. **Telemetry & audit**

   The outcome (allowed / blocked / policy-violated) is recorded on the Lineaje platform with full provenance detail. Policy violation messages are also injected into the HTTP response and appear in build logs.&#x20;


# Pre-requisites

This section is intended for DevSecOps engineers and CI/CD platform teams responsible for integrating the Lineaje GOS Artifactory Proxy into build pipelines. All examples are based on Jenkins, which is the primary reference integration. The same principles apply to any CI/CD system that can configure a package manager registry URL and inject credentials as environment variables.

## Pre-requisites

* Allowlist the following proxy base URL (enforce or observe) to allow automatic handling of all packages. All proxy traffic is routed through a single base hostname.&#x20;

```
https://enforce.fortknox.v2.prod.veedna.com
```

```
https://observe.fortknox.v2.prod.veedna.com
```

* (Optional) Allowlist repository endpoints. Package-manager-specific paths are appended according to each tool's protocol.

| **Package Manager** | **Repository Path**                               | **Full Endpoint URL**                                                                          |
| ------------------- | ------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Maven               | /artifactory/gos-all-proxy-maven                  | <https://enforce.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven>                  |
| PyPI                | /artifactory/api/pypi/gos-all-proxy-python/simple | <https://enforce.fortknox.v2.prod.veedna.com/artifactory/api/pypi/gos-all-proxy-python/simple> |
| npm                 | /artifactory/api/npm/gos-all-proxy-npm            | <https://enforce.fortknox.v2.prod.veedna.com/artifactory/api/npm/gos-all-proxy-npm>            |

Example artifact request paths (appended to the base URL):

{% tabs %}
{% tab title="Maven" %}

```
# Maven — JAR artifact 
https://enforce.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven/ 
    org/json/json/20230227/json-20230227.jar 
```

{% endtab %}

{% tab title="PyPI" %}

```
# PyPI — wheel 
https://enforce.fortknox.v2.prod.veedna.com/artifactory/api/pypi/gos-all-proxy-python/ 
    packages/packages/37/dc/1.../urllib3-2.0.5-py3-none-any.whl 
```

{% endtab %}

{% tab title="npm" %}

```
# npm — tarball 
https://enforce.fortknox.v2.prod.veedna.com/artifactory/api/npm/gos-all-proxy-npm/ 
    lodash/-/lodash-4.17.21.tgz 
```

{% endtab %}
{% endtabs %}


# Authentication

The Lineaje GOS Artifactory requires a Lineaje Personal Access Token (PAT) to authenticate and enable a connection. To create a Lineaje PAT, follow the below steps.

{% stepper %}
{% step %}

### Go to Personal Access Token under Integrations

In the SBOM360 portal, from the left-hand navigation, choose **Integrations**, and then choose **Deploy on Private Cloud.** Click on Personal Access Token.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2Fhk7g2iwJcMS04FdHxUVK%2Fimage.png?alt=media&amp;token=4d53c0d4-ad71-4e30-ad3e-459ebdc526d8" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### &#x20;Generate a token

Log in to your account and provide permissions for the token.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F89ec79wAHTO5bQPZKBMo%2Fimage.png?alt=media&amp;token=243d32f3-36bb-4c98-a952-e504e53c7392" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Save the token in a secure location

This token will be required to authenticate with the GOS Artifactory.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F6OM95kENYBaeZgYztf1y%2Fimage.png?alt=media&amp;token=1341afd3-6ed0-43bd-aa27-f21ac02e64c3" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


# Maven Integration

Maven resolves dependencies using repositories configured in `settings.xml`, `pom.xml`, or both. To route Maven traffic through the Lineaje Proxy, configure Maven to use the Proxy’s Maven endpoint and authenticate with your Lineaje username and Personal Access Token (PAT).

## Getting Started

{% stepper %}
{% step %}

### Create a Lineaje Personal Access Token (PAT)

Follow the below instructions.

{% content-ref url="/pages/C95d39E9JtH0LtbtfHfT" %}
[Authentication](https://docs.veedna.com/gold-open-source-gos/gold-packages/integrating-lineaje-gos-artifactory-proxy-into-your-ci-cd-pipeline/authentication)
{% endcontent-ref %}
{% endstep %}

{% step %}

### Store the Lineaje PAT in a secure location

For example, add your SBOM360 email and Lineaje PAT as an environmental variable:

{% code overflow="wrap" %}

```bash
export ARTIFACTORY_CREDS_USR="your-email@example.com"
export ARTIFACTORY_CREDS_PSW="by9...dPQ=="
```

{% endcode %}

For CICD pipelines, like GitHub Actions, this token can be stored as a repository-level secret or an organization-level secret. A sample GitHub Action is added below for your reference.
{% endstep %}

{% step %}

### Configure Maven `settings.xml`

Create or update the Maven settings file.

{% code overflow="wrap" %}

```xml
<settings>
  <servers>
    <server>
      <id>lineaje-fortknox-artifactory</id>
      <username>${env.ARTIFACTORY_CREDS_USR}</username>
      <password>${env.ARTIFACTORY_CREDS_PSW}</password>
    </server>
  </servers>

  <mirrors>
    <mirror>
      <id>lineaje-fortknox-artifactory</id>
      <name>Lineaje FortKnox Maven Proxy</name>
      <url>https://observe.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
      <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>

  <profiles>
    <profile>
      <id>lineaje-fortknox</id>
      <repositories>
        <repository>
          <id>lineaje-fortknox-artifactory</id>
          <name>Lineaje FortKnox Maven Proxy</name>
          <url>https://observe.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>

      <pluginRepositories>
        <pluginRepository>
          <id>lineaje-fortknox-artifactory</id>
          <name>Lineaje FortKnox Maven Plugin Proxy</name>
          <url>https://observe.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>

  <activeProfiles>
    <activeProfile>lineaje-fortknox</activeProfile>
  </activeProfiles>
</settings>
```

{% endcode %}

You can choose between observe mode or enforce mode. More details are here:&#x20;

{% content-ref url="/pages/05R19ZwuZtHVy9iEqChD" %}
[Modes of Operation](https://docs.veedna.com/gold-open-source-gos/gold-packages/what-is-lineaje-gold-open-source-gos-artifactory-proxy/modes-of-operation)
{% endcontent-ref %}

{% hint style="warning" %}
Never commit a `settings.xml`, script, or pipeline file that contains a real token or password.
{% endhint %}
{% endstep %}

{% step %}

### Run Maven install

Now Maven is configured to connect with Lineaje GOS Artifactory and download secure Java dependencies through the Lineaje Proxy.

```bash
mvn clean install
```

{% endstep %}
{% endstepper %}

## Sample Configurations

### GitHub Actions

This guide explains how to configure a GitHub Actions workflow to install Maven dependencies from Lineaje GOS Artifactory and run unit tests.

#### 1. Create GitHub Secrets

Create repository-level or organization-level secrets to store the Lineaje credentials.

1. Open your GitHub repository.
2. Go to **Settings**.
3. Open **Secrets and variables**.
4. Select **Actions**.
5. Click **New repository secret**.
6. Create the following secret:

```
ARTIFACTORY_CREDS_USR
```

Set the value to your Lineaje username or SBOM360 email.

7. Create another secret:

```
ARTIFACTORY_CREDS_PSW
```

Set the value to your Lineaje PAT.

#### 2. Add the GitHub Actions Workflow

1. Create the following workflow file in your repository:

```
.github/workflows/maven-tests-gos-artifactory.yml
```

2. Add the below content:

```yaml
name: Maven Run Tests with GOS Artifactory

on:
  pull_request:
    branches: [main]
  workflow_dispatch:
    inputs:
      mode:
        description: "FortKnox mode"
        required: false
        default: "observe"
        type: choice
        options:
          - observe
          - enforce

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Set FortKnox mode
        run: |
          MODE="${{ github.event.inputs.mode || 'observe' }}"
          echo "FORTKNOX_MODE=$MODE" >> "$GITHUB_ENV"
          echo "Using FortKnox mode: $MODE"

      - name: Set up Java
        uses: actions/setup-java@v4
        with:
          distribution: 'temurin'
          java-version: '17'

      - name: Configure Maven
        env:
          ARTIFACTORY_CREDS_USR: ${{ secrets.ARTIFACTORY_CREDS_USR }}
          ARTIFACTORY_CREDS_PSW: ${{ secrets.ARTIFACTORY_CREDS_PSW }}
        run: |
          mkdir -p ~/.m2
          cat > ~/.m2/settings.xml <<EOF
          <settings>
            <servers>
              <server>
                <id>lineaje-fortknox-artifactory</id>
                <username>${ARTIFACTORY_CREDS_USR}</username>
                <password>${ARTIFACTORY_CREDS_PSW}</password>
              </server>
            </servers>

            <mirrors>
              <mirror>
                <id>lineaje-fortknox-artifactory</id>
                <name>Lineaje FortKnox Maven Proxy</name>
                <url>https://${FORTKNOX_MODE}.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
                <mirrorOf>*</mirrorOf>
              </mirror>
            </mirrors>

            <profiles>
              <profile>
                <id>lineaje-fortknox</id>
                <repositories>
                  <repository>
                    <id>lineaje-fortknox-artifactory</id>
                    <name>Lineaje FortKnox Maven Proxy</name>
                    <url>https://${FORTKNOX_MODE}.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
                    <releases>
                      <enabled>true</enabled>
                    </releases>
                    <snapshots>
                      <enabled>true</enabled>
                    </snapshots>
                  </repository>
                </repositories>

                <pluginRepositories>
                  <pluginRepository>
                    <id>lineaje-fortknox-artifactory</id>
                    <name>Lineaje FortKnox Maven Plugin Proxy</name>
                    <url>https://${FORTKNOX_MODE}.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
                    <releases>
                      <enabled>true</enabled>
                    </releases>
                    <snapshots>
                      <enabled>true</enabled>
                    </snapshots>
                  </pluginRepository>
                </pluginRepositories>
              </profile>
            </profiles>

            <activeProfiles>
              <activeProfile>lineaje-fortknox</activeProfile>
            </activeProfiles>
          </settings>
          EOF

      - name: Install dependencies and run tests
        run: mvn clean test -X
```

### Jenkins

This guide explains how to configure Jenkins to install Maven dependencies using FortKnox Artifactory as the Maven repository.

#### 1. Configure Java and Maven in Jenkins

1. Ensure Java and Maven are available on the Jenkins agent.
2. Validate Java and Maven by running:

```bash
java -version
mvn -version
```

3. If Java or Maven is not installed, install the required versions or configure the Jenkins agent image to include Java and Maven.

#### 2. Add Artifactory Credentials in Jenkins

1. Go to **Manage Jenkins**.
2. Open **Credentials**.
3. Select the appropriate credentials scope, usually:

```
Jenkins → Global credentials
```

4. Click **Add Credentials**.
5. Select credential type:

```
Username with password
```

6. Enter your SBOM360 email as the username and the Lineaje PAT as the password.
7. Set the credential ID, for example:

```
fortknox-artifactory-creds
```

8. Save the credential.

This credential ID will be used in the Jenkinsfile:

```groovy
ARTIFACTORY_CREDS = credentials('fortknox-artifactory-creds')
```

#### 3. Add the Jenkinsfile

1. Add the following `Jenkinsfile` to the root of the repository.
2. Replace the credential ID if needed.

```groovy
pipeline {
    agent any

    parameters {
        choice(
            name: 'FORTKNOX_MODE',
            choices: ['observe', 'enforce'],
            description: 'FortKnox mode'
        )
    }

    environment {
        // Jenkins credential should be "Username with password"
        // Username should contain the SBOM360 email
        // Password should contain the Lineaje PAT
        ARTIFACTORY_CREDS = credentials('fortknox-artifactory-creds')
    }

    stages {
        stage('Build') {
            steps {
                script {
                    sh 'java -version'
                    sh 'mvn -version'

                    sh '''
                        mkdir -p ~/.m2

                        cat > ~/.m2/settings.xml <<EOF
<settings>
  <servers>
    <server>
      <id>lineaje-fortknox-artifactory</id>
      <username>${ARTIFACTORY_CREDS_USR}</username>
      <password>${ARTIFACTORY_CREDS_PSW}</password>
    </server>
  </servers>

  <mirrors>
    <mirror>
      <id>lineaje-fortknox-artifactory</id>
      <name>Lineaje FortKnox Maven Proxy</name>
      <url>https://${FORTKNOX_MODE}.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
      <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>

  <profiles>
    <profile>
      <id>lineaje-fortknox</id>
      <repositories>
        <repository>
          <id>lineaje-fortknox-artifactory</id>
          <name>Lineaje FortKnox Maven Proxy</name>
          <url>https://${FORTKNOX_MODE}.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>

      <pluginRepositories>
        <pluginRepository>
          <id>lineaje-fortknox-artifactory</id>
          <name>Lineaje FortKnox Maven Plugin Proxy</name>
          <url>https://${FORTKNOX_MODE}.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>

  <activeProfiles>
    <activeProfile>lineaje-fortknox</activeProfile>
  </activeProfiles>
</settings>
EOF
                    '''

                    sh 'mvn clean test -X'
                }
            }
        }
    }
}
```

#### 4. Validate the Jenkins Pipeline

1. Open the Jenkins job.
2. Run **Build with Parameters**.
3. Select the FortKnox mode:
   1. `observe`
   2. `enforce`
4. Start the build.
5. Confirm that the pipeline completes the following steps:
   1. Prints the Java version.
   2. Prints the Maven version.
   3. Configures Maven `settings.xml`.
   4. Installs dependencies from Lineaje GOS Artifactory.
   5. Runs unit tests.

***

## Verifying Proxy Routing

Use Maven debug mode to confirm that dependencies are resolving through the Lineaje Proxy.

```bash
mvn clean test -X
```

In the logs, confirm that the Proxy URL appears.

Expected example:

```
Downloading from lineaje-fortknox-artifactory: https://observe.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven/...
```

You may also see artifact download URLs similar to:

```
https://observe.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven/org/apache/commons/commons-lang3/...
```

To detect policy violations, search the build logs for the relevant Lineaje policy violation message. To learn more, see **Detecting Policy Violations in Build Logs**.

***

## Common Issues

### Authentication failure or HTTP 401 during Maven build

Check the following:

1. The username is your SBOM360 email.
2. The password is the Lineaje PAT.
3. The PAT has permission to access the GOS Artifactory Maven repository.
4. The repository URL is correct.
5. The selected mode is valid: `observe` or `enforce`.

### Server ID does not match mirror or repository ID

Maven only attaches stored credentials to a repository or mirror when the IDs match exactly.

For example, this will fail:

```xml
<servers>
  <server>
    <id>lineaje-artifactory</id>
    <username>...</username>
    <password>...</password>
  </server>
</servers>

<mirrors>
  <mirror>
    <id>lineaje-fortknox-artifactory</id>
    <url>https://enforce.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
    <mirrorOf>*</mirrorOf>
  </mirror>
</mirrors>
```

In this case, the `<server><id>` is `lineaje-artifactory`, but the `<mirror><id>` is `lineaje-fortknox-artifactory`. Because the IDs do not match, Maven sends requests without credentials, which causes a 401 authentication error.

Use the same ID everywhere:

```xml
<servers>
  <server>
    <id>lineaje-fortknox-artifactory</id>
    <username>${env.ARTIFACTORY_CREDS_USR}</username>
    <password>${env.ARTIFACTORY_CREDS_PSW}</password>
  </server>
</servers>

<mirrors>
  <mirror>
    <id>lineaje-fortknox-artifactory</id>
    <url>https://enforce.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
    <mirrorOf>*</mirrorOf>
  </mirror>
</mirrors>
```

The same rule applies to `<repository><id>` and `<pluginRepository><id>`.

### Dependencies do not resolve through Lineaje Proxy

Confirm that Maven is using the expected settings file.

Run:

```bash
mvn help:effective-settings
```

Or run with debug logging:

```bash
mvn clean test -X
```

The output should show the Lineaje Proxy Maven endpoint.

### Maven Central is still being used directly

Check that your mirror is configured with:

```xml
<mirrorOf>*</mirrorOf>
```

This tells Maven to route all repository traffic through the Lineaje Proxy.


# PyPI Integration

PIP resolves Python packages using the package index configured in `pip.conf`, `pip.ini`, or the `--index-url` command-line option. To route PIP traffic through the Lineaje Proxy, configure PIP to use the Proxy’s PyPI endpoint and authenticate with your Lineaje username and Personal Access Token (PAT).

***

## Getting Started

{% stepper %}
{% step %}

### Create a Lineaje Personal Access Token (PAT)

Follow the below instructions.

{% content-ref url="/pages/C95d39E9JtH0LtbtfHfT" %}
[Authentication](https://docs.veedna.com/gold-open-source-gos/gold-packages/integrating-lineaje-gos-artifactory-proxy-into-your-ci-cd-pipeline/authentication)
{% endcontent-ref %}
{% endstep %}

{% step %}

### Store the Lineaje PAT in a secure location

For example, add your SBOM360 email and Lineaje PAT as an environmental variable:

{% code overflow="wrap" %}

```bash
export ARTIFACTORY_CREDS_USR="your-email@example.com"
export ARTIFACTORY_CREDS_PSW="by9...dPQ=="
```

{% endcode %}

For CICD pipelines, like GitHub Actions, this token can be stored as a repository-level secret or an organization-level secret. A sample GitHub Action is added below for your reference.
{% endstep %}

{% step %}

### Configure pip.conf

Create or update this file:

```shellscript
~/.config/pip/pip.conf
```

Add the following configuration:

```shellscript
[global]
index-url = https://<ARTIFACTORY_CREDS_USR>:<ARTIFACTORY_CREDS_PSW>@observe.fortknox.v2.prod.veedna.com/artifactory/api/pypi/gos-all-proxy-python/simple
trusted-host = observe.fortknox.v2.prod.veedna.com
```

You can choose between observe mode or enforce mode. More details are here:&#x20;

{% content-ref url="/pages/05R19ZwuZtHVy9iEqChD" %}
[Modes of Operation](https://docs.veedna.com/gold-open-source-gos/gold-packages/what-is-lineaje-gold-open-source-gos-artifactory-proxy/modes-of-operation)
{% endcontent-ref %}

{% hint style="warning" %}
Never commit a `pip.conf`, `pip.ini`, or script that contains a real token or password.
{% endhint %}
{% endstep %}

{% step %}

### Install Python packages

Now PIP is configured to connect with Lineaje GOS Artifactory and download secure Python packages through the Lineaje Proxy.

{% code overflow="wrap" %}

```shellscript
pip install -r requirements.txt
```

{% endcode %}

{% endstep %}

{% step %}

### Alternative: Pass the Proxy URL Directly

Instead of configuring `pip.conf`, you can pass the Proxy URL directly using `--index-url`.

```
pip install urllib3==2.0.5 \
  --index-url https://<ARTIFACTORY_CREDS_USR>:<ARTIFACTORY_CREDS_PSW>@observe.fortknox.v2.prod.veedna.com/artifactory/api/pypi/gos-all-proxy-python/simple \
  -vvv
```

The `-vvv` flag enables verbose logging and helps confirm that packages are being resolved through the Lineaje Proxy.
{% endstep %}
{% endstepper %}

## Sample Configurations

### GitHub Actions

This guide explains how to configure a GitHub Actions workflow to install Python dependencies from Lineaje GOS Artifactory and run unit tests.

#### 1. Create GitHub Secrets

Create repository-level or organization-level secrets to store the Lineaje credentials.

1. Open your GitHub repository.
2. Go to **Settings**.
3. Open **Secrets and variables**.
4. Select **Actions**.
5. Click **New repository secret**.
6. Create the following secret:

```
ARTIFACTORY_CREDS_USR
```

Set the value to your SBOM360 email.

7. Create another secret:

```
ARTIFACTORY_CREDS_PSW
```

Set the value to your Lineaje PAT.

#### 2. Add the GitHub Actions Workflow

1. Create the following workflow file in your repository:

```
.github/workflows/python-tests-gos-artifactory.yml
```

2. Add the below content:

```yaml
name: Python Run Tests with GOS Artifactory

on:
  pull_request:
    branches: [main]
  workflow_dispatch:
    inputs:
      mode:
        description: "FortKnox mode"
        required: false
        default: "observe"
        type: choice
        options:
          - observe
          - enforce

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Set FortKnox mode
        run: |
          MODE="${{ github.event.inputs.mode || 'observe' }}"
          echo "FORTKNOX_MODE=$MODE" >> "$GITHUB_ENV"
          echo "Using FortKnox mode: $MODE"

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Configure pip
        env:
          ARTIFACTORY_CREDS_USR: ${{ secrets.ARTIFACTORY_CREDS_USR }}
          ARTIFACTORY_CREDS_PSW: ${{ secrets.ARTIFACTORY_CREDS_PSW }}
        run: |
          mkdir -p ~/.config/pip
          cat > ~/.config/pip/pip.conf <<EOF
          [global]
          index-url = https://${ARTIFACTORY_CREDS_USR}:${ARTIFACTORY_CREDS_PSW}@${FORTKNOX_MODE}.fortknox.v2.prod.veedna.com/artifactory/api/pypi/gos-all-proxy-python/simple
          trusted-host = ${FORTKNOX_MODE}.fortknox.v2.prod.veedna.com
          EOF

      - name: Install dependencies
        run: pip install -r requirements.txt -vvv

      - name: Run tests
        run: python -m pytest
```

### Jenkins

This guide explains how to configure Jenkins to install Python dependencies using FortKnox Artifactory as the Python package index.

#### 1. Configure Python in Jenkins

1. Ensure Python is available on the Jenkins agent.
2. Validate Python and PIP by running:

```
python3 --version
pip3 --version
```

3. If Python is not installed, install the required Python version or configure the Jenkins agent image to include Python and PIP.

#### 2. Add Artifactory Credentials in Jenkins

1. Go to **Manage Jenkins**.
2. Open **Credentials**.
3. Select the appropriate credentials scope, usually:

```
Jenkins → Global credentials
```

4. Click **Add Credentials**.
5. Select credential type:

```
Username with password
```

6. Enter your SBOM360 email as the username and the Lineaje PAT as the password.
7. Set the credential ID, for example:

```
fortknox-artifactory-creds
```

8. Save the credential.

This credential ID will be used in the Jenkinsfile:

```
ARTIFACTORY_CREDS = credentials('fortknox-artifactory-creds')
```

#### 3. Add the Jenkinsfile

1. Add the following `Jenkinsfile` to the root of the repository.
2. Replace the credential ID if needed.

```
pipeline {
    agent any

    parameters {
        choice(
            name: 'FORTKNOX_MODE',
            choices: ['observe', 'enforce'],
            description: 'FortKnox mode'
        )
    }

    environment {
        // Jenkins credential should be "Username with password"
        // Username should contain the SBOM360 email
        // Password should contain the Lineaje PAT
        ARTIFACTORY_CREDS = credentials('fortknox-artifactory-creds')
    }

    stages {
        stage('Build') {
            steps {
                script {
                    withEnv([
                        "PIP_INDEX_URL=https://${ARTIFACTORY_CREDS_USR}:${ARTIFACTORY_CREDS_PSW}@${params.FORTKNOX_MODE}.fortknox.v2.prod.veedna.com/artifactory/api/pypi/gos-all-proxy-python/simple",
                        "PIP_TRUSTED_HOST=${params.FORTKNOX_MODE}.fortknox.v2.prod.veedna.com"
                    ]) {
                        sh 'python3 --version'
                        sh 'pip3 --version'

                        sh 'pip3 install -r requirements.txt -vvv'

                        // Optional: run unit tests
                        sh 'python3 -m pytest'
                    }
                }
            }
        }
    }
}
```

#### 4. Validate the Jenkins Pipeline

1. Open the Jenkins job.
2. Run **Build with Parameters**.
3. Select the FortKnox mode:
   1. `observe`
   2. `enforce`
4. Start the build.
5. Confirm that the pipeline completes the following steps:
   1. Prints the Python version.
   2. Prints the PIP version.
   3. Installs dependencies from Lineaje GOS Artifactory.
   4. Runs unit tests.

***

## Verifying Proxy Routing

Use verbose mode to confirm that PIP is resolving packages through the Lineaje Proxy.

```
pip install urllib3==2.0.5 -vvv
```

In the logs, confirm that the Proxy URL appears.

Expected example:

```
Looking in indexes: https://<user>:****@observe.fortknox.v2.prod.veedna.com/artifactory/api/pypi/gos-all-proxy-python/simple
```

You may also see package download URLs similar to:

```
https://observe.fortknox.v2.prod.veedna.com/artifactory/api/pypi/gos-all-proxy-python/packages/...
```

To detect policy violations, search the build logs for the relevant Lineaje policy violation message. To learn more, see **Detecting Policy Violations in Build Logs**.


# npm Integration

NPM resolves packages using the registry configured in [.npmrc](https://docs.npmjs.com/cli/v11/configuring-npm/npmrc). To route NPM traffic through the Lineaje Proxy, configure `.npmrc` to use the Proxy’s NPM endpoint and authenticate with a Lineaje Personal Access Token (PAT).

## Getting Started

{% stepper %}
{% step %}

### Create a Lineaje Personal Access Token (PAT)

Follow the below instructions.

{% content-ref url="/pages/C95d39E9JtH0LtbtfHfT" %}
[Authentication](https://docs.veedna.com/gold-open-source-gos/gold-packages/integrating-lineaje-gos-artifactory-proxy-into-your-ci-cd-pipeline/authentication)
{% endcontent-ref %}
{% endstep %}

{% step %}

### Store the Lineaje PAT in a secure location

For example, add the token as an environmental variable:

{% code overflow="wrap" %}

```bash
export NPM_AUTH_TOKEN="by9...dPQ=="
```

{% endcode %}

For CICD pipelines, like GitHub Actions, this token can be stored as a repository-level secret or an organization-level secret. A sample GitHub Action is added below for your reference.
{% endstep %}

{% step %}

### Configure .npmrc

Create a `.npmrc` file in the root of the Node.js project.

{% code overflow="wrap" %}

```bash
registry=https://observe.fortknox.v2.prod.veedna.com/artifactory/api/npm/gos-all-proxy-npm/
//observe.fortknox.v2.prod.veedna.com/artifactory/api/npm/gos-all-proxy-npm/:_authToken=${NPM_AUTH_TOKEN}
```

{% endcode %}

You can choose between observe mode or enforce mode. More details are here:&#x20;

{% content-ref url="/pages/05R19ZwuZtHVy9iEqChD" %}
[Modes of Operation](https://docs.veedna.com/gold-open-source-gos/gold-packages/what-is-lineaje-gold-open-source-gos-artifactory-proxy/modes-of-operation)
{% endcontent-ref %}

{% hint style="warning" %}
Never commit a .npmrc file that contains a real token or password.
{% endhint %}
{% endstep %}

{% step %}

### Install NPM packages

Now NPM is configured to connect with Lineaje GOS Artifactory and download secure NPM packages through the Lineaje Proxy.

{% code overflow="wrap" %}

```shellscript
npm install
```

{% endcode %}

{% endstep %}
{% endstepper %}

## Sample Configurations

### GitHub Actions

This guide explains how to configure a GitHub Actions workflow to install NPM dependencies from Lineaje GOS Artifactory and run unit tests.

#### 1. Create the GitHub Secret

Create a repository-level or organization-level secret to store the Lineaje PAT.

1. Open your GitHub repository.
2. Go to **Settings**.
3. Open **Secrets and variables**.
4. Select **Actions**.
5. Click **New repository secret**.

Create the following secret:

```
NPM_AUTH_TOKEN
```

Set the value to the Lineaje PAT.

> This token will be used by `actions/setup-node` to authenticate with the Lineaje GOS Artifactory NPM registry.

#### 2. Add the GitHub Actions Workflow

Create the following workflow file in your repository:

```
.github/workflows/npm-tests-gos-artifactory.yml
```

Add the below content:

```yaml
name: NPM Run Tests with GOS Artifactory

on:
  pull_request:
    branches: [main]
  workflow_dispatch:
    inputs:
      mode:
        description: "FortKnox mode"
        required: false
        default: "observe"
        type: choice
        options:
          - observe
          - enforce

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      
      - name: Set FortKnox mode
        run: |
          MODE="${{ github.event.inputs.mode || 'observe' }}"
          echo "FORTKNOX_MODE=$MODE" >> "$GITHUB_ENV"
          echo "Using FortKnox mode: $MODE"
  
      - name: Set up Node.js
        env:
          NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
        uses: actions/setup-node@v4
        with:
          node-version: '20'
          registry-url: https://${FORTKNOX_MODE}.fortknox.v2.prod.veedna.com/artifactory/api/npm/gos-all-proxy-npm/

      - name: Install dependencies
        run: npm install

      - name: Run tests
        run: node --test test/*.test.js
```

### Jenkins

This guide explains how to configure Jenkins to build a Node.js project using FortKnox Artifactory as the NPM registry.

#### 1. Configure Node.js in Jenkins

1. Go to **Manage Jenkins**.
2. Open **Tools** or **Global Tool Configuration**.
3. Find the **NodeJS installations** section.
4. Click **Add NodeJS**.
5. Set the name as:

```
NodeJS
```

6. Select the required Node.js version.
7. Save the configuration.

> The name must match the Jenkinsfile value:
>
> ```groovy
> nodejs 'NodeJS'
> ```

#### 2. Add Artifactory Credentials in Jenkins

1. Go to **Manage Jenkins**.
2. Open **Credentials**.
3. Select the appropriate credentials scope, usually:

```
Jenkins → Global credentials
```

4. Click **Add Credentials**.
5. Select credential type:

```
Username with password
```

6. Enter your SBOM360 email as username and the Lineaje PAT as password.
7. Set the credential ID, for example:

```
fortknox-artifactory-creds
```

8. Save the credential.

This credential ID will be used in the Jenkinsfile:

```groovy
ARTIFACTORY_CREDS = credentials('fortknox-artifactory-creds')
```

#### 3. Add `.npmrc` to the Project

Create a `.npmrc` file in the root of the Node.js project.

```
registry=https://<fortknox-artifactory-url>/artifactory/api/npm/<npm-repo-name>/
always-auth=true
//<fortknox-artifactory-url>/artifactory/api/npm/<npm-repo-name>/:_authToken=${NPM_AUTH_TOKEN}
```

Example:

```
registry=https://observe.fortknox.v2.prod.veedna.com/artifactory/api/npm/gos-all-proxy-npm/
always-auth=true
//observe.fortknox.v2.prod.veedna.com/artifactory/api/npm/gos-all-proxy-npm/:_authToken=${NPM_AUTH_TOKEN}
```

#### 4. Add the Jenkinsfile

Add the following `Jenkinsfile` to the root of the repository.

```groovy
pipeline {
    agent any

    tools {
        // Ensure this NodeJS tool is configured in Jenkins "Global Tool Configuration"
        nodejs 'NodeJS'
    }

    environment {
        // Jenkins credential should be "Username with password"
        // Password should contain the Lineaje PAT / auth token
        ARTIFACTORY_CREDS = credentials('<credentialID from step 1>')
    }

    stages {
        stage('Build') {
            steps {
                script {
                    // Use only the password/PAT as the NPM auth token
                    // This is for .npmrc entries using _authToken
                    withEnv(["NPM_AUTH_TOKEN=${ARTIFACTORY_CREDS_PSW}"]) {
                        sh 'npm cache clean --force'
                        sh 'npm install --verbose'

                        // Optional: verify packages were resolved from Lineaje FortKnox Artifactory
                        // sh 'grep "resolved" package-lock.json || true'

                        sh 'npm start'
                    }
                }
            }
        }
    }
}
```

## Verifying Proxy Routing

The `--verbose` flag causes npm to log the full tarball URL. Confirm the Proxy URL appears:

```
# Expected in build log: 
npm http fetch GET 200 
  https://enforce.fortknox.v2.prod.veedna.com/artifactory/api/npm/ 
  gos-all-proxy-npm/lodash/-/lodash-4.17.21.tgz 
```

To detect policy violations, search build logs for the string. To learn more, see [Detecting Policy Violations in Build Logs](broken://pages/Q10H9NLvhjgbZrQoxsqI).


# HTTP Response Codes

The Lineaje GOS Artifactory Proxy returns standard HTTP status codes. The following table describes each code, its meaning, and the recommended action for your build pipeline.

| **HTTP Status**           | **Meaning**                                                                                                                                                       | **Package Managers** | **Action Required**                                                                                                                                                                            |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200 OK                    | Package is Gold Open Source and all policies passed. Artifact is streamed to the build tool.                                                                      | Maven, PyPI, npm     | No action required. Build proceeds normally.                                                                                                                                                   |
| 401 Unauthorized          | Request is missing credentials or the credentials are invalid.                                                                                                    | Maven, PyPI, npm     | Verify ARTIFACTORY\_CREDS is correctly configured and the credential ID matches exactly.                                                                                                       |
| 403 Forbidden             | Package is not Gold Open Source or a custom policy has blocked the download (enforce mode only).                                                                  | Maven                | Review the 'Policies violated' message in the build logs. Upgrade to a Gold-qualified version or request a policy exemption via the Lineaje platform.                                          |
| 404 Not Found             | Package is not Gold Open Source or a custom policy has blocked the download (enforce mode only). Also returned when the package/version genuinely does not exist. | PyPI, npm            | <p>Same as 403 Forbidden. Distinguish from a genuine 404 by checking for 'Policies violated' in the response body. </p><p>PyPI and npm package managers only recognize 404 for violations.</p> |
| 500 Internal Server Error | Package has not yet been analyzed by Lineaje. The package has been submitted for analysis.                                                                        | Maven, PyPI, npm     | Re-trigger the build after 5 to 10 minutes. If the error persists, contact Lineaje support.                                                                                                    |

{% hint style="info" %}
In Observe mode, the Firewall always returns 200 for valid packages, regardless of GOS status. Policy violation details are still logged to the Lineaje platform.
{% endhint %}


# Integrating GOS into Your CI/CD Pipeline

Lineaje GOS integrates into existing CI/CD pipelines. The workflow consists of six sequential phases, each supported by Lineaje APIs, CLI tooling, and AI-driven automation.

<details>

<summary>Step 1: Choose a Deployment Model</summary>

Choose between SaaS or Hybrid. To learn more, see [Deployment Models](https://docs.veedna.com/deploying-lineaje).

</details>

<details>

<summary>Step 1: Generate a Project</summary>

To onboard the application to Lineaje, start by [generating a project](https://docs.veedna.com/deploying-lineaje/saas-deployment#generating-a-project-saas). Lineaje constructs a complete dependency graph, including all direct and transitive components, from one of the following ingestion sources:&#x20;

* **Source code repository**: Connect Lineaje to GitHub, GitLab, Bitbucket, or any SCM via the CLI or webhook integration.&#x20;
* **Container image**: Provide an image reference; Lineaje unpacks and analyzes the full layer dependency tree.&#x20;
* **Existing SBOM**: Import a CycloneDX or SPDX SBOM to bootstrap the project without re-scanning.&#x20;

Once a project is generated, Lineaje maintains a continuously-updated view of the application's supply chain, surfacing new vulnerabilities as they are disclosed against any component in the dependency tree.

</details>

<details>

<summary>Step 2: Lineaje Generates a GOS Plan </summary>

Lineaje's AI agents analyze the project's dependency graph and produce a structured remediation plan that classifies every vulnerable component into one of three fix buckets:

| **Fix Type** | **Description**                                                                                                                          | **Effort Level** | **Automation**                         |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | -------------------------------------- |
| Curated      | Drop-in replacement where a safe fixed version exists. Lineaje verifies the upgrade does not introduce new vulnerabilities transitively. | Low              | Fully automated via Auto Fix           |
| Rebuild      | Lineaje reconstructs the component with patched transitive dependencies — no source-code changes required.                               | Medium           | Automated rebuild pipeline             |
| Premium      | No safe public version exists; Lineaje applies targeted source-level patches to produce a hardened artifact.                             | High             | AI-assisted; manual review recommended |

The GOS plan output is a machine-readable artifact (manifest file) that specifies the exact package versions and patch identifiers required to eliminate all resolvable ECH vulnerabilities from the project.

</details>

<details>

<summary>Step 3: Prepare Fix Artifacts  </summary>

After the GOS plan is generated, Lineaje's build infrastructure prepares the required fix artifacts. For Curated and Rebuild fixes, this process typically completes within minutes. Premium fixes — which require targeted source-level modifications — may take additional time depending on component complexity.&#x20;

During this phase, the recommended polling strategy is to query the fix plan API until overall\_status transitions to "available". Once available, all fix artifacts are accessible via the Lineaje Gold Open Source (GOS) Artifactory Proxy.&#x20;

{% hint style="info" %}
Refer to the [Integrating GOS API into Your CI/CD Pipeline](https://docs.veedna.com/gold-open-source-gos/gold-packages/ai-remediate) for the full polling flow using the /api/v1/explain endpoint.
{% endhint %}

</details>

<details>

<summary>Step 4: Apply GOS Fixes </summary>

Once fix artifacts are available, they are applied to the project repository using the GOS fix manifest. Two application paths are available depending on your license tier:

* GOS (Standard): Development teams apply the fix manifest manually by creating a new branch, updating the dependency manifest (e.g., pom.xml, requirements.txt, go.mod), committing the change, and raising a pull request for review and merge.&#x20;
* SCA 360 (Auto Fix): Lineaje's AI agents automate the entire developer workflow — branching, manifest update, commit, and PR creation — reducing the time from plan to remediation to minutes.&#x20;

{% hint style="info" icon="check" %}
Auto Fix integrates with GitHub, GitLab, and Bitbucket PR workflows. Branch naming conventions and PR templates are fully configurable via Lineaje organization settings.
{% endhint %}

</details>

<details>

<summary>Step 5: Integrate Lineaje Gold Open Source (GOS) Artifactory Proxy</summary>

Lineaje GOS Artifactory Proxy is a GOS-enforcing artifact registry. When configured as the upstream for your build tool (Maven, Gradle, pip, npm, Go module proxy, etc.), it acts as a policy gateway:&#x20;

* **Allows**: Package requests that resolve to Gold-rated versions are served immediately.&#x20;
* **Blocks**: Requests for non-Gold packages are rejected with a structured error response indicating the specific policy violation.&#x20;
* **Audits**: Every resolved package is logged with a timestamp, enabling on-demand SBOM generation and compliance attestation.&#x20;

Lineaje GOS Artifactory Proxy supports both cloud-hosted and on-premises deployment to meet data residency requirements. It is compatible with all major build ecosystems and can be configured as a virtual repository that proxies existing registries with Gold enforcement layered on top.&#x20;

{% hint style="info" %}
Refer to the [Integrating Lineaje GOS Artifactory Proxy into Your CI/CD Pipeline](https://docs.veedna.com/gold-open-source-gos/gold-packages/integrating-lineaje-gos-artifactory-proxy-into-your-ci-cd-pipeline) for connector-specific setup instructions (Maven settings.xml, pip.conf, .npmrc, GOPROXY, etc.).
{% endhint %}

</details>

<details>

<summary>Step 6: Generate New Build </summary>

After fixes are applied and merged, trigger a new project generation in Lineaje to validate the remediation. The resulting project scan should confirm:&#x20;

* ECH vulnerability count = 0 across all direct and transitive dependencies.&#x20;
* All components resolve through Lineaje GOS Artifactory Proxy and carry valid Gold timestamps.&#x20;
* No new policy violations introduced by the fix packages.&#x20;

The new project SBOM serves as a compliance artifact and can be exported in CycloneDX or SPDX format for submission to regulators, customers, or internal audit processes.&#x20;

</details>


# \[Updated draft]: Integrating GOS into Your CI/CD Pipeline

Lineaje GOS integrates into existing CI/CD pipelines. The workflow consists of six sequential phases, each supported by Lineaje APIs, CLI tooling, and AI-driven automation.

<details>

<summary>Step 1: Choose a Deployment Model</summary>

Lineaje GOS supports two deployment models to accommodate varying security, compliance, and data sovereignty requirements:

| Model                            | What Gets Deployed                                   | Source Code Leaves Your Network? | Best For                                                   |
| -------------------------------- | ---------------------------------------------------- | -------------------------------- | ---------------------------------------------------------- |
| **SaaS**                         | Nothing — Lineaje cloud handles everything           | Yes (via access tokens)          | Teams comfortable sharing repo/image access                |
| **Hybrid** (most common)         | Lineaje CLI agent only                               | No — only SBOM metadata is sent  | Enterprise customers needing code confidentiality          |
| **On-Premises (Customer Cloud)** | Full Lineaje backend in your cloud (AWS, Azure, GCP) | No                               | Organizations requiring full data residency in their cloud |
| **On-Premises (Data Center)**    | Full Lineaje backend in your data center             | No                               | Highly regulated / data-center-only environments           |

</details>

<details>

<summary>Step 2: Generate a Project</summary>

To onboard the application to Lineaje, start by generating a project.&#x20;

* <mark style="color:$danger;">Generate a project for SaaS deployment model.</mark>
* <mark style="color:$danger;">Generate a project for Hybrid deployment model.</mark>
* <mark style="color:$danger;">Generate a project for Customer Cloud-Hosted deployment model.</mark>
* <mark style="color:$danger;">Generate a project for On-Premises deployment model.</mark>

Lineaje constructs a complete dependency graph, including all direct and transitive components, from one of the following ingestion sources:&#x20;

| Source                     | How It Works                                                                 |
| -------------------------- | ---------------------------------------------------------------------------- |
| **Source code repository** | Connect via GitHub, GitLab, Bitbucket, or any SCM (CLI or webhook)           |
| **Container image**        | Provide an image reference; Lineaje unpacks and analyzes the full layer tree |
| **Existing SBOM**          | Import a CycloneDX or SPDX SBOM to bootstrap without re-scanning             |

Once generated, Lineaje maintains a continuously-updated dependency graph, surfacing new vulnerabilities as they are disclosed.

</details>

<details>

<summary>Step 3: Lineaje Generates a GOS Plan </summary>

Lineaje's AI agents analyze the project's dependency graph and produce a structured remediation plan that classifies every vulnerable component into one of three fix buckets:

| **Fix Type** | **Description**                                                                                                                          | **Effort Level** | **Automation**                         |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | -------------------------------------- |
| **Curated**  | Drop-in replacement where a safe fixed version exists. Lineaje verifies the upgrade does not introduce new vulnerabilities transitively. | Low              | Fully automated via Auto Fix           |
| **Rebuild**  | Lineaje reconstructs the component with patched transitive dependencies — no source-code changes required.                               | Medium           | Automated rebuild pipeline             |
| **Premium**  | No safe public version exists; Lineaje applies targeted source-level patches to produce a hardened artifact.                             | High             | AI-assisted; manual review recommended |

The GOS plan output is a machine-readable artifact (manifest file) that specifies the exact package versions and patch identifiers required to eliminate all resolvable ECH vulnerabilities from the project.

</details>

<details>

<summary>Step 4: Lineaje Prepares Fix Artifacts  </summary>

After the GOS plan is generated, Lineaje's build infrastructure prepares the required fix artifacts. For Curated and Rebuild fixes, this process typically completes within minutes. Premium fixes — which require targeted source-level modifications — may take additional time depending on component complexity.&#x20;

<mark style="color:$danger;">During this phase, the recommended polling strategy is to query the fix plan API until overall\_status transitions to "available". Once available, all fix artifacts are accessible via the Lineaje Gold Open Source (GOS) Artifactory Proxy.</mark>&#x20;

{% hint style="info" %} <mark style="color:$danger;">Refer to the</mark> [<mark style="color:$danger;">Integrating GOS API into Your CI/CD Pipeline</mark>](https://docs.veedna.com/gold-open-source-gos/gold-packages/ai-remediate) <mark style="color:$danger;">for the full polling flow using the /api/v1/explain endpoint.</mark>
{% endhint %}

</details>

<details>

<summary>Step 5: Lineaje Applies GOS Fixes </summary>

Once fix artifacts are available, Lineaje applies them to the project repository using the GOS fix manifest. Three application paths are available depending on your license tier:

| Method                                               | How It Works                                                                                                                                                                         | Deployment Models                              |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------- |
| **CI/CD Integration Script**                         | Ready-to-use pipeline script embedding all Lineaje API calls in the correct sequence. Add to Bitbucket Pipelines, GitHub Actions, or GitLab CI. Self-contained with inline comments. | Hybrid, Customer Cloud-Hosted, On-Premises     |
| **SCA 360 (Auto Fix)**                               | Lineaje AI agents automate branching, manifest update, commit, and PR creation. Integrates with GitHub, GitLab, and Bitbucket PR workflows.                                          | All models                                     |
| <mark style="color:red;">**Manual API Calls**</mark> | <mark style="color:$danger;">Call Lineaje APIs individually for full control over each step.</mark>                                                                                  | <mark style="color:$danger;">All models</mark> |

{% hint style="info" icon="check" %}
Auto Fix integrates with GitHub, GitLab, and Bitbucket PR workflows. Branch naming conventions and PR templates are fully configurable via Lineaje organization settings.
{% endhint %}

</details>

<details>

<summary>Step 6: Integrate Lineaje Gold Open Source (GOS) Artifactory Proxy</summary>

Lineaje GOS Artifactory Proxy is a GOS-enforcing artifact registry. When configured as the upstream for your build tool (Maven, Gradle, pip, npm, Go module proxy, etc.), it acts as a policy gateway:&#x20;

| Action     | Behavior                                                                                                                        |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **Allows** | Requests for Gold-rated package versions are served immediately                                                                 |
| **Blocks** | Non-Gold packages are rejected with structured error responses (enforce mode); in observe mode, all packages proceed regardless |
| **Audits** | Every resolved package is logged with timestamp, enabling SBOM generation and compliance attestation                            |

Lineaje GOS Artifactory Proxy supports both cloud-hosted and on-premises deployment to meet data residency requirements. It is compatible with all major build ecosystems and can be configured as a virtual repository that proxies existing registries with Gold enforcement layered on top.&#x20;

{% hint style="info" %}
Refer to the [Integrating Lineaje GOS Artifactory Proxy into Your CI/CD Pipeline](https://docs.veedna.com/gold-open-source-gos/gold-packages/integrating-lineaje-gos-artifactory-proxy-into-your-ci-cd-pipeline) for connector-specific setup instructions (Maven settings.xml, pip.conf, .npmrc, GOPROXY, etc.).
{% endhint %}

</details>

<details>

<summary>Step 7: Generate New Build (Recommended) </summary>

After fixes are applied and merged, trigger a new project generation in Lineaje to validate the remediation. The resulting project scan should confirm:&#x20;

| Validation Check            | Expected Result                                                                          |
| --------------------------- | ---------------------------------------------------------------------------------------- |
| **ECH vulnerability count** | 0 across all direct and transitive dependencies                                          |
| **Component resolution**    | All components resolve through GOS Artifactory Proxy with valid Gold timestamps          |
| **Policy violations**       | No new violations introduced by fix packages                                             |
| **Compliance export**       | SBOM exportable in CycloneDX or SPDX format for regulators, customers, or internal audit |

The new project SBOM serves as a compliance artifact and can be exported in CycloneDX or SPDX format for submission to regulators, customers, or internal audit processes.&#x20;

</details>


# Global Lineaje Open Source Intelligence (GLOSI)


# User Guide

### What is GLOSI?

GLOSI is an offering from Lineaje that serves as an intelligence data platform for open source components and vulnerabilities. GLOSI enables customers to lookup open source intelligence in their own environment. GLOSI supports a variety of environments – from cloud to on-prem. GLOSI releases new intelligence data on a regular basis to keep up the changes.

### How is GLOSI shipped?

GLOSI is shipped as a container image (tarball) and it can be deployed using docker compose.

### What does GLOSI contain?

GLOSI image bundles the open source data and open source vulnerability data along with a set of services and a UI. It includes the following elements:

·       Front end UI React Next App to access and query the open source components and vulnerabilities

·       Data-service FastAPI as an API layer to access the data

·       Orchestration service FastAPI app to manage the DB

·       Elastic Search DB `7.17.0` that holds the open source data

### How can I get access to GLOSI?

GLOSI image is hosted in Lineaje registry. Please get in touch with Lineaje support (<support@lineaje.com>) to get access to the GLOSI image.

### GLOSI Setup

#### System Configuration

All containers can be setup in one single VM (Ubuntu, Alpine) or in distributed fashion. If all applications are being setup in one single vm below configuration is recommended.

| **Deployment Type** | **services** | **Ram** | **vCPU** | **DiskSize** |
| ------------------- | ------------ | ------- | -------- | ------------ |
| SingleNode          | data-service | 32GB    | 8        | 300GB        |

#### &#x20;

#### **Pre-requisite**

1\.     You should have the tarball containing the installation guide, API documentation along with Resource folder containing the docker-compose.yaml file which contains GLOSI image hosted within Lineaje ECR. The tarball can also be found here.

2\.     You should have access to Lineaje ECR hosting the GLOSI docker image, in case you don’t have access, then please reach out to Lineaje Support on <support@lineaje.com> for requesting ECR access along with your AWS Account Id. Once ECR access is granted on your AWS Account, you are good to move forward with next steps.

3\.     Docker installed on the host vm

4\.     Install AWS CLI on vm

5\.     For automated installation, services being installed using the GLOSI vm should have access to [gold.lineaje.com](http://gold.lineaje.com) domain. Whitelisting

#### **Deployment**

1\.     Add a config in \~/.aws/config with below info

```
[profile LineajeGlosiRole]
```

```
role_arn = arn:aws:iam::<Lineaje AWS Account>:role/lineajeGlosiPullRole
```

```
credential_source = Ec2InstanceMetadata
```

2\.     Login to aws ecr using below command. glosi repository id can be found in docker-compose.yaml file present under Resource folder of tarball.

```
aws ecr get-login-password --region us-east-1 --profile LineajeGlosiRole | sudo docker login --username AWS --password-stdin <Lineaje AWS Account>.dkr.ecr.us-east-1.amazonaws.com
```

2\.     Pull the image in your host vm using below command

```
docker pull <Lineaje AWS Account>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

3\.     Use below command to deploy all services with docker-compose.yaml and image pulled in previous step. This will deploy all services in one single vm.

```
sudo docker compose -f <docker-compose.yaml> up -d
```

<br>

&#x20;

### **Custom Deployment**

The deployment can be customized. Here are the configuration files that can be customized.

#### **ElasticSearch configuration**

To start elastic search separately elasticsearch container can be spawned in separate vm and a port needs to be exposed to make it accessible through data service. With below configuration the container runs at recommended **9200** port, which can be changed as per requirement.

```
elasticsearch:
```

```
    image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

```
    container_name: elasticsearch
```

```
    command: ["/bin/sh", "-c", "/usr/share/elasticsearch/bin/elasticsearch"]
```

```
    user: "1001:1001"  # Run as UID/GID defined in Dockerfile
```

```
    environment:      
```

```
      - discovery.type=single-node
```

```
      - ES_JAVA_OPTS=-Xms512m -Xmx512m
```

```
    volumes:
```

```
      - elasticsearch_data:/usr/share/elasticsearch/data
```

```
    ports:
```

```
      - "9200:9200"
```

```
    restart: no
```

```
    healthcheck:
```

```
      test: ["CMD-SHELL", "curl --silent --fail http://elasticsearch:9200/_cluster/health || exit 1"]
```

```
      interval: 5s
```

```
      retries: 10
```

```
      timeout: 3s
```

#### **Data Service configuration**

Data service is the data access API using FastAPI and connects to Elasticsearch. Converts client requests into Elasticsearch queries. This container runs on recommended port `8000` which can be customised with below configuration. This service also exposed a swagger docs endpoint at url: **http\://\<data-service:VM\_IP>:\<port:8000>/docs**

```
data-service:
```

```
    image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

```
    container_name: data-service
```

```
    working_dir: /app/data-service
```

```
    command: ["gunicorn", "main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000", "--timeout", "2", "--graceful-timeout", "15", "--keep-alive", "10"]    
```

```
    environment:
```

```
      - PATH=/app/data-service/venv/bin:$PATH
```

```
      - ELASTIC_AUTH_METHOD=NO_AUTH
```

```
      - OPENSEARCH_HOST=elasticsearch   
```

```
      - OPENSEARCH_PORT=9200
```

```
      - USER_SSL=False
```

```
      - VERIFY_CERT=False
```

```
    depends_on:
```

```
      elasticsearch:
```

```
        condition: service_healthy
```

```
    ports:
```

```
      - "8000:8000"
```

```
    restart: always
```

#### **FrontEnd**

The frontend using which user interact with this service through their browsers. It calls backend APIs and displays data visually. It runs on recommended 3000 port (`http://localhost:3000`) which can be customized with below container definition.

```
risklensui:
```

```
    image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

```
    container_name: risklensui
```

```
    working_dir: /app/risklensui
```

```
    command: ["npm", "run", "start"]    
```

```
    ports:
```

```
      - "3000:3000"
```

```
    restart: always
```

#### **GLOSI Orchestration Service**

Orchestration service handles workflows and connects UI actions with the data-service. Adds logic, routing, and validation. It runs on recommended 8500 port (**http\://\<orchestration-service:VM\_IP>:\<port:8000>/docs**) which can be customised with below container definition. Here link to elastic search needs to be provided along with port as this service interacts with elastic search directly with data synchronisation.

```
orchestration-service:
```

```
    image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

```
    container_name: orchestration-service
```

```
    working_dir: /app/glosi-orchestration-service
```

```
    command: ["gunicorn", "main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8500", "--timeout", "2", "--graceful-timeout", "15", "--keep-alive", "10"]    
```

```
    environment:
```

```
      - PATH=/app/glosi-orchestration-service/venv/bin:$PATH
```

```
      - DATA_SERVICE_HOST=data-service
```

```
      - DATA_SERVICE_PORT=8000
```

```
      - ELASTIC_AUTH_METHOD=NO_AUTH
```

```
      - OPENSEARCH_HOST=elasticsearch   
```

```
      - OPENSEARCH_PORT=9200
```

```
      - USER_SSL=False
```

```
      - VERIFY_CERT=False
```

```
      - OSS_TENANT_ID=vdna_994mgmr65tculnfy
```

```
    depends_on:
```

```
      - data-service
```

```
    ports:
```

```
      - "8500:8500"
```

```
    restart: always
```

### **Data Persistence, Networking, and Volumes**&#x20;

**Volumes** ensure data inside containers isn’t lost when containers restart or rebuild. For instance, the `elasticsearch_data` volume stores all search and analytics data.&#x20;

Volumes used:&#x20;

·       `elasticsearch_data`: Stores data generated by Elasticsearch post package and vulnerability index data synchronisation

**Networking**&#x20;

Docker Compose automatically creates an internal bridge network. Containers communicate using service names. This abstraction avoids hardcoding IPs and simplifies scaling or relocating services.&#x20;

**Healthchecks** ensure each service is only marked healthy once it responds to a specific URL or command, improving reliability.&#x20;

### **Service Interaction**

Here’s how the services communicate:&#x20;

1\.     **Frontend Interaction**&#x20;

The user opens the UI at `http://localhost:3000`. This sends API requests (like search queries) to the orchestration-service at `http://localhost:8500`.&#x20;

2\.     **Orchestration-Service**&#x20;

Validates the request and forwards it to the appropriate backend (usually the data-service).&#x20;

3\.     **Data-Service**&#x20;

Receives requests from orchestration-service. Transforms them into Elasticsearch-compatible queries and sends them to Elasticsearch.&#x20;

4\.     **Elasticsearch**&#x20;

Performs search/indexing operations and returns results to the data-service.&#x20;

5\.     **Response Propagation**&#x20;

The data-service formats Elasticsearch results and returns them to orchestration-service, which may further process or log it.&#x20;

6\.     **Frontend Rendering**&#x20;

The ui receives the final result and displays it to the user.&#x20;

The architecture follows this loop:

**UI ➝ Orchestration ➝ Data-service ➝ Elasticsearch ➝ Data-service ➝ Orchestration ➝ UI**&#x20;

Compose ensures services are started in this dependency chain, meaning each service waits for its required backend to be healthy before starting.&#x20;

### **Access URLs**&#x20;

·       Frontend: [http://](http://localhost:3000/)localhost:3000

·       Data-Service Swagger Docs: [http://\<data-service:localhost>:\<data-service-port:8000>/docs](http://localhost:8000/docs)  i.e. [http://localhost:](http://localhost:3000)8000/docs

·       Glosi Orchestration Service Swagger Docs: [http://\<glosi-orchestration-service:localhost>:\<glosi-orchestration-service-port:8500>/docs](http://localhost:8000/docs)  i.e. [http://localhost:](http://localhost:3000)8500/docs

### GLOSI API reference

This section provides a comprehensive overview of all available endpoints, request formats, and response structures. All APIs follow the OpenAPI 3.1.0 specification and are served via FastAPI. Swagger documentation is available at:

**API Docs**: `http://<glosi-orchestration-service-host>:<port>/docs`

#### API Summary

| Method | Route              | Purpose                               | Input Type             | Response Summary                 |
| ------ | ------------------ | ------------------------------------- | ---------------------- | -------------------------------- |
| POST   | `/component`       | Search component (package/image) info | `ComponentRequest`     | Components list, totals, sample  |
| POST   | `/search/packages` | Search packages                       | `SearchRequest`        | List of packages with pagination |
| POST   | `/search/cves`     | Search CVEs                           | `SearchRequest`        | List of CVEs with pagination     |
| POST   | `/search/images`   | Search images                         | `SearchRequest`        | List of images with pagination   |
| POST   | `/catalog/search`  | Search catalog entries                | `CatalogSearchRequest` | Catalog search results           |

#### API Details

**1. POST `/component`**

**Description:** Retrieves detailed component information (package/image).

**Request Body:** `ComponentRequest`

```
{
```

```
  "type": "package",  // or "image"
```

```
  "packageName": "example",
```

```
  "manager": "npm",
```

```
  "version": "1.0.0",
```

```
  "gos": ["gold", "premium"],
```

```
  "page": 0,
```

```
  "page_size": 20
```

```
}
```

**Behavior:**

·       If `type = package`, provides packages info

·       If `type = image`,provides images info

**Response:**

```
{
```

```
  "status": true,
```

```
  "components": [...],
```

```
  "total": 120,
```

```
  "gos_total": 80,
```

```
  "sample_document": {...}
```

```
}
```

**2. POST `/search/packages`**

**Description:** Searches for packages with filters and overrides.

**Request Body:** `SearchRequest`

```
{
```

```
  "searchQuery": "openssl",
```

```
  "gos_type": ["gold"],
```

```
  "page": 0,
```

```
  "page_size": 3,
```

```
  "overide_gos_filter": true
```

```
}
```

**Response:**

```
{
```

```
  "status": true,
```

```
  "packages": [...],
```

```
  "pagination": { "packages": 30 }
```

```
}
```

**3. POST `/search/cves`**

**Description:** Searches for CVEs based on query, severity, and timeframe.

**Request Body:** `SearchRequest`

```
{
```

```
  "searchQuery": "CVE-2023",
```

```
  "severity": ["high"],
```

```
  "timeframe": "2024-01-01",
```

```
  "page": 0,
```

```
  "page_size": 5
```

```
}
```

**Response:**

```
{
```

```
  "status": true,
```

```
  "cves": [...],
```

```
  "pagination": { "cves": 50 }
```

```
}
```

**4. POST `/search/images`**

**Description:** Searches for container images.

**Request Body:** `SearchRequest`

```
{
```

```
  "searchQuery": "ubuntu",
```

```
  "gos_type": ["premium"],
```

```
  "overide_gos_filter": true
```

```
}
```

**Response:**

```
{
```

```
  "status": true,
```

```
  "images": [...],
```

```
  "pagination": { "images": 17 }
```

```
}
```

**5. POST `/catalog/search`**

**Description:** Searches the full catalog with extended filters.

**Request Body:** `CatalogSearchRequest`

```
{
```

```
  "searchQuery": "django",
```

```
  "managers": ["pypi"],
```

```
  "type": "package",
```

```
  "gos": ["gold"],
```

```
  "page": 0,
```

```
  "page_size": 10
```

```
}
```

**Response:**

```
{
```

```
  "status": true,
```

```
  "catalog": [...],
```

```
  "pagination": { "catalog": 55 }
```

```
}
```

#### Schema Overview

All endpoints expect input types as defined in OpenAPI schemas:

·       `ComponentRequest`: For `/component`

·       `SearchRequest`: For `/search/*`

·       `CatalogSearchRequest`: For catalog-based queries

·       `FixRequest`, `FixStatusRequest`, `CVERequest`, etc.: Used in fix and CVE resolution APIs

Example of `SearchRequest` schema:

```
{
```

```
  "searchQuery": "string",
```

```
  "page": 0,
```

```
  "page_size": 3,
```

```
  "severity": ["low", "medium"],
```

```
  "gos_type": ["gold"],
```

```
  "overide_gos_filter": true
```

```
}
```

**Notes**

·       All routes are served under FastAPI with auto-generated Swagger UI.

·       Swagger Docs available at `http://<glosi-orchestration-service-host>:<port>/docs`

·       Supports flexible filtering, pagination, and override logic.

### **Maintenance and Troubleshooting**

An admin panel is provided to check the status of data index status.

**Maintenance Tips**&#x20;

·       Clean up unused resources:

`docker system prune -a`&#x20;

·       Restart specific service:

`docker-compose restart data-service`

**Troubleshooting**&#x20;

·       Check container status: `docker ps`&#x20;

·       Access container shell: `docker exec -it <container-name> /bin/sh`&#x20;

·       Watch logs for errors.&#x20;


# Installation Guide

## GLOSI Setup

## Introduction <a href="#glosisetup-introduction" id="glosisetup-introduction"></a>

This document provides a comprehensive guide to deploying and operating **GLOSI** (Global Software Inventory), a containerized solution developed by **Lineaje** for analyzing software packages and vulnerabilities.

Published weekly as a pre-built Docker image to Lineaje's Elastic Container Registry (ECR), GLOSI comes bundled with all required services and data, enabling users to spin up a fully functional environment with minimal setup. The system integrates a robust search backend powered by **Elasticsearch**, a FastAPI-driven data service, an orchestration layer for business logic, and a modern UI for user interaction.

This guide walks through how to access the image, deploy the services using Docker Compose, understand the architecture, and manage or troubleshoot the system. Whether you're running it on a single virtual machine or distributing services across multiple nodes, this document covers the configuration, health checks, networking, and recommended hardware requirements.

## GLOSI Docker Image <a href="#glosisetup-glosidockerimage" id="glosisetup-glosidockerimage"></a>

The image is published to Lineaje Elastic Container Registry every week, which contains the full data within it including packages and vulnerability in compressed format along with required code dependencies to access and synchronise the data automatically. The image also contains a public elastic server image which can be used to power rest of the services.

## Deployment Steps <a href="#glosisetup-deploymentsteps" id="glosisetup-deploymentsteps"></a>

### **Pre-requisite** <a href="#glosisetup-pre-requisite" id="glosisetup-pre-requisite"></a>

1\.     You should have the tarball containing the installation guide, API documentation along with Resource folder containing the docker-compose.yaml file which contains GLOSI image hosted within Lineaje ECR. The tarball can also be found here.

2\.     You should have access to Lineaje ECR hosting the GLOSI docker image, in case you don’t have access, then please reach out to Lineaje Support on <support_glosi@lineaje.com> for requesting ECR access along with your AWS Account Id. Once ECR access is granted on your AWS Account, you are good to move forward with next steps.

3\.     Docker installed on the host vm

4\.     Install AWS CLI on vm

5\.     For automated installation, services being installed using the GLOSI vm should have access to [gold.lineaje.com](http://gold.lineaje.com) domain. Whitelisting

### **Deployment** <a href="#glosisetup-deployment" id="glosisetup-deployment"></a>

1\.     Add a config in \~/.aws/config with below info

```
[profile LineajeGlosiRole]
```

```
role_arn = arn:aws:iam::739923383310:role/lineajeGlosiPullRole
```

```
credential_source = Ec2InstanceMetadata
```

2\.     Login to aws ecr using below command. glosi repository id can be found in docker-compose.yaml file present under Resource folder of tarball.

```
aws ecr get-login-password --region us-east-1 --profile LineajeGlosiRole | sudo docker login --username AWS --password-stdin 739923383310.dkr.ecr.us-east-1.amazonaws.com
```

2\.     Pull the image in your host vm using below command

```
docker pull 739923383310.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

3\.     Use below command to deploy all services with docker-compose.yaml and image pulled in previous step. This will deploy all services in one single vm.

```
sudo docker compsoe -f <docker-compose.yaml> up -d
```

### Optional: **Custom Deployment** <a href="#glosisetup-optional-customdeployment" id="glosisetup-optional-customdeployment"></a>

### **ElasticSearch** <a href="#glosisetup-elasticsearch" id="glosisetup-elasticsearch"></a>

#### Description <a href="#glosisetup-description" id="glosisetup-description"></a>

To start elastic search separately elasticsearch container can be spawned in separate vm and a port needs to be exposed to make it accessible through data service. With below configuration the container runs at recommended **9200** port, which can be changed as per requirement.

#### Configuration <a href="#glosisetup-configuration" id="glosisetup-configuration"></a>

```
elasticsearch:
```

```
    image: 216394054222.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

```
    container_name: elasticsearch
```

```
    command: ["/bin/sh", "-c", "/usr/share/elasticsearch/bin/elasticsearch"]
```

```
    user: "1001:1001"  # Run as UID/GID defined in Dockerfile
```

```
    environment:      
```

```
      - discovery.type=single-node
```

```
      - ES_JAVA_OPTS=-Xms512m -Xmx512m
```

```
    volumes:
```

```
      - ./elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
```

```
      - elasticsearch_data:/usr/share/elasticsearch/data
```

```
    ports:
```

```
      - "9200:9200"
```

```
    restart: no
```

```
    healthcheck:
```

```
      test: ["CMD-SHELL", "curl --silent --fail http://elasticsearch:9200/_cluster/health || exit 1"]
```

```
      interval: 5s
```

```
      retries: 10
```

```
      timeout: 3s
```

### **Data Service** <a href="#glosisetup-dataservice" id="glosisetup-dataservice"></a>

#### Description <a href="#glosisetup-description.1" id="glosisetup-description.1"></a>

Acts as a data access API using FastAPI and connects to Elasticsearch. Converts client requests into Elasticsearch queries. This container runs on recommended port `8000` which can be customised with below configuration. This service also exposed a swagger docs endpoint at url: **http\://\<data-service:VM\_IP>:\<port:8000>/docs**

#### Configuration <a href="#glosisetup-configuration.1" id="glosisetup-configuration.1"></a>

```
data-service:
```

```
    image: 216394054222.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

```
    container_name: data-service
```

```
    working_dir: /app/data-service
```

```
    command: ["gunicorn", "main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000", "--timeout", "2", "--graceful-timeout", "15", "--keep-alive", "10"]    
```

```
    environment:
```

```
      - PATH=/app/data-service/venv/bin:$PATH
```

```
      - ELASTIC_AUTH_METHOD=NO_AUTH
```

```
      - OPENSEARCH_HOST=elasticsearch   
```

```
      - OPENSEARCH_PORT=9200
```

```
      - USER_SSL=False
```

```
      - VERIFY_CERT=False
```

```
    depends_on:
```

```
      elasticsearch:
```

```
        condition: service_healthy
```

```
    ports:
```

```
      - "8000:8000"
```

```
    restart: always
```

### **GLOSI UI** <a href="#glosisetup-risklensui" id="glosisetup-risklensui"></a>

#### Description <a href="#glosisetup-description.2" id="glosisetup-description.2"></a>

The frontend using which user interact with this service through their browsers. It calls backend APIs and displays data visually. It runs on recommended 3000 ports which can be customised with below container definition.

```
glosiui:
```

```
    image: 216394054222.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

```
    container_name: risklensui
```

```
    working_dir: /app/risklensui
```

```
    command: ["npm", "run", "start"]    
```

```
    ports:
```

```
      - "3000:3000"
```

```
    restart: always
```

#### **Glosi Orchestration Service** <a href="#glosisetup-glosiorchestrationservice" id="glosisetup-glosiorchestrationservice"></a>

Orchestration service handles workflows and connects UI actions with the data-service. Adds logic, routing, and validation. It runs on recommended 8500 port which can be customised with below container definition. Here link to elastic search needs to be provided along with port as this service interacts with elastic search directly with data synchronisation.

```
orchestration-service:
```

```
    image: 216394054222.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

```
    container_name: orchestration-service
```

```
    working_dir: /app/glosi-orchestration-service
```

```
    command: ["gunicorn", "main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8500", "--timeout", "2", "--graceful-timeout", "15", "--keep-alive", "10"]    
```

```
    environment:
```

```
      - PATH=/app/glosi-orchestration-service/venv/bin:$PATH
```

```
      - DATA_SERVICE_HOST=data-service
```

```
      - DATA_SERVICE_PORT=8000
```

```
      - ELASTIC_AUTH_METHOD=NO_AUTH
```

```
      - OPENSEARCH_HOST=elasticsearch   
```

```
      - OPENSEARCH_PORT=9200
```

```
      - USER_SSL=False
```

```
      - VERIFY_CERT=False
```

```
      - OSS_TENANT_ID=vdna_994mgmr65tculnfy
```

```
    depends_on:
```

```
      - data-service
```

```
    ports:
```

```
      - "8500:8500"
```

```
    restart: always
```

### **Machine Configuration** <a href="#glosisetup-machineconfiguration" id="glosisetup-machineconfiguration"></a>

All containers can be setup in one single vm or in distributed fashion. If all applications are being setup in one single vm below configuration is recommended.

| **Deployment Type** | **services** | **Ram** | **vCPU** | **DiskSize** |
| ------------------- | ------------ | ------- | -------- | ------------ |
| SingleNode          | data-service | 32GB    | 8        | 300GB        |

### **Data Persistence, Networking, and Volumes :**  <a href="#glosisetup-datapersistence-networking-andvolumes" id="glosisetup-datapersistence-networking-andvolumes"></a>

**Volumes** ensure data inside containers isn’t lost when containers restart or rebuild. For instance, the `elasticsearch_data` volume stores all search and analytics data.&#x20;

Volumes used:&#x20;

·       `elasticsearch_data`: Stores data generated by Elasticsearch post package and vulnerability index data synchronisation

**Networking**&#x20;

Docker Compose automatically creates an internal bridge network. Containers communicate using service names. This abstraction avoids hardcoding IPs and simplifies scaling or relocating services.&#x20;

**Healthchecks** ensure each service is only marked healthy once it responds to a specific URL or command, improving reliability.&#x20;

### **Interactions Between Services** : <a href="#glosisetup-interactionsbetweenservices" id="glosisetup-interactionsbetweenservices"></a>

Here’s how the services communicate:&#x20;

1\.     **Frontend Interaction**&#x20;

The user opens the UI at `http://localhost:3000`. This sends API requests (like search queries) to the orchestration-service at `http://localhost:8500`.&#x20;

2\.     **Orchestration-Service**&#x20;

Validates the request and forwards it to the appropriate backend (usually the data-service).&#x20;

3\.     **Data-Service**&#x20;

Receives requests from orchestration-service. Transforms them into Elasticsearch-compatible queries and sends them to Elasticsearch.&#x20;

4\.     **Elasticsearch**&#x20;

Performs search/indexing operations and returns results to the data-service.&#x20;

5\.     **Response Propagation**&#x20;

The data-service formats Elasticsearch results and returns them to orchestration-service, which may further process or log it.&#x20;

6\.     **Frontend Rendering**&#x20;

The risklensui receives the final result and displays it to the user.&#x20;

The architecture follows this loop:

**UI ➝ Orchestration ➝ Data-service ➝ Elasticsearch ➝ Data-service ➝ Orchestration ➝ UI**&#x20;

Compose ensures services are started in this dependency chain, meaning each service waits for its required backend to be healthy before starting.&#x20;

### **Access URLs**  <a href="#glosisetup-accessurls" id="glosisetup-accessurls"></a>

·       Frontend: [http://](http://localhost:3000/)\<risklens-ui:localhost>:\<risklens-port:3000>  i.e. <http://localhost:3000>

·       Data-Service Swagger Docs: [http://\<data-service:localhost>:\<data-service-port:8000>/docs](http://localhost:8000/docs)  i.e. [http://localhost:](http://localhost:3000)8000/docs

·       Glosi Orchestration Service Swagger Docs: [http://\<glosi-orchestration-service:localhost>:\<glosi-orchestration-service-port:8500>/docs](http://localhost:8000/docs)  i.e. [http://localhost:](http://localhost:3000)8500/docs

### **Maintenance and Troubleshooting** <a href="#glosisetup-maintenanceandtroubleshooting" id="glosisetup-maintenanceandtroubleshooting"></a>

An admin panel is provided to check the status of data index status.

**Maintenance Tips**&#x20;

·       Clean up unused resources:

`docker system prune -a`&#x20;

·       Restart specific service:

`docker-compose restart data-service`

**Troubleshooting**&#x20;

·       Check container status: `docker ps`&#x20;

·       Access container shell: `docker exec -it <container-name> /bin/sh`&#x20;

·       Watch logs for errors.&#x20;


# GLOSI Attributes

### Package Attestation

| **Attribute**                      | **Description**                                                           | **Value**                                                                                                                                                   |
| ---------------------------------- | ------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                               | The name of the software package.                                         | Identify the package in the dashboard and link to vulnerability information.                                                                                |
| Version                            | The version of the software package.                                      | Track different versions and their corresponding vulnerabilities.                                                                                           |
| Description                        | A brief description of the package.                                       | Provide context and understand the package's purpose.                                                                                                       |
| Package Manager                    | The package manager used (e.g., npm, pip, Maven).                         | Categorize packages and tailor vulnerability analysis based on the package manager's ecosystem.                                                             |
| Package Download Location          | The URL or repository from which the package was downloaded.              | Understand the package source and potential supply chain risks.                                                                                             |
| PURL (Package URL)                 | A standardized way to identify a package.                                 | Unambiguous package identification and linking to vulnerability databases.                                                                                  |
| CPES (Common Platform Enumeration) | Standardized identifiers for platforms.                                   | Identify the platform the package is designed for and assess platform-specific vulnerabilities.                                                             |
| Checksum                           | A cryptographic hash of the package.                                      | Verify package integrity.                                                                                                                                   |
| Supplier                           | The organization or individual who supplied the package.                  | Identify the package source and assess supplier risk.                                                                                                       |
| License                            | The license under which the package is distributed.                       | Ensure license compliance and manage legal risks.                                                                                                           |
| Classification                     | Categorization of the package (e.g., OSS, Third Party, Private, Unknown). | Filter and group packages for analysis.                                                                                                                     |
| Package Published Timestamp        | The date and time the package was published.                              | Track package age and identify outdated packages.                                                                                                           |
| Last Scanned Timestamp             | The date and time the package was scanned.                                | "Last Scanned Timestamp" in the New Relic dashboard provides transparency to users, allowing them to understand the freshness of the  data they are seeing. |

### Source Attestation

<table><thead><tr><th width="199"></th><th width="200"></th><th width="274"></th></tr></thead><tbody><tr><td><strong>Attribute</strong></td><td><strong>Description</strong></td><td><strong>Value</strong> </td></tr><tr><td>Name</td><td>The name of the source code repository.</td><td>Identify the source code repository in the dashboard.</td></tr><tr><td>Repo Location</td><td>The URL of the source code repository.</td><td>Access the source code for further analysis.</td></tr><tr><td>Tag</td><td>The tag or branch of the source code.</td><td>Track different versions of the source code.</td></tr><tr><td>First Commit Time</td><td>The timestamp of the first commit for the tag</td><td>Understand the project's history.</td></tr><tr><td>Last Commit Time</td><td>The timestamp of the last commit for the tag</td><td>Assess the project's activity level and maintenance status.</td></tr><tr><td>Number of Commits/Authors</td><td>The number of commits and contributors to the repository.</td><td>Gauge the project's maturity and community involvement.</td></tr><tr><td>Timezones</td><td>The timezones of the contributors.</td><td>Information about the development team's geographical distribution.</td></tr><tr><td>Last Scanned Timestamp </td><td>The date and time the package was scanned.</td><td>"Last Scanned Timestamp" in the New Relic dashboard provides transparency to users, allowing them to understand the freshness of the  data they are seeing.</td></tr></tbody></table>

### Vulnerability Info

| **Attribute**                   | **Description**                                                                | **Value**                                                                                                                                                                                                        |
| ------------------------------- | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Vulnerability ID                | The unique identifier for the vulnerability.                                   | Link to vulnerability databases and detailed information about the CVE.                                                                                                                                          |
| Description                     | A description of the vulnerability.                                            | Understand the nature and impact of the vulnerability.                                                                                                                                                           |
| Severity                        | The severity level of the vulnerability (e.g., Critical, High, Medium, Low).   | Prioritize remediation efforts based on the severity level.                                                                                                                                                      |
| Base Score/CVSS Score           | A numerical score indicating the severity of the vulnerability.                | Quantify the risk and compare vulnerabilities.                                                                                                                                                                   |
| Namespace                       | The namespace of the vulnerability.                                            | Categorize vulnerabilities.                                                                                                                                                                                      |
| Data Source                     | The source of the vulnerability information.                                   | Understand the origin of the vulnerability data and assess its reliability.                                                                                                                                      |
| CVE State                       | The current state of the vulnerability in the codebase (e.g., fixed, unfixed). | Track remediation progress.                                                                                                                                                                                      |
| Fix State                       | The state of the fix (e.g., available, unavailable, work-around).              | Understand the availability of a solution.                                                                                                                                                                       |
| EPSS (Exploitability)           | Likelihood of a vulnerability being exploited.                                 | Prioritize vulnerabilities based on high exploitability. Visual highlighting on the dashboard.                                                                                                                   |
| EPSS (Percentile)               | Percentile ranking of the EPSS score.                                          | Provides context for exploitability. Enables creation of risk categories (high, medium, low).                                                                                                                    |
| Affected Package Version        | Specific package version vulnerable to a CVE.                                  | Accurate identification of vulnerable components. Precise filtering and avoidance of false positives.                                                                                                            |
| Fixed Package Version           | Package version containing the vulnerability fix.                              | Guide remediation efforts. Recommend specific upgrades. Track adoption of fixed versions.                                                                                                                        |
| Exploitable                     | Indicates whether the vulnerability is currently exploitable.                  | Prioritize remediation efforts.                                                                                                                                                                                  |
| Created date                    | Vulnerability created date                                                     | Understand the vulnerability's age and potential exposure window.                                                                                                                                                |
| Updated date                    | Vulnerability updated date                                                     | Track changes and updates to vulnerability information.                                                                                                                                                          |
| Withdrawn date                  | Vulnerability withdrawn date                                                   | Indicates that the vulnerability is no longer valid or relevant.                                                                                                                                                 |
| Origin                          | The source of the vulnerability scan result.                                   | Compare results from different scanners.                                                                                                                                                                         |
| KEV- product                    | Indicates the product that can be exploited                                    | Provides more precise information about the affected software or hardware. S                                                                                                                                     |
| KEV- Required Action            | Any mitigations to apply to minimize the exploitation                          | Provides actionable guidance for remediation.                                                                                                                                                                    |
| KEV - Known Ransomware Campaign | Known ransomware campaign                                                      | Highlights high-risk vulnerabilities that could be used for ransomware attacks. Enables                                                                                                                          |
| KEV - CWEs                      | CWEs used in this exploitability                                               | Provides a standardized way to categorize and understand the underlying weaknesses exploited by the vulnerability. New Relic can use this to track trends in CWE prevalence and identify common security issues. |

### Security Posture

| **Attribute**                                                                           | **Description**                                                                                                         | **Value**                                                                                                               |
| --------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| <p><mark style="color:$info;">Type of security standard being evaluated.</mark><br></p> | <p><mark style="color:$info;">The type of the security check</mark> <br></p>                                            | <mark style="color:$info;">Identify the security standard being evaluated.</mark>                                       |
| Branch Protection                                                                       | Branch Protection:                                                                                                      | Branch Protection: Are the default and release branches protected with GitHub's branch protection settings?             |
| Pinned Dependencies                                                                     | Pinned Dependencies: Has the project declared and pinned its dependencies?                                              | Pinned Dependencies: Has the project declared and pinned its dependencies?                                              |
| Dangerous Workflow                                                                      | Dangerous Workflow: Does the project's GitHub Action workflows avoid dangerous patterns?                                | Dangerous Workflow: Does the project's GitHub Action workflows avoid dangerous patterns?                                |
| Static Application Security Testing (SAST)                                              | Static Application Security Testing (SAST): Does the project use static code analysis?                                  | Static Application Security Testing (SAST): Does the project use static code analysis?                                  |
| Dependency Update                                                                       | Dependency Update Tool: Does the project use a dependency update tool?                                                  | Dependency Update Tool: Does the project use a dependency update tool?                                                  |
| Security Policy:                                                                        | Security Policy: Has the project published a security policy?                                                           | Security Policy: Has the project published a security policy?                                                           |
| Fuzzing                                                                                 | Fuzzing: Does the project use fuzzing in OSS-Fuzz?                                                                      | Fuzzing: Does the project use fuzzing in OSS-Fuzz?                                                                      |
| Token Permissions                                                                       | Token Permissions: Is the project following the principle of least privilege?                                           | Token Permissions: Is the project following the principle of least privilege?                                           |
| Packaging                                                                               | Packaging: Has the project been published as a package that others can easily download, install, update, and uninstall? | Packaging: Has the project been published as a package that others can easily download, install, update, and uninstall? |
| Webhooks                                                                                | Webhooks: Are the webhooks defined in the repository token configured?                                                  | Webhooks: Are the webhooks defined in the repository token configured?                                                  |
| Score                                                                                   | The score for each security check.                                                                                      | Quantify the security posture.                                                                                          |
| Reason                                                                                  | The reason for the score.                                                                                               | Understand the factors contributing to the security posture.                                                            |
| Description                                                                             | A description of the security check.                                                                                    | Provide context and explain the purpose of the check.                                                                   |
| Issue Details                                                                           | Details about any security issues found.                                                                                | Understand the specific security vulnerabilities.                                                                       |

### Code Quality

<table><thead><tr><th width="199"></th><th width="200"></th><th width="274"></th></tr></thead><tbody><tr><td><strong>Attribute</strong></td><td><strong>Description</strong></td><td><strong>Value</strong></td></tr><tr><td>Binary Artifacts</td><td>Has the project generated executable (binary) artifacts in the source repository?</td><td>Binary Artifacts: Has the project generated executable (binary) artifacts in the source repository?</td></tr><tr><td>CII Best Practices</td><td>Does the project have a CII Best Practices badge?</td><td>CII Best Practices: Does the project have a CII Best Practices badge?</td></tr><tr><td>Fuzzing</td><td>Does the project use fuzzing in OSS-Fuzz?</td><td>Fuzzing: Does the project use fuzzing in OSS-Fuzz?</td></tr><tr><td>Pinned Dependencies</td><td>Has the project declared and pinned its dependencies?</td><td>Pinned Dependencies: Has the project declared and pinned its dependencies?</td></tr><tr><td>CI Tests</td><td>Does the project run tests before pull requests are merged?</td><td>CI Tests: Does the project run tests before pull requests are merged?</td></tr><tr><td>Code Review</td><td>: Does the project require a code review before pull/merge requests are assimilated?</td><td>Code Review: Does the project require a code review before pull/merge requests are assimilated?</td></tr><tr><td>Maintained</td><td>Is the project actively maintained?</td><td>Maintained: Is the project actively maintained?</td></tr><tr><td>Score</td><td>The score for the code quality check.</td><td>Quantify the code quality.</td></tr><tr><td>Reason</td><td>The reason for the score.</td><td>Understand the factors contributing to the code quality.</td></tr><tr><td>Description</td><td>A description of the code quality check.</td><td>Provide context and explain the purpose of the check.</td></tr><tr><td>Issue Details</td><td>Details about any code quality issues found.</td><td>Understand the specific code quality problems.</td></tr></tbody></table>

### Embedded Secrets

<table><thead><tr><th width="199"></th><th width="200"></th><th width="274"></th></tr></thead><tbody><tr><td><strong>Attribute</strong></td><td><strong>Description</strong></td><td><strong>Value</strong></td></tr><tr><td>Entropy</td><td>A measure of the randomness of the data.</td><td>Identify potential secrets based on their entropy.</td></tr><tr><td>Rule_ID</td><td>The ID of the rule that detected the secret.</td><td>Categorize secrets.</td></tr><tr><td>Match</td><td>The matched secret.</td><td>Display the detected secret.</td></tr><tr><td>Secret</td><td>The type of secret detected (e.g., API key, password).</td><td>Categorize secrets.</td></tr><tr><td>Fingerprint</td><td>A unique identifier for the secret.</td><td>Track secrets across different codebases.</td></tr></tbody></table>

### Mitre HipCheck

<table><thead><tr><th width="199"></th><th width="200"></th><th width="274"></th></tr></thead><tbody><tr><td><strong>Attribute</strong></td><td><strong>Description</strong></td><td><strong>Value</strong></td></tr><tr><td>Churn Analysis</td><td>Churn analysis attempts to identify the high prevalence of very large commits which may increase the risk of successful malicious contribution</td><td>Helps New Relic identify commits with a high risk of malicious code injection due to their size, allowing for focused review.</td></tr><tr><td>Entropy Analysis</td><td>Entropy analysis attempts to identify commits which contain a high degree of textual randomness which may indicate presence of packed malware</td><td>Flags potentially obfuscated or packed malware within commits based on high entropy, enabling New Relic to prioritize suspicious code for analysis.</td></tr><tr><td>Fuzz Analysis</td><td>This analysis checks if the repo is participating in the OSS Fuzz program</td><td>Shows if a project uses fuzz testing (OSS Fuzz), indicating a greater focus on security and potentially fewer undiscovered vulnerabilities.</td></tr><tr><td>Identity Analysis</td><td>Identity analysis looks at whether the author and committer identities for each commit are the same</td><td>Helps New Relic detect potentially malicious commits where the author and committer identities don't match, suggesting unauthorized modifications.</td></tr><tr><td>Review Analysis</td><td>Review analysis looks at whether pull requests receive at least one review prior to being merged</td><td>Indicates whether code reviews are practiced, a key security practice that reduces the likelihood of vulnerabilities slipping through.</td></tr><tr><td>Typo Analysis</td><td>Typo analysis attempts to identify possible typo squatting attacks</td><td>Helps New Relic detect potential typo squatting attacks, where malicious packages mimic legitimate ones, protecting users from supply chain attacks.</td></tr></tbody></table>

### Source Code Metrics

<table><thead><tr><th width="199"></th><th width="200"></th><th width="274"></th></tr></thead><tbody><tr><td><strong>Attribute</strong></td><td><strong>Description</strong></td><td><strong>Value</strong></td></tr><tr><td>Complexity</td><td>A measure of the code's complexity (e.g., cyclomatic complexity).</td><td>Assess the maintainability and testability of the code.</td></tr><tr><td>Language</td><td>The programming language used.</td><td>Filter and group code by language for analysis.</td></tr><tr><td>LOC (Lines of Code)</td><td>Total lines of code including comments and blank lines.</td><td>Measure the size of the codebase.</td></tr><tr><td>SLOC (Source Lines of Code)</td><td>Lines of code excluding comments and blank lines.</td><td>More accurate measure of code size.</td></tr></tbody></table>

### Dependency Decomposition

<table><thead><tr><th width="199"></th><th width="200"></th><th width="274"></th></tr></thead><tbody><tr><td><strong>Attribute</strong></td><td><strong>Description</strong></td><td><strong>Value</strong></td></tr><tr><td>Depth</td><td>The depth of the dependency tree.</td><td>Understand the complexity of the dependency graph.</td></tr><tr><td>Number of Direct Dependencies</td><td>The number of direct dependencies.</td><td>Manage direct dependencies and their associated risks.</td></tr><tr><td>Number of Transitive Dependencies</td><td>The number of transitive dependencies.</td><td>Understand the full extent of the dependency graph and potential vulnerabilities.</td></tr><tr><td>Dependency Graph</td><td>A visual representation of the dependency tree.</td><td>Analyze dependencies and their relationships.</td></tr></tbody></table>

### EOL

| **Attribute** | **Description**                         | **Value**                                                                |
| ------------- | --------------------------------------- | ------------------------------------------------------------------------ |
| EOL Timestamp | The end-of-life date for the component. | Identify components that are no longer supported and pose a higher risk. |

### Lineaje Reputation

<table><thead><tr><th width="199"></th><th width="200"></th><th width="274"></th></tr></thead><tbody><tr><td><strong>Attribute</strong></td><td><strong>Description</strong></td><td><strong>Value</strong></td></tr><tr><td>Risk Score</td><td>Lineaje Risk Score is a 0-10 score representing the overall risk of an open-source component, calculated using a weighted average of age, vulnerability score, code quality, and security posture.</td><td>New Relic can use risk score to quickly assess component risk: ZIRL (0) is ideal, while CIRL (9-10) indicates critical risk. This allows for prioritizing remediation efforts and visualizing risk across a project's dependencies.</td></tr><tr><td>Attestation Level </td><td>Measure of how much Lineaje trusts a given open-source component.</td><td>LCAL 0: Unknown Component: Lineaje cannot identify the component or verify its provenance. LCAL 1: Known Component: Lineaje can identify the component and its PURL but cannot verify its integrity. LCAL 2: Attested Component: Lineaje has verified the component's integrity and provenance. LCAL 3: Attested Build &#x26; Source: Lineaje has verified both the component's package and its source code, ensuring they match and are built from the declared source. LCAL 4: Fully Attested: Lineaje has performed extensive checks, including malware scanning, to ensure the component is untampered and free of malicious code.</td></tr></tbody></table>

### Geo Provenance

<table><thead><tr><th width="199"></th><th width="200"></th><th width="274"></th></tr></thead><tbody><tr><td><strong>Attribute</strong></td><td><strong>Description</strong></td><td><strong>Value</strong></td></tr><tr><td>Country Code</td><td>The country code where the code was committed.</td><td>Display on a map or allow filtering by country.</td></tr><tr><td>Time zone</td><td>The time zone where the code was committed.</td><td>Correlate with contributor locations.</td></tr><tr><td>Contributor Name</td><td>Full name of the contributor.</td><td>Identify key contributors.</td></tr><tr><td>Contributor Email</td><td>Email address of the contributor.</td><td>Contact information for contributors.</td></tr><tr><td>Contributor User ID</td><td>Unique identifier for the contributor.</td><td>Track contributions across projects.</td></tr><tr><td>Contributor Location</td><td>Location of the contributor.</td><td>Visualize contributor distribution on a map.</td></tr><tr><td>Number of Commits (per contributor)</td><td>Number of commits by each contributor.</td><td>Identify top contributors.</td></tr><tr><td>First Commit (per contributor)</td><td>Timestamp of the first commit by each contributor.</td><td>Track contributor involvement over time.</td></tr><tr><td>Last Commit (per contributor)</td><td>Timestamp of the last commit by each contributor.</td><td>Assess recent activity.</td></tr></tbody></table>


# Gold Images


# Global Lineaje Open Source Intelligence (GLOSI) Deployment Guide

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FJak1mZtlrggQoGQc1dOJ%2FLineaje-Gradient-Logo-(HD).png?alt=media&amp;token=836ab9a4-ffc4-4d4e-95b5-eddffdb0ab50" alt="" width="375"><figcaption></figcaption></figure></div>

*© 2026 Lineaje, Inc. All rights reserved. Proprietary and Confidential.*

**Objective**: This guide helps you deploy GLOSI in your environment using Docker Compose.&#x20;

### What Is GLOSI?&#x20;

GLOSI is an intelligence data platform from Lineaje for open source components and vulnerabilities. It enables customers to look up open source intelligence (Package Attestation, Source Attestation, Vulnerability Info, Security Posture, Code Quality, Embedded Secrets, Mitre HipCheck, Source Code Metrics, Dependency Decomposition, EOL, Lineaje Reputation, and Geo Provenance) within their own environment. GLOSI supports a variety of environments, from cloud to on-premises. It publishes updated intelligence data regularly to keep pace with the latest changes.&#x20;

### How Is GLOSI Deployed On-Premises?&#x20;

GLOSI ships as a container image (tarball) and deploys using Docker Compose.&#x20;

### What Does GLOSI Contain?&#x20;

The GLOSI image bundles open source component data, vulnerability data, and a set of services with a user interface. It includes the following:&#x20;

* **Frontend UI** — React/Next.js application for querying open source components and vulnerabilities&#x20;
* **Data service** — FastAPI API layer providing access to the data&#x20;
* **Orchestration service** — FastAPI application that manages the database&#x20;
* **Elasticsearch 7.17.0 database** — stores the open source component data&#x20;

### How Can I Get Access to GLOSI?&#x20;

The GLOSI image is hosted in the Lineaje registry. Contact Lineaje support at <support@lineaje.com> to request access.&#x20;

### GLOSI Setup&#x20;

#### System Configuration&#x20;

You can deploy all containers on a single VM (Ubuntu or Alpine) or in a distributed configuration. For a single-VM deployment, the following minimum specifications are recommended.&#x20;

| **Deployment Type** | **Services** | **RAM** | **vCPU** | **Disk Size** |
| ------------------- | ------------ | ------- | -------- | ------------- |
| Single Node         | data-service | 32 GB   | 8        | 300 GB        |

#### Prerequisites&#x20;

1. Obtain the installation tarball, which contains the installation guide, API documentation, and a Resources folder with the docker-compose.yaml file.&#x20;
2. Obtain access to the Lineaje Amazon Elastic Container Registry (ECR) that hosts the GLOSI Docker image. If you do not have access, contact Lineaje Support at <support@lineaje.com> with your AWS Account ID. Once Lineaje grants ECR access to your account, proceed to Step 3.&#x20;
3. Install Docker on the host VM.&#x20;
4. Install the AWS CLI on the host VM.&#x20;
5. For automated installation, allowlist the gold.lineaje.com domain on the host VM.&#x20;

### Deployment

{% stepper %}
{% step %}

### Add AWS config

Add the following profile to `~/.aws/config`&#x20;

```ini
[profile LineajeGlosiRole]

role_arn = arn:aws:iam::<Lineaje AWS Account>:role/lineajeGlosiPullRole

credential_source = Ec2InstanceMetadata
```

{% endstep %}

{% step %}

### Login to AWS ECR

Login to AWS ECR using the following command. You can find the GLOSI repository ID in the docker-compose.yaml file under the Resources folder of the tarball.&#x20;

```bash
aws ecr get-login-password --region us-east-1 --profile LineajeGlosiRole | sudo docker login --username AWS --password-stdin <Lineaje AWS Account>.dkr.ecr.us-east-1.amazonaws.com
```

{% endstep %}

{% step %}

### Pull the image

Pull the GLOSI image to your host VM:&#x20;

```bash
docker pull <Lineaje AWS Account>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

{% endstep %}

{% step %}

### Deploy services

Deploy all services using the docker-compose.yaml file. This starts all services on the host VM.&#x20;

```bash
sudo docker compose -f <docker-compose.yaml> up -d
```

{% endstep %}
{% endstepper %}

### Custom Deployment&#x20;

The deployment can be customized using the following configuration files.&#x20;

#### Elasticsearch Configuration&#x20;

To deploy Elasticsearch on a separate VM, expose port 9200 to make it accessible from the data service. The following configuration runs Elasticsearch at the recommended port 9200, which you can change as needed:&#x20;

```yaml
elasticsearch:
  image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
  container_name: elasticsearch
  command: ["/bin/sh", "-c", "/usr/share/elasticsearch/bin/elasticsearch"]
  user: "1001:1001" # Run as UID/GID defined in Dockerfile
  environment:
    - discovery.type=single-node
    - ES_JAVA_OPTS=-Xms512m -Xmx512m
  volumes:
    - elasticsearch_data:/usr/share/elasticsearch/data
  ports:
    - "9200:9200"
  restart: no
  healthcheck:
    test: ["CMD-SHELL", "curl --silent --fail http://elasticsearch:9200/_cluster/health || exit 1"]
    interval: 5s
    retries: 10
    timeout: 3s
```

#### Data Service Configuration&#x20;

The data service is a FastAPI application that connects to Elasticsearch and converts client requests into Elasticsearch queries. It runs on port 8000 by default. The Swagger UI is available at: `http://<data-service:VM_IP>:<port:8000>/docs`&#x20;

```yaml
data-service:
  image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
  container_name: data-service
  working_dir: /app/data-service
  command: ["gunicorn", "main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000", "--timeout", "2", "--graceful-timeout", "15", "--keep-alive", "10"]
  environment:
    - PATH=/app/data-service/venv/bin:$PATH
    - ELASTIC_AUTH_METHOD=NO_AUTH
    - OPENSEARCH_HOST=elasticsearch
    - OPENSEARCH_PORT=9200
    - USER_SSL=False
    - VERIFY_CERT=False
  depends_on:
    elasticsearch:
      condition: service_healthy
  ports:
    - "8000:8000"
  restart: always
```

#### Frontend&#x20;

The frontend is a React/Next.js application that calls backend APIs and displays data in the browser. It runs on port 3000 ([`http://localhost:3000`](http://localhost:3000/)) by default.&#x20;

```yaml
risklensui:
  image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
  container_name: risklensui
  working_dir: /app/risklensui
  command: ["npm", "run", "start"]
  ports:
    - "3000:3000"
  restart: always
```

#### GLOSI Orchestration Service&#x20;

The orchestration service handles workflows, connects UI actions with the data service, and adds logic, routing, and validation. It runs on port 8500 by default. The Swagger UI is available at: `http://<orchestration-service:VM_IP>:<port:8000>/docs`&#x20;

```yaml
orchestration-service:
  image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
  container_name: orchestration-service
  working_dir: /app/glosi-orchestration-service
  command: ["gunicorn", "main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8500", "--timeout", "2", "--graceful-timeout", "15", "--keep-alive", "10"]
  environment:
    - PATH=/app/glosi-orchestration-service/venv/bin:$PATH
    - DATA_SERVICE_HOST=data-service
    - DATA_SERVICE_PORT=8000
    - ELASTIC_AUTH_METHOD=NO_AUTH
    - OPENSEARCH_HOST=elasticsearch
    - OPENSEARCH_PORT=9200
    - USER_SSL=False
    - VERIFY_CERT=False
    - OSS_TENANT_ID=vdna_994mgmr65tculnfy
  depends_on:
    - data-service
  ports:
    - "8500:8500"
  restart: always
```

#### Data Persistence, Networking, and Volumes&#x20;

* **Volumes**&#x20;

Volumes ensure data inside containers persists when containers restart or rebuild. For example, the elasticsearch\_data volume stores all Elasticsearch index data. elasticsearch\_data — stores data generated by Elasticsearch after package and vulnerability index synchronization&#x20;

* **Networking**&#x20;

Docker Compose automatically creates an internal bridge network. Containers communicate using service names, which avoids hardcoding IP addresses and makes scaling or relocating services straightforward. &#x20;

* **Health checks**&#x20;

Health checks ensure each service is only marked healthy once it responds correctly, improving deployment reliability.&#x20;

#### Service Interaction&#x20;

The following describes how the GLOSI services communicate with each other:&#x20;

1. **Frontend** — The user opens the UI at [http://localhost:3000](http://localhost:3000/). The browser sends API requests (such as search queries) to the orchestration service at [http://localhost:8500](http://localhost:8500/).&#x20;
2. **Orchestration service** — Validates the request and forwards it to the appropriate backend service (typically the data service).&#x20;
3. **Data service** — Receives requests from the orchestration service, transforms them into Elasticsearch-compatible queries, and sends them to Elasticsearch.&#x20;
4. **Elasticsearch** — Performs search and indexing operations and returns results to the data service.&#x20;
5. **Response propagation** — The data service formats the Elasticsearch results and returns them to the orchestration service for any additional processing.&#x20;
6. **Frontend rendering** — The UI receives the final result and displays it to the user.&#x20;

The architecture follows this request loop:&#x20;

`UI ➝ Orchestration ➝ Data service ➝ Elasticsearch ➝ Data service ➝ Orchestration ➝ UI`&#x20;

Docker Compose starts services in dependency order, ensuring each service waits for its required dependencies to become healthy before starting.&#x20;

### Access URLs&#x20;

| **Service**                        | **URL**                                         |
| ---------------------------------- | ----------------------------------------------- |
| Frontend                           | [http://localhost:3000](http://localhost:3000/) |
| Data service — Swagger UI          | <http://localhost:8000/docs>                    |
| Orchestration service — Swagger UI | <http://localhost:8500/docs>                    |


# GLOSI API Documentation

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FEdT4zA4GvLflwnxdSfPu%2FLineaje-Gradient-Logo-(HD).png?alt=media&amp;token=a6e6298f-656a-4306-90a5-dbd34fd440fa" alt="" width="375"><figcaption></figcaption></figure></div>

*© 2026 Lineaje, Inc. All rights reserved. Proprietary and Confidential*

## Introduction

This reference describes the GLOSI REST API and Lineaje Query Language (LQL), enabling you to query component, vulnerability, and supply chain data programmatically.

GLOSI data is accessible via a REST endpoint. Lineaje exposes LQL on this endpoint to simplify queries and support advanced analytical use cases. LQL is a flexible query language designed to search and analyze GLOSI data. It provides an intuitive syntax for filtering, aggregating, and visualizing data related to components and vulnerabilities.

### Deployment Models

GLOSI supports two deployment models:

* **Local deployment** — GLOSI is deployed within the customer's own infrastructure. The API endpoint is local to the customer environment.
* **Cloud API** — Lineaje hosts the GLOSI endpoint. No local deployment is required.

## API Endpoint

### Endpoint URLs

Use the endpoint that matches your deployment model:

| Deployment Model     | Endpoint URL                                                                       |
| -------------------- | ---------------------------------------------------------------------------------- |
| **Local deployment** | `http://:8000/api/v2/lql/components`                                               |
| **Lineaje Cloud**    | `https://data-service-v2-apigw.commercialdev.dev.veedna.com/api/v2/lql/components` |

### Request

**Method:** POST

#### Request Headers

| Header       | Required | Description                                                                   |
| ------------ | -------- | ----------------------------------------------------------------------------- |
| accept       | No       | Accepted response media types. Recommended: application/json, text/plain, */* |
| content-type | Yes      | Must be application/json                                                      |
| company-id   | Yes      | Your Lineaje company identifier (for example: vdna\_994mgmr65tculnfy)         |
| product-id   | No       | Product identifier. Use 1 for the default product scope.                      |

#### Request Body Parameters

| Parameter          | Type    | Required | Description                                                                                                                                |
| ------------------ | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| lql                | string  | Yes      | The LQL query string. See LQL Syntax for the full grammar.                                                                                 |
| limit              | integer | No       | Maximum number of results to return per page. Default: 10.                                                                                 |
| page\_no           | integer | No       | Page number for paginated results. Default: 1.                                                                                             |
| is\_opensource     | boolean | No       | When true, restricts results to open-source packages only.                                                                                 |
| include\_raw\_data | boolean | No       | When false, the raw document array in the response is empty. Use false with chart table() to return only function results. Default: false. |

Example request:

```bash
curl -X POST http://<GLOSI-service-endpoint>:8000/api/v2/lql/components \ 
  -H "accept: application/json, text/plain, */*" \ 
  -H "content-type: application/json" \ 
  -H "company-id: <company_id>" \ 
  -H "product-id: 1" \ 
  -d '{ "lql": "your LQL query here", "limit": 10, "page_no": 1, "is_opensource": true, "include_raw_data": false }'
```

### Response

#### Pagination Fields

Every response includes these top-level pagination fields:

| Field         | Description                                 |
| ------------- | ------------------------------------------- |
| total\_hits   | Total number of records matching the query. |
| total\_docs   | Number of records returned on this page.    |
| current\_page | The current page number.                    |
| total\_pages  | Total number of available pages.            |

#### Result Fields

Result data appears under keys named after the query components:

| Key               | Description                                                                                                                     |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| "\<search\_term>" | Array of raw matching documents. Empty when include\_raw\_data is false.                                                        |
| "function: "      | Array of rows produced by the function (for example: chart table()). Present only when a function is included in the LQL query. |
| all\_columns      | All field names available in the result set (returned with chart table()).                                                      |
| default\_columns  | The fields requested in the chart table() call.                                                                                 |

## LQL Syntax

An LQL query consists of up to four components, evaluated left to right and separated by the pipe character (|):

`search_term | function parameters | command(parameters) | clause parameters`

Each query must contain:

* Exactly one search term
* Zero or more functions
* Zero or more commands
* Zero or more clauses

### Search Terms

Search terms are the foundation of any LQL query. They act like a database WHERE clause, defining which records to include. When submitted without any other component, LQL returns the raw matching documents.

Search terms support exact matching, wildcards, ranges, and logical operators:

```
package.name=log4j # Exact match
vulnerability.severity=critical # Field equals a specific value
project.created>=2025-06-21 # Greater than or equal comparison
vulnerability.name=CVE-2021-* # Wildcard matching
field1=value1 $OR field2=value2 # Logical OR across fields
```

### Functions

Use functions to perform calculations or transformations on your data, producing aggregate results rather than individual records. Functions are useful for data analysis and visualization:

```
stats count(package.name) # Count total package names
stats unique_count(package.name) # Count distinct package names
stats avg(irl.irl_score) # Calculate average IRL score
chart table(field1, field2) # Format results as a table
```

### Commands

Commands modify how search results are processed or presented. They transform the result set without changing which records are included. Apply commands using the pipe (|) symbol:

```
sort(field:asc) # Sort results ascending
collapse(field) # Group by field; return the top document per group
collapse_latest(field) # Group by field; return the latest document per group
boost(field1:3.0) # Increase relevance score for matches in a field
```

Commands are processed left to right, each operating on the output of the previous one.

### Clauses

Clauses extend function capabilities by specifying how results are grouped or filtered. The most common clause is by, which groups function results:

```
stats unique_count(project.name) by vulnerability.severity
chart table(field1, field2) by group_field
```

Clauses support nested aggregations for hierarchical grouping:

```
stats count(project.name) by (package.name, project.organisation)
```

### Evaluation Order

LQL queries are evaluated strictly from left to right. Think of each component as building on the previous one:

{% stepper %}
{% step %}

### The first search term

The first search term creates the initial result set.
{% endstep %}

{% step %}

### Additional terms

Each additional term narrows the results ($AND) or expands them ($OR).
{% endstep %}

{% step %}

### Functions, commands, and clauses

Functions, commands, and clauses then transform that result set in sequence.
{% endstep %}
{% endstepper %}

Logical operators work at two levels:

* Between different fields: connect complete search conditions (for example, field1=value $AND field2=value).
* Within the same field: connect multiple values for one field (for example, field=value1 $OR value2).

Example showing operator precedence:

```
package.gos_type=gold $OR premium $AND package.name=abc $AND def # Reads as:
# packages where (gos_type = gold OR premium)
# AND (name contains both abc AND def)
```

### Querying by Data Type

Start your search term with the appropriate prefix for the data type you want to query:

| Data type             | Prefix and example                                         |
| --------------------- | ---------------------------------------------------------- |
| Packages / components | package.= example: package.name=log4j\*                    |
| Vulnerabilities       | vulnerability.= example: vulnerability.name=CVE-1234\*     |
| Code quality issues   | code\_quality.= example: code\_quality.name=EOL            |
| Security posture      | security\_posture.= example: security\_posture.severity=\* |
| Commits               | commits.= example: commits.country\_code=\*                |

## Search Examples — Raw Data

The following examples use a search term only. The response contains all document fields. Set include\_raw\_data to true (or omit include\_raw\_data) to receive full document bodies.

### Search for a Package by Name

Returns all log4j packages with their full field set.

```bash
curl -X POST http://<GLOSI-service-endpoint>:8000/api/v2/lql/components \ 
  -H "content-type: application/json" \ 
  -H "company-id: vdna_994mgmr65tculnfy" \ 
  -d '{"lql": "package.name=log4j*", "limit": 1}'
```

Response (abbreviated):

```json
{
  "package.name=log4j*": [
    {
      "package": {
        "id": "SPDX-PACKAGE-73c8c5b8-ecd9-5f9d-ad77-ed65811ed455",
        "name": "log4j:log4j:1.2.17",
        "version": "1.2.17",
        "file_name": "log4j:log4j:1.2.17.jar",
        "friendly_name": "log4j:1.2.17",
        "pkg_manager": "maven",
        "last_modified": "2012-05-26T09:43:00.000Z",
        "purl": "pkg:maven/log4j/log4j@1.2.17",
        "supplier": "The Apache Software Foundation",
        "supplier_info": {
          "name": "The Apache Software Foundation",
          "is_verified": true
        },
        "total_vulnerability_count": 5,
        "total_fixed_vulnerability_count": 0
      }
    }
  ],
  "total_hits": 14126,
  "total_docs": 1,
  "current_page": 1,
  "total_pages": 14126
}
```

### Search for a Specific Vulnerability

Returns all packages affected by CVE-2021-23406.

```bash
curl -X POST http://<GLOSI-service-endpoint>:8000/api/v2/lql/components \ 
  -H "content-type: application/json" \ 
  -H "company-id: vdna_994mgmr65tculnfy" \ 
  -d '{"lql": "vulnerability.name=CVE-2021-23406", "limit": 1}'
```

Response (abbreviated):

```json
{
  "vulnerability.name=CVE-2021-23406": [
    {
      "package": {
        "name": "npm:pac-resolver:4.2.0",
        "version": "4.2.0"
      },
      "vulnerability": [
        {
          "name": "CVE-2021-23406",
          "severity": "High",
          "base_score": 9.8,
          "fix_state": "fixed",
          "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "is_exploited": false
        }
      ]
    }
  ]
}
```

## Search Examples — Specific Fields

Use the chart table() function to specify exactly which fields to return. When include\_raw\_data is false, the raw document array is empty and results appear under the "function: chart table(...)" key.

### All Versions of log4j

```bash
curl -X POST http://<GLOSI-service-endpoint>:8000/api/v2/lql/components \ 
  -H "accept: application/json, text/plain, */*" \ 
  -H "content-type: application/json" \ 
  -H "company-id: <company_id>" \ 
  -H "product-id: 1" \ 
  -d '{ "lql": "package.name=log4j* | chart table(package.id, package.name, package.version)", "page_no": 1, "limit": 3, "is_opensource": true, "include_raw_data": false }'
```

Response:

```json
{
  "package.name=log4j*": [],
  "function: chart table(package.id, package.name, package.version)": [
    {"package.id": "SPDX-PACKAGE-1aa...", "package.name": "log4j:log4j:1.2.17", "package.version": "1.2.17"},
    {"package.id": "SPDX-PACKAGE-850...", "package.name": "log4j:log4j:1.2.17", "package.version": "1.2.17"},
    ...
  ],
  "total_hits": 36,
  "total_docs": 3,
  "current_page": 1,
  "total_pages": 12,
  "all_columns": ["package.id", "package.name", "package.version", ...],
  "default_columns": ["package.id", "package.name", "package.version"]
}
```

### Versions of log4j with Vulnerabilities

```bash
curl -X POST http://<GLOSI-service-endpoint>:8000/api/v2/lql/components \ 
  -H "accept: application/json, text/plain, */*" \ 
  -H "content-type: application/json" \ 
  -H "company-id: <company_id>" \ 
  -H "product-id: 1" \ 
  -d '{ "lql": "package.name=log4j* $AND vulnerability.severity=* | chart table(vulnerability.name, vulnerability.severity, package.id, package.name, package.version)", "page_no": 1, "limit": 3, "is_opensource": true, "include_raw_data": false }'
```

Response (abbreviated):

```json
{
  "total_hits": 45,
  "total_docs": 3,
  "current_page": 1,
  "total_pages": 15,
  "function: chart table(vulnerability.name, vulnerability.severity, ...)": [
    {
      "vulnerability.name": "CVE-2019-17571",
      "vulnerability.severity": "Critical",
      "package.name": "log4j:log4j:1.2.17",
      "package.version": "1.2.17"
    },
    ...
  ]
}
```

### Critical Vulnerabilities in a Date Range

Returns log4j packages with critical vulnerabilities created between 1 June 2025 01:00 and 30 June 2025 14:00, sorted by package name.

```bash
curl -X POST http://<GLOSI-service-endpoint>:8000/api/v2/lql/components \ 
  -H "accept: application/json, text/plain, */*" \ 
  -H "content-type: application/json" \ 
  -H "company-id: <company_id>" \ 
  -H "product-id: 1" \ 
  -d '{ "lql": "package.name=log4j* $AND vulnerability.severity=critical $AND package.created>=2025-06-01 01:00:00 $AND <=2025-06-30 14:00:00 | chart table(vulnerability.name, vulnerability.severity, package.id, package.name, package.version) | sort(package.name:asc)", "page_no": 1, "limit": 3, "is_opensource": true, "include_raw_data": false }'
```

### Critical Vulnerabilities from a Verified Supplier (Last 120 Days)

Returns log4j packages with critical vulnerabilities, created within the last 120 days, from a verified supplier, sorted by vulnerability name.

```bash
curl -X POST http://<GLOSI-service-endpoint>:8000/api/v2/lql/components \ 
  -H "accept: application/json, text/plain, */*" \ 
  -H "content-type: application/json" \ 
  -H "company-id: <company_id>" \ 
  -H "product-id: 1" \ 
  -d '{ "lql": "package.name=log4j* $AND vulnerability.severity=critical $AND package.created<=120 days $AND supplier.is_verified=true | chart table(vulnerability.name, vulnerability.severity, package.id, package.name, package.version) | sort(vulnerability.name:asc)", "page_no": 1, "limit": 3, "is_opensource": true, "include_raw_data": false }'
```

## LQL Quick Reference

### Search Term Operators

| Syntax                  | Description and Example                                                        |
| ----------------------- | ------------------------------------------------------------------------------ |
| field=value             | Exact match. example: vulnerability.severity=critical                          |
| field=value\*           | Starts with. example: vulnerability.name=CVE-28\*                              |
| field=*value*           | Contains. example: vulnerability.name=*VE-28*                                  |
| field=\*                | Any value (field exists). example: vulnerability.severity=\*                   |
| field!=value            | Not equal. example: vulnerability.is\_exploited!=true                          |
| field>value             | Greater than. example: risk\_level.score > 9                                   |
| field>=value            | Greater than or equal. example: project.created >= 2025-06-24                  |
| field\<value            | Less than. example: risk\_level.score < 9                                      |
| field<=value            | Less than or equal. example: project.created <= 2025-06-24                     |
| field=value with spaces | Exact match including spaces. example: project.name=Apache Software Foundation |

### Logical Operators

| Syntax                           | Description                     |
| -------------------------------- | ------------------------------- |
| field1=value1 $AND field2=value2 | Both conditions must match.     |
| field1=value1 $OR field2=value2  | Either condition must match.    |
| field=value1 $AND value2         | Field equals value1 AND value2. |
| field=value1 $OR value2          | Field equals value1 OR value2.  |

### Functions

| Syntax                              | Description                                      |
| ----------------------------------- | ------------------------------------------------ |
| \| stats avg(field, ...)            | Average value of the field.                      |
| \| stats count(field, ...)          | Count occurrences of the field.                  |
| \| stats max(field, ...)            | Maximum value of the field.                      |
| \| stats min(field, ...)            | Minimum value of the field.                      |
| \| stats sum(field, ...)            | Sum of the field values.                         |
| \| stats unique(field, ...)         | Unique values of the field.                      |
| \| stats unique\_values(field, ...) | Unique values of the field (alias).              |
| \| stats unique\_count(field, ...)  | Count of distinct values.                        |
| \| stats top\_hits(N)               | Top N hits for the search term results.          |
| \| chart table(field, ...)          | Format results as a table with specified fields. |
| \| chart table\_fold(field, ...)    | Format results as a folded table.                |
| \| chart histogram(field, ...)      | Create a histogram of field values.              |

### Commands

| Syntax                                 | Description and Example                                                                                       |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| \| sort(field:asc)                     | Sort ascending. example: \| sort(project.name:asc)                                                            |
| \| sort(field:desc)                    | Sort descending. example: \| sort(project.name:desc)                                                          |
| \| sort(field1:asc, field2:desc)       | Sort by multiple fields. example: \| sort(project.name:asc, package.name:asc)                                 |
| \| collapse(field)                     | Group by field; return top document per group. example: \| collapse(package.purl)                             |
| \| collapse\_latest(field)             | Group by field; return latest document per group. example: \| collapse\_latest(package.purl)                  |
| \| boost(field1:2.0, field2:1.5)       | Boost relevance score for specific fields.                                                                    |
| \| histogram\_interval(field:interval) | Set histogram interval for date fields. example: \| histogram\_interval(field1:day, field2:month, field3:100) |

### Clauses

Append a by clause to any stats or chart function to group results:

| Syntax                                           | Description                                        |
| ------------------------------------------------ | -------------------------------------------------- |
| \| stats count(field) by (group\_field)          | Count field values, grouped by group\_field.       |
| \| stats avg(field) by (group\_field)            | Average field values, grouped by group\_field.     |
| \| stats max(field) by (group\_field)            | Maximum field values, grouped by group\_field.     |
| \| stats min(field) by (group\_field)            | Minimum field values, grouped by group\_field.     |
| \| stats sum(field) by (group\_field)            | Sum field values, grouped by group\_field.         |
| \| stats unique(field) by (group\_field)         | Unique field values, grouped by group\_field.      |
| \| stats unique\_count(field) by (group\_field)  | Count of distinct values, grouped by group\_field. |
| \| stats unique\_values(field) by (group\_field) | Unique values, grouped by group\_field.            |
| \| chart table(field) by (group\_field)          | Table of field values, grouped by group\_field.    |
| \| chart table\_fold(field) by (group\_field)    | Folded table, grouped by group\_field.             |
| \| chart histogram(field) by (group\_field)      | Histogram, grouped by group\_field.                |

## Best Practices

* Be as specific as possible with search terms to improve query performance.
* For complex aggregations, consider splitting into multiple focused queries.
* When searching for exact matches, avoid wildcards.
* For time-based queries, use ISO date format (YYYY-MM-DD) for precision.
* Use chart table() with a limited set of fields to reduce response size and improve readability.

## LQL Field Glossary

The following tables list the queryable fields for each entity type. Use these field names in LQL search terms and functions.

### Package

| Field                                      | Description                                      |
| ------------------------------------------ | ------------------------------------------------ |
| package.purl                               | Package URL (purl).                              |
| package.name                               | Package name.                                    |
| package.version                            | Package version.                                 |
| package.pkg\_manager                       | Package manager (for example: maven, npm).       |
| package.download\_loc                      | Package download location.                       |
| package.checksum.md5                       | MD5 checksum.                                    |
| package.checksum.sha1                      | SHA-1 checksum.                                  |
| package.checksum.sha256                    | SHA-256 checksum.                                |
| package.checksum.sha512                    | SHA-512 checksum.                                |
| package.description                        | Package description.                             |
| package.last\_modified                     | Date the package was last modified.              |
| package.license                            | Package license.                                 |
| package.license.url                        | License URL.                                     |
| package.license.version                    | License version.                                 |
| package.license.full\_name                 | Full license name.                               |
| package.license.short\_id                  | License SPDX short identifier.                   |
| package.license.is\_opensource             | Whether the license is open source.              |
| package.supplier                           | Package supplier name.                           |
| package.supplier\_info.name                | Supplier name.                                   |
| package.supplier\_info.org                 | Supplier organization.                           |
| package.supplier\_info.home\_page          | Supplier home page URL.                          |
| package.supplier\_info.is\_verified        | Whether the supplier is verified.                |
| package.total\_vulnerability\_count        | Total number of vulnerabilities.                 |
| package.total\_fixed\_vulnerability\_count | Number of fixed vulnerabilities.                 |
| package.category                           | Package category.                                |
| package.classification                     | Package classification.                          |
| package.cpes                               | Common Platform Enumeration (CPE) entries.       |
| package.file\_name                         | Package file name.                               |
| package.files\_analysed                    | Whether package files were analyzed.             |
| package.friendly\_name                     | Human-readable package name.                     |
| package.id                                 | Package identifier.                              |
| package.license\_category                  | License category.                                |
| package.license\_name                      | License name.                                    |
| package.scope                              | Package scope (for example: required, optional). |
| package.src\_info                          | Source information.                              |
| package.vuln\_fixed\_info.major.count      | Count of major-version fixes available.          |
| package.vuln\_fixed\_info.major.version    | Major version that fixes the vulnerability.      |
| package.vuln\_fixed\_info.minor.count      | Count of minor-version fixes available.          |
| package.vuln\_fixed\_info.minor.version    | Minor version that fixes the vulnerability.      |
| package.vuln\_fixed\_info.patch.count      | Count of patch-version fixes available.          |
| package.vuln\_fixed\_info.patch.version    | Patch version that fixes the vulnerability.      |
| package.vuln\_fixed\_info.upgrade.count    | Count of upgrade-version fixes available.        |
| package.vuln\_fixed\_info.upgrade.version  | Upgrade version that fixes the vulnerability.    |

### Image

| Field                       | Description               |
| --------------------------- | ------------------------- |
| image.name                  | Image name.               |
| image.version               | Image version.            |
| image.os                    | Operating system.         |
| image.tags                  | Image tags.               |
| image.manifest              | Image manifest.           |
| image.owner                 | Image owner.              |
| image.size                  | Image size.               |
| image.architecture          | Image architecture.       |
| image.repo\_checksum        | Repository checksum.      |
| image.layer.checksum.sha256 | Layer SHA-256 checksum.   |
| image.layer.size            | Layer size.               |
| image.download\_loc         | Download location.        |
| image.config                | Image configuration.      |
| image.desc                  | Image description.        |
| image.docker\_version       | Docker version.           |
| image.file\_name            | Image file name.          |
| image.image\_created        | Image creation timestamp. |

### Vulnerability

| Field                               | Description                                                      |
| ----------------------------------- | ---------------------------------------------------------------- |
| vulnerability.name                  | Vulnerability identifier (for example: CVE-2025-1234, GHSA-xxx). |
| vulnerability.score                 | Vulnerability score.                                             |
| vulnerability.severity              | Severity level: Critical, High, Medium, Low, or Unknown.         |
| vulnerability.base\_score           | CVSS base score.                                                 |
| vulnerability.name\_space           | Vulnerability namespace (for example: NVD, Ubuntu).              |
| vulnerability.description           | Vulnerability description.                                       |
| vulnerability.vector                | CVSS vector string.                                              |
| vulnerability.vuln\_created         | Date the vulnerability was first disclosed publicly.             |
| vulnerability.vuln\_modified        | Date the vulnerability record was last modified.                 |
| vulnerability.vuln\_withdrawn       | Date the vulnerability was withdrawn.                            |
| vulnerability.fix\_state            | Fix state (for example: fixed, not-fixed).                       |
| vulnerability.fix\_versions         | Versions that include a fix.                                     |
| vulnerability.impact\_score         | CVSS impact score.                                               |
| vulnerability.exploitability\_score | CVSS exploitability score.                                       |
| vulnerability.is\_exploited         | Whether the vulnerability is actively exploited.                 |
| vulnerability.affected\_versions    | Affected package versions.                                       |
| vulnerability.category              | Vulnerability category.                                          |
| vulnerability.collector             | Data collector.                                                  |
| vulnerability.data\_source          | Source URL for the vulnerability data.                           |
| vulnerability.origin                | Origin of the vulnerability record.                              |
| vulnerability.package\_purl         | PURL of the affected package.                                    |
| vulnerability.package.name          | Name of the affected package.                                    |
| vulnerability.package.version       | Version of the affected package.                                 |
| vulnerability.package.pkg\_manager  | Package manager of the affected package.                         |
| vulnerability.mitigated.status      | Mitigation status.                                               |
| vulnerability.target                | Vulnerability target (PURL).                                     |

### Attestation

| Field                   | Description                                                                    |
| ----------------------- | ------------------------------------------------------------------------------ |
| attestation\_level.lcal | Attestation level score (integer 0–4, corresponding to LCAL-0 through LCAL-4). |

### Risk Score

| Field                | Description                                                                 |
| -------------------- | --------------------------------------------------------------------------- |
| risk\_level.score    | Risk level score (float 0.0–10.0). Maps to IRLC, IRLH, IRLM, IRLL, or ZIRL. |
| risk\_level.severity | Risk level severity label.                                                  |

### Security Posture

| Field                                  | Description                                                                                                                                                                                       |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| security\_posture.name                 | Check name. Values: Branch-Protection, Pinned-Dependencies, Dangerous-Workflow, SAST, Dependency-Update-Tool, Security-Policy, Fuzzing, Token-Permissions, Packaging, Webhooks, Embedded Secrets. |
| security\_posture.score                | Check score.                                                                                                                                                                                      |
| security\_posture.severity             | Check severity.                                                                                                                                                                                   |
| security\_posture.reason               | Reason for the score.                                                                                                                                                                             |
| security\_posture.desc                 | Check description.                                                                                                                                                                                |
| security\_posture.entropy              | Entropy measurement.                                                                                                                                                                              |
| security\_posture.author               | Check author.                                                                                                                                                                                     |
| security\_posture.commit               | Associated commit.                                                                                                                                                                                |
| security\_posture.complexity           | Complexity score.                                                                                                                                                                                 |
| security\_posture.created              | Check creation date.                                                                                                                                                                              |
| security\_posture.documentation\_url   | Documentation URL for the check.                                                                                                                                                                  |
| security\_posture.fingerprint          | Fingerprint.                                                                                                                                                                                      |
| security\_posture.language             | Programming language.                                                                                                                                                                             |
| security\_posture.origin               | Origin of the check.                                                                                                                                                                              |
| security\_posture.rule\_id             | Rule identifier.                                                                                                                                                                                  |
| security\_posture.source\_code.name    | Source code repository name.                                                                                                                                                                      |
| security\_posture.source\_code.version | Source code version.                                                                                                                                                                              |
| security\_posture.source\_link         | Source link URL.                                                                                                                                                                                  |

### Code Quality

| Field                              | Description                                                                                                                       |
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| code\_quality.name                 | Check name. Values: Embedded Secrets, Binary-Artifacts, CII-Best-Practices, Fuzzing, Gitleaks, CI-Tests, Code-Review, Maintained. |
| code\_quality.score                | Check score.                                                                                                                      |
| code\_quality.severity             | Check severity.                                                                                                                   |
| code\_quality.reason               | Reason for the score.                                                                                                             |
| code\_quality.desc                 | Check description.                                                                                                                |
| code\_quality.author               | Check author.                                                                                                                     |
| code\_quality.checksum.md5         | MD5 checksum.                                                                                                                     |
| code\_quality.checksum.sha1        | SHA-1 checksum.                                                                                                                   |
| code\_quality.checksum.sha256      | SHA-256 checksum.                                                                                                                 |
| code\_quality.commit               | Associated commit name.                                                                                                           |
| code\_quality.complexity           | Complexity score.                                                                                                                 |
| code\_quality.created              | Check creation date.                                                                                                              |
| code\_quality.documentation\_url   | Documentation URL.                                                                                                                |
| code\_quality.entropy              | Entropy measurement.                                                                                                              |
| code\_quality.fingerprint          | Fingerprint.                                                                                                                      |
| code\_quality.language             | Programming language.                                                                                                             |
| code\_quality.origin               | Origin of the check.                                                                                                              |
| code\_quality.rule\_id             | Rule identifier.                                                                                                                  |
| code\_quality.source\_code.name    | Source code repository name.                                                                                                      |
| code\_quality.source\_code.version | Source code version.                                                                                                              |
| code\_quality.source\_link         | Source link URL.                                                                                                                  |

### Source Code

| Field                                 | Description                                           |
| ------------------------------------- | ----------------------------------------------------- |
| source\_code.loc                      | Repository URL (for example: <https://github.com//>). |
| source\_code.version                  | Source code version.                                  |
| source\_code.tag                      | Tag or branch name.                                   |
| source\_code.code\_quality\_score     | Code quality score.                                   |
| source\_code.contributors\_count      | Number of contributors.                               |
| source\_code.total\_commits           | Total number of commits.                              |
| source\_code.first\_commit            | Date of the first commit.                             |
| source\_code.last\_commit             | Date of the most recent commit.                       |
| source\_code.is\_opensource           | Whether the repository is open source.                |
| source\_code.direct\_dep\_count       | Count of direct dependencies.                         |
| source\_code.transitive\_dep\_count   | Count of transitive dependencies.                     |
| source\_code.friendly\_name           | Human-readable name.                                  |
| source\_code.id                       | Source code identifier.                               |
| source\_code.is\_suspicious\_activity | Whether suspicious activity has been detected.        |
| source\_code.languages                | Programming languages used.                           |
| source\_code.latest\_version          | Latest available version.                             |
| source\_code.latest\_version\_date    | Date of the latest version.                           |
| source\_code.name                     | Repository name.                                      |
| source\_code.score                    | Overall score.                                        |
| source\_code.security\_posture\_score | Security posture score.                               |
| source\_code.src\_code\_created       | Repository creation date.                             |
| source\_code.url                      | Repository URL.                                       |

### Provenance

| Field                                 | Description                                       |
| ------------------------------------- | ------------------------------------------------- |
| provenance.country.code               | Country code for the contributor.                 |
| provenance.timezone                   | Contributor timezone.                             |
| provenance.contributor\_commit\_count | Number of commits by this contributor.            |
| provenance.contributor\_link          | Link to the contributor profile.                  |
| provenance.contributor.commits        | Contributor commits.                              |
| provenance.contributor.email          | Contributor email.                                |
| provenance.contributor.is\_suspicious | Whether the contributor is flagged as suspicious. |
| provenance.contributor.name           | Contributor name.                                 |
| provenance.count                      | Total contributor count.                          |
| provenance.country\_code              | Country code (alias).                             |

### Contributor / Commits

| Field                              | Description                                       |
| ---------------------------------- | ------------------------------------------------- |
| contributor.name                   | Contributor name.                                 |
| contributor.email                  | Contributor email.                                |
| contributor.id                     | Contributor identifier.                           |
| contributor.commits                | Number of commits.                                |
| contributor.is\_suspicious         | Whether the contributor is flagged as suspicious. |
| contributor.link                   | Contributor profile link.                         |
| commits.commit                     | Commit name.                                      |
| commits.contributor\_commit\_count | Number of commits by the contributor.             |
| commits.contributor\_email         | Contributor email.                                |
| commits.contributor\_link          | Contributor profile link.                         |
| commits.contributor.country.code   | Contributor country code.                         |
| commits.contributor.is\_suspicious | Whether the contributor is flagged as suspicious. |
| commits.contributor.name           | Contributor name.                                 |
| commits.count                      | Total commit count.                               |
| commits.country\_code              | Country code associated with the commits.         |
| commits.timezone                   | Timezone associated with the commits.             |

### License

| Field                     | Description                                    |
| ------------------------- | ---------------------------------------------- |
| license.url               | License URL.                                   |
| license.category          | License category.                              |
| license.fullname          | Full license name.                             |
| license.is\_deprecated    | Whether the license identifier is deprecated.  |
| license.is\_opensource    | Whether the license is an open-source license. |
| license.is\_osi\_approved | Whether the license is OSI-approved.           |
| license.license\_id       | License identifier.                            |
| license.name              | License name.                                  |
| license.full\_name        | Full license name (alias).                     |
| license.short\_id         | SPDX short license identifier.                 |
| license.version           | License version.                               |
| license.details\_url      | License details URL.                           |
| license.references        | License reference links.                       |

### Supplier

| Field                 | Description                                   |
| --------------------- | --------------------------------------------- |
| supplier.name         | Supplier name.                                |
| supplier.is\_verified | Whether the supplier is verified.             |
| supplier.organisation | Supplier organization.                        |
| supplier.verified     | Verification status (alias for is\_verified). |
| supplier\_info.name   | Supplier info name.                           |


# GoldClaw


# GLOSI API Documentation

<div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FEdT4zA4GvLflwnxdSfPu%2FLineaje-Gradient-Logo-(HD).png?alt=media&amp;token=a6e6298f-656a-4306-90a5-dbd34fd440fa" alt="" width="375"><figcaption></figcaption></figure></div>

*© 2026 Lineaje, Inc. All rights reserved. Proprietary and Confidential.*

## Introduction

This reference describes the GLOSI REST API and Lineaje Query Language (LQL), enabling you to query component, vulnerability, and supply chain data programmatically.

GLOSI data is accessible via a REST endpoint. Lineaje exposes LQL on this endpoint to simplify queries and support advanced analytical use cases. LQL is a flexible query language designed to search and analyze GLOSI data. It provides an intuitive syntax for filtering, aggregating, and visualizing data related to components and vulnerabilities.

### Deployment Models

GLOSI supports two deployment models:

* **Local deployment** — GLOSI is deployed within the customer's own infrastructure. The API endpoint is local to the customer environment.
* **Cloud API** — Lineaje hosts the GLOSI endpoint. No local deployment is required.

## API Endpoint

### Endpoint URLs

Use the endpoint that matches your deployment model:

| Deployment Model       | Endpoint URL                                                                                                                                       |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Local deployment**   | GLOSI endpoint will be local to the customer                                                                                                       |
| Lineaje GLOSI endpoint | [`https://data-service-v2-apigw.v2.prod.veedna.com/api/v2/lql/components`](https://data-service-v2-apigw.v2.prod.veedna.com/api/v2/lql/components) |

```bash
curl --location 'http://<GLOSI service_endpoint>:8000/api/v2/lql/components' \
--header 'accept: application/json, text/plain, */*' \
--header 'content-type: application/json' \
--header 'company-id: <company_id>' \
--header 'product-id: 1' \
--data '{
"lql": "your LQL query here",
"limit": 10, // Total items in the response
"page_no": 1 // Page No
"is_opensource":true
"include_raw_data": false
}'
```

## LQL Syntax

An LQL query consists of up to four components, evaluated left to right and separated by the pipe character (|):

`search_term | function parameters | command(parameters) | clause parameters`

LQL queries can contain:

* Only one search term
* one or more functions
* one or more commands
* one or more clause

{% stepper %}
{% step %}

#### Search Terms

Search Terms are the foundation of any LQL query, allowing you to filter data based on specific criteria. They work like a database WHERE clause, defining which records should be included in your results. Search terms return raw data that matches your specified conditions.

Search terms support exact matching, wildcards, ranges, and logical operators, giving you precise control over your data filtering:

* `package.name=log4j` # Exact match
* `vulnerability.severity=critical` # Field equals specific value
* `project.created>=2025-06-21` # Greater than or equal comparison
* `vulnerability.name=CVE-2021-*` # Wildcard matching
* `field1=value1 $OR field2=value2` # Logical grouping

When you submit a search term without any other components, LQL returns the raw matching documents, making it easy to explore your data before applying more complex operations.
{% endstep %}

{% step %}

#### Functions

Functions perform calculations or transformations on your data, generating aggregate results rather than returning individual records. They're powerful tools for data analysis and visualization.

Functions typically operate on fields and can be combined with clauses for grouping:

* `| stats count(package.name)` # Count total number of package names
* `| stats unique_count(package.name)` # Count distinct number of package names (uses cardinality aggregation)
* `| stats avg(irl.irl_score)` # Calculate average IRL score
* `| chart table(field1, field2)` # Format results as a table with specified columns

Functions like stats and chart transform raw data into meaningful summaries, helping you extract insights from large datasets efficiently.
{% endstep %}

{% step %}

#### Commands

Commands are actions that modify how your search results are processed or presented. They transform the result set without changing which records are included.

Commands in LQL are inspired by Splunk's SPL and are applied using the pipe (`|`) symbol:

* `| sort(field:asc)` # Sort results by field in ascending order
* `| collapse(field)` # Group results by field, showing only top document per group
* `| collapse_latest(field)` # Group by field, showing latest document per group
* `| boost(field1:3.0, field2:1.5)` # Increase relevance of matches in specific fields

Commands are processed left to right, each operating on the output of the previous one, allowing you to build complex data processing pipelines.
{% endstep %}

{% step %}

#### Clauses

Clauses modify how functions operate by specifying grouping, filtering, or naming operations. They extend function capabilities by defining how results should be organized or filtered.

The most common clause is the **by** clause, which groups function results:

* `| stats unique_count(project.name) by vulnerability.severity` # Get distinct project counts by vulnerability severity
* `| chart table(field1, field2) by group_field` # Create table grouped by a field

Clauses support nested aggregations, allowing for hierarchical grouping with multiple fields:

* `| stats count(project.name) by (package.name, project.organisation)` # Creates nested grouping structure

This hierarchical structure is implemented through nested OpenSearch aggregations, with each level corresponding to one of the specified fields.
{% endstep %}
{% endstepper %}

## How to Use LQL

If you are looking for:

* packages(components): start your LQL with `package.<something>=<value>` eg:
  * `package.name=log4j*` # All names starting from log4j
  * `package.category=tp $OR oss` # All packages whose category is either third party or OSS
* vulnerabilities: start your LQL with `vulnerability.<something>=<value>` eg:
  * `vulnerability.name=CVE-1234*` # All names starting from CVE-1234
  * `vulnerability.severity=*` # All severities
* code\_quality issues: start your LQL with `code_quality.<something>=<value>` eg:
  * `code_quality.name=EOL`
  * `code_quality.severity=*`
* security\_posture: start your LQL with `security_posture.<something>=<value>` eg:
  * `security_posture.name=EOL`
  * `security_posture.severity=*`
* commits: start your LQL with `commits.<something>=<value>` eg:
  * `commits.country_code=*` # Commits from all countries
  * `commits.contributor_commit_count > 10` # Commits data where contributors made more than 10 commits

### Search Examples with All Fields (Raw Data)

The following examples use search term only and query the data. The data returned is the raw data and includes all fields.

#### Search for a Package by Name

Returns all log4j packages with their full field set.

```bash
curl -X POST http://<GLOSI service-endpoint or IP-address>:8000/api/v2/lql/components \
-H "Content-Type: application/json" \
-H "company_id: vdna_994mgmr65tculnfy" \
-d '{
"lql": "package.name=log4j*",
"limit": 1
}'
```

Response (abbreviated):

```json
{
  "package.name=log4j*": [
    {
      "package": {
        "id": "SPDX-PACKAGE-73c8c5b8-ecd9-5f9d-ad77-ed65811ed455",
        "name": "log4j:log4j:1.2.17",
        "version": "1.2.17",
        "file_name": "log4j:log4j:1.2.17.jar",
        "friendly_name": "log4j:1.2.17",
        "desc": "Apache log4j1",
        "pkg_manager": "maven",
        "last_modified": "2012-05-26T09:43:00.000Z",
        "purl": "pkg:maven/log4j/log4j@1.2.17",
        "cpes": [
          "cpe:2.3:a:apache:log4j:1.2.17:*:*:*:*:*:*:*"
        ],
        "checksum": {
          "md5": "04a41f0a068986f0f73485cf507c0f40",
          "sha1": "5af35056b4d257e4b64b9e8069c0746e8b08629f",
          "sha256": "1d31696445697720527091754369082a6651bd49781b6005deb94e56753406f9",
          "sha512": null
        },
        "supplier": "The Apache Software Foundation",
        "supplier_info": {
          "name": "The Apache Software Foundation",
          "org": "The Apache Software Foundation",
          "home_page": "http://logging.apache.org/log4j/1.2",
          "is_verified": true
        },
        "total_vulnerability_count": 5,
        "total_fixed_vulnerability_count": 0,
        "vuln_fixed_info": null,
        "license": [
          {
            "url": "https://www.apache.org/licenses/LICENSE-2.0",
            "full_name": "Apache License 2.0",
            "short_id": "Apache-2.0",
            "is_opensource": true
          }
        ]
      },
      "sbom": {
        "...."
      },
      "source_code": {
        "name": "logging-log4j1",
        "repo_type": "github",
        "languages": [
          "java",
          "other",
          "html",
          "c++",
          "monkey c",
          "batch",
          "roff",
          "perl",
          "batchfile",
          "css"
        ],
        "loc": "https://github.com/apache/logging-log4j1",
        "version": "log4j-1.2.17",
        "...."
      },
      "attestation_level": 3
    }
  ],
  "total_hits": 14126,
  "total_docs": 14126,
  "current_page": 1,
  "total_pages": 14126
}
```

#### Search for a Specific Vulnerability

Returns all packages affected by CVE-2021-23406.

```bash
curl -X POST http://<GLOSI service-endpoint or IP-address>:8000/api/v2/lql/components \
-H "Content-Type: application/json" \
-H "company_id: vdna_994mgmr65tculnfy" \
-d '{
"lql": "vulnerability.name=CVE-2021-23406",
"limit": 1
}'
```

Response (abbreviated):

```json
{
  "vulnerability.name=CVE-2021-23406": [
    {
      "package": {
        "name": "npm:pac-resolver:4.2.0",
        "version": "4.2.0"
      },
      "{...}"
      "vulnerability": [
        {
          "base_score": 9.8,
          "vuln_created": "2021-09-02T17:10:06.000Z",
          "name_space": "github:language:javascript",
          "origin": "osv",
          "impact_score": 9.8,
          "doc_type": "vulnerability",
          "collector": "lineaje",
          "static_functions_scanned_number": null,
          "vuln_modified": "2025-01-14T09:12:24.000Z",
          "fix_state": "fixed",
          "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "id": null,
          "severity": "High",
          "doc_created": "2025-07-01T07:13:03.000Z",
          "company_id": "vdna_994mgmr65tculnfy",
          "is_exploited": false,
          "data_source": "https://github.com/advisories/GHSA-9j49-mfvp-vmhm",
          "target": "pkg:npm/pac-resolver@4.2.0",
          "cvs_version": 3.1,
          "name": "CVE-2021-23406",
          "exploitability_score": 9.8
        }
      ]
    }
  ]
}
```

### Search Examples with specific fields

Use the chart table() function to specify exactly which fields to return, for cases where only certain fields are required in the response.

#### Search for All Versions of log4j

To display all versions of log4j

```bash
curl -X POST http://<GLOSI service-endpoint or IP-address>:8000/api/v2/lql/components \
-H 'accept: application/json, text/plain, */*' \
-H 'content-type: application/json' \
-H 'company-id: <company_id>' \
-H 'product-id: 1' \
-d '{
"lql": "package.name=log4j* | chart table(package.id, package.name, package.version)",
"page_no": 1,
"limit": 3,
"is_opensource": true,
"include_raw_data": false
}'
```

Response:

```json
{
  "package.name=log4j*": [], # EMPTY because include_raw_data=false
  "function: chart table(package.id, package.name, package.version)": [
    {
      "package.id": "SPDX-PACKAGE-1aafdcd8-49f2-573c-a9d8-f3d55f4cc3c1",
      "package.name": "log4j:log4j:1.2.17",
      "package.version": "1.2.17"
    },
    {
      "package.id": "SPDX-PACKAGE-850670c3-b6f8-5982-9f7b-4a7c459fab44",
      "package.name": "log4j:log4j:1.2.17",
      "package.version": "1.2.17"
    }
    . . .
  ],
  "total_docs": 3,
  "total_hits": 36,
  "current_page": 1,
  "total_pages": 12,
  "all_columns": [
    "package.id",
    "package.name",
    "package.version",
    . . .
  ],
  "default_columns": [
    "package.id",
    "package.name",
    "package.version"
  ]
}
```

#### Search for All Versions of log4j With Vulnerabilities

```bash
curl -X POST http://<GLOSI service-endpoint or IP-address>:8000/api/v2/lql/components \
-H 'accept: application/json, text/plain, */*' \
-H 'content-type: application/json' \
-H 'company-id: <company_id>' \
-H 'product-id: 1' \
-d '{
"lql": "package.name=log4j* $AND vulnerability.severity=* | chart table(vulnerability.name, vulnerability.severity, package.id, package.name, package.version)",
"page_no": 1,
"limit": 3,
"is_opensource": true,
"include_raw_data": false
}'
```

Response:

```json
{
  "package.name=log4j* $AND vulnerability.severity=*": [],
  "total_hits": 45, # Total Matching Results Available to Query
  "total_docs": 3, # Total Results on This Page
  "current_page": 1, # This Page Number
  "total_pages": 15, # Total Pages Available to Query
  "chart table(vulnerability.name, vulnerability.severity, package.id, package.name, package.version)": [
    {
      "vulnerability.name": "CVE-2019-17571",
      "vulnerability.severity": "Critical",
      "package.id": "SPDX-PACKAGE-1aafdcd8-49f2-573c-a9d8-f3d55f4cc3c1",
      "package.name": "log4j:log4j:1.2.17",
      "package.version": "1.2.17"
    },
    . . .
  ]
}
```

#### Search For Critical Vulnerabilities in a Date Range

Returns log4j packages with critical vulnerabilities created between 1 June 2025 01:00 and 30 June 2025 14:00, sorted by package name.

```bash
curl -X POST http://<GLOSI service-endpoint or IP-address>:8000/api/v2/lql/components \
-H 'accept: application/json, text/plain, */*' \
-H 'content-type: application/json' \
-H 'company-id: <company_id>' \
-H 'product-id: 1' \
-d '{
"lql": "package.name=log4j* $AND vulnerability.severity=critical $AND package.created>=2025-06-01 01:00:00 $AND <=2025-06-01 14:00:00 | chart table(vulnerability.name, vulnerability.severity, package.id, package.name, package.version) | sort(package.name:asc)",
"page_no": 1,
"limit": 3,
"is_opensource": true,
"include_raw_data": false
}'
```

Response:

```json
{
  "package.name=log4j* $AND vulnerability.severity=* $AND package.created>=2023-06-01 01:00:00 $AND <= 2025-06-01 14:00:00": [],
  "total_hits": 30,
  "total_docs": 3,
  "current_page": 1,
  "total_pages": 10,
  "chart table(vulnerability.name, vulnerability.severity, package.id, package.name, package.version)": [
    {
      "vulnerability.name": "CVE-2022-23307",
      "vulnerability.severity": "Critical",
      "package.id": "SPDX-PACKAGE-96763ab6-23cf-5f09-a37d-9141ea0fc461",
      "package.name": "log4j:log4j:1.2.12",
      "package.version": "1.2.12"
    },
    . . .
  ]
}
```

#### Critical Vulnerabilities from a Verified Supplier (Last 120 Days)

Returns log4j packages with critical vulnerabilities, created within the last 120 days, from a verified supplier, sorted by vulnerability name.

```bash
curl -X POST http://<GLOSI service-endpoint or IP-address>:8000/api/v2/lql/components \
-H 'accept: application/json, text/plain, */*' \
-H 'content-type: application/json' \
-H 'company-id: <company_id>' \
-H 'product-id: 1' \
-d '{
"lql": "package.name=log4j* $AND vulnerability.severity=critical $AND package.created<=120 days $AND supplier.is_verified=true | chart table(vulnerability.name, vulnerability.severity, package.id, package.name, package.version) | sort(vulnerability.name:asc)",
"page_no": 1,
"limit": 3,
"is_opensource": true,
"include_raw_data": false
}'
```

Response:

```json
{
  "package.name=log4j* $AND vulnerability.severity=critical $AND package.created<=120 days $AND supplier.is_verified=true": [],
  "total_hits": 6,
  "total_docs": 3,
  "current_page": 1,
  "total_pages": 2,
  "chart table(vulnerability.name, vulnerability.severity, package.id, package.name, package.version)": [
    {
      "vulnerability.name": "CVE-2019-17571",
      "vulnerability.severity": "Critical",
      "package.id": "SPDX-PACKAGE-1aafdcd8-49f2-573c-a9d8-f3d55f4cc3c1",
      "package.name": "log4j:log4j:1.2.17",
      "package.version": "1.2.17"
    },
    . . .
  ]
}
```

## LQL Query Quick Reference

#### Search Term Operators

* `field=value` # Exact match eg. `vulnerability.severity=critical`
* `field=value with spaces` # Exact match with spaces eg. `project.name=Apache Software Foundation`
* `field=*` # Any value (exists) eg. `vulnerability.severity=*`
* `field=value*` # Starts with eg. `vulnerability.name=CVE-28*`
* `field=*value*` # Contains eg. `vulnerability.name=*VE-28*`
* `field!=value` # Not equal eg. `vulnerability.exploited!=true`
* `field>value` # Greater than eg. `project.created > 2025-06-24 $OR risk_level.score > 9`
* `field>=value` # Greater than or equal eg. `project.created >= 2025-06-24 $OR risk_level.score >= 9`
* `field<value` # Less than eg. `project.created < 2025-06-24 $OR risk_level.score < 9`
* `field<=value` # Less than or equal eg. `project.created <= 2025-06-24 $OR risk_level.score <= 9`

#### **Logical Operators**

* `field1=value1 $AND field2=value2` # Both conditions must be true
* `field1=value1 $OR field2=value2` # Either condition must be true
* `field=value1 $AND value2` # Field equals value1 AND value2
* `field=value1 $OR value2` # Field equals either value1 OR value2

#### Functions

* `| stats avg(field1, field2, ...)` # Average values of field
* `| stats count(field1, field2, ...)` # Count occurrences of field
* `| stats max(field1, field2, ...)` # Maximum value of field
* `| stats min(field1, field2, ...)` # Minimum value of field
* `| stats sum(field1, field2, ...)` # Sum values of field
* `| stats unique(field1, field2, ...)` # Get unique values of field
* `| stats unique_values(field1, field2, ...)` # Get unique values of field
* `| stats unique_count(field1, field2, ...)` # Count unique values of field
* `| stats top_hits(10)` # Get top 10 hits for the search term results
* `| chart table(field1, field2, ...)` # Format as table with specified fields
* `| chart table_fold(field1, field2, ...)` # Format as folded table
* `| chart histogram(field1, field2, ...)` # Create histogram of field values

#### Commands

* `| sort(field:asc)` # Sort results ascending eg. `| sort(project.name:asc)`
* `| sort(field:desc)` # Sort results descending eg. `| sort(project.name:desc)`
* `| sort(field1:asc, field2:desc)` # Sort by multiple fields eg. `| sort(project.name:asc, package.name:asc)`
* `| collapse(field)` # Group results by field, returning top document per group eg. `| collapse(package.purl)`
* `| collapse_latest(field)` # Group results by field, returning latest document per group eg. `| collapse_latest(package.purl)`
* `| boost(field1:2.0, field2:1.5)` # Boost relevance of specific fields in search results
* `| histogram_interval(field1:day, field2:month, field3:100)` # Set histogram interval for date fields

#### Clauses

* `| stats avg(field1, field2, ...) by (field4, ...)` # Average values of fields grouped by field4 or more
* `| stats count(field1, field2, ...) by (field4, ...)` # Count occurrences of fields grouped by field4 or more
* `| stats max(field1, field2, ...) by (field4, ...)` # Maximum value of fields grouped by field4 or more
* `| stats min(field1, field2, ...) by (field4, ...)` # Minimum value of fields grouped by field4 or more
* `| stats sum(field1, field2, ...) by (field4, ...)` # Sum values of fields grouped by field4 or more
* `| stats unique(field1, field2, ...) by (field4, ...)` # Get unique values of fields grouped by field4 or more
* `| stats unique_count(field1, field2, ...) by (field4, ...)` # Count unique values of fields grouped by field4 or more
* `| stats unique_values(field1, field2, ...) by (field4, ...)` # Get unique values of fields grouped by field4 or more
* `| chart table(field1, field2, ...) by (field4, ...)` # Format as table with specified fields grouped by field4 or more
* `| chart table_fold(field1, field2, ...) by (field4, ...)` # Format as folded table grouped by field4 or more
* `| chart histogram(field1, field2, ...) by (field4, ...)` # Create histogram of fields values grouped by field4 or more

## Evaluation order of LQL

LQL queries are evaluated strictly from left to right, which means the order of your search terms matters. Think of it like building a filter for your results one step at a time:

**How It Works**

1. **Start with the first term**: This creates your initial set of results
2. **Add each next term**: Each new term either narrows down your results (with $AND) or adds more results (with $OR)

**Operators Work at Two Levels**

1. **Between different fields**: Connect complete search conditions (e.g., `field1=value $AND field2=value`)
2. **Within the same field**: Connect multiple values for one field (e.g., `field=value1 $OR value2`)

**Visual Guide to Operators**

```
package.gos_type=gold $OR premium ┐ ├─ $AND ─┐ These packages must match BOTH conditions package.name=abc $AND def ┘ │ (either gold OR premium) AND (contains both abc AND def)
```

## Best Practices

1. Be as specific as possible with search terms to improve performance
2. For complex aggregations, consider using multiple queries
3. When searching for exact matches, avoid wildcards
4. For time-based queries, use ISO date format (YYYY-MM-DD) for precision
5. Use the `chart table` command with a limited set of fields to improve readability

## LQL field glossary

### Package

* `package.purl` - package purl imp
* `package.name` - package name imp
* `package.version` - package version imp
* `package.pkg_manager` - package pkg manager imp
* `package.download_loc` - package download location
* `package.checksum.md5` - package checksum md5 imp
* `package.checksum.sha1` - package checksum sha1
* `package.checksum.sha256` - package checksum sha256
* `package.checksum.sha512` - package checksum sha512
* `package.description` - package description
* `package.last_modified` - package last modified
* `package.license.url` - package license url imp
* `package.license.version` - package license version
* `package.license` - package license imp
* `package.supplier_info.name` - package supplier info name imp
* `package.supplier_info.org` - package supplier info org
* `package.total_fixed_vulnerability_count` - package total fixed vulnerability count
* `package.total_vulnerability_count` - package total vulnerability count imp
* `package.category` - package category
* `package.classification` - package classification
* `package.cpes` - package cpes
* `package.desc` - package desc
* `package.file_name` - package file name
* `package.files_analysed` - package files analysed
* `package.friendly_name` - package friendly name
* `package.id` - package id
* `package.license_category` - package license category
* `package.license_name` - package license name
* `package.license.category` - package license category
* `package.license.doc_created` - package license doc created
* `package.license.extn` - package license extn
* `package.license.full_name` - package license full name
* `package.license.fullname` - package license fullname
* `package.license.id_contributing_properties` - package license id contributing properties
* `package.license.is_gridfs` - package license is gridfs
* `package.license.is_opensource` - package license is opensource
* `package.license.short_id` - package license short id
* `package.license.spdx_id_suffix` - package license SPDX ID suffix
* `package.license.url` - package license url
* `package.license.version` - package license version
* `package.license` - package license
* `package.scope` - package scope
* `package.src_info` - package src info
* `package.supplier_info.home_page` - package supplier info home page
* `package.supplier_info.is_verified` - package supplier info is verified
* `package.supplier` - package supplier
* `package.vuln_fixed_info.major.count` - package vuln fixed info major count
* `package.vuln_fixed_info.major.version` - package vuln fixed info major version
* `package.vuln_fixed_info.major.vuln_ids` - package vuln fixed info major vuln ids
* `package.vuln_fixed_info.minor.count` - package vuln fixed info minor count
* `package.vuln_fixed_info.minor.version` - package vuln fixed info minor version
* `package.vuln_fixed_info.minor.vuln_ids` - package vuln fixed info minor vuln ids
* `package.vuln_fixed_info.patch.count` - package vuln fixed info patch count
* `package.vuln_fixed_info.patch.version` - package vuln fixed info patch version
* `package.vuln_fixed_info.patch.vuln_ids` - package vuln fixed info patch vuln ids
* `package.vuln_fixed_info.upgrade.count` - package vuln fixed info upgrade count
* `package.vuln_fixed_info.upgrade.version` - package vuln fixed info upgrade version
* `package.vuln_fixed_info.upgrade.vuln_ids` - package vuln fixed info upgrade vuln ids

### Image

* `image.name` - image name
* `image.version` - image version imp
* `image.os` - image os
* `image.tags` - image tags imp
* `image.manifest` - image manifest
* `image.owner` - image owner
* `image.size` - image size imp
* `image.architecture` - image architecture imp
* `image.repo_checksum` - image repo checksum imp
* `image.layer.checksum.sha256` - image layer checksum sha256
* `image.layer.size` - image layer size
* `image.download_loc` - image download loc imp
* `image.config` - image config
* `image.desc` - image desc
* `image.docker_version` - image docker version
* `image.file_name` - image file name
* `image.image_created` - image image created
* `image.layer.doc_created` - image layer doc created
* `image.layer.extn` - image layer extn
* `image.layer.id_contributing_properties` - image layer id contributing properties
* `image.layer.is_gridfs` - image layer is gridfs
* `image.layer.spdx_id_suffix` - image layer spdx id suffix

### Vulnerability

* `vulnerability.name` - vulnerability name, contains the CVE name like CVE-2025-1234, GHSA-aaa, etc
* `vulnerability.score` - vulnerability score
* `vulnerability.severity` - vulnerability severity, can be Critical, High, Medium, Low, Unknown
* `vulnerability.base_score` - vulnerability base score
* `vulnerability.name_space` - vulnerability name space like NVD, Ubuntu etc
* `vulnerability.description` - vulnerability description
* `vulnerability.vector` - vulnerability vector
* `vulnerability.vuln_created` - vulnerability detection time in the world
* `vulnerability.vuln_modified` - vulnerability last modified time in the world
* `vulnerability.vuln_withdrawn` - vulnerability withdrawal time in the world
* `vulnerability.fix_state` - vulnerability fix state
* `vulnerability.fix_versions` - vulnerability fix versions
* `vulnerability.impact_score` - vulnerability impact score
* `vulnerability.is_exploited` - vulnerability is exploited
* `vulnerability.affected_versions` - vulnerability affected versions
* `vulnerability.category` - vulnerability category
* `vulnerability.collector` - vulnerability collector
* `vulnerability.count` - vulnerability count
* `vulnerability.created` - vulnerability detection time at Lineaje Inc
* `vulnerability.cvs_version` - vulnerability cvs version
* `vulnerability.data_source` - vulnerability data source
* `vulnerability.dep_tree` - vulnerability dep tree
* `vulnerability.desc` - vulnerability description
* `vulnerability.doc_created` - vulnerability doc created
* `vulnerability.exploitability_score` - vulnerability exploitability score
* `vulnerability.exploitable` - vulnerability exploitable
* `vulnerability.id` - vulnerability id
* `vulnerability.last_modified` - vulnerability last modified
* `vulnerability.last_updated` - vulnerability last updated
* `vulnerability.mitigated.status` - vulnerability mitigated status
* `vulnerability.modified` - vulnerability modified
* `vulnerability.origin` - vulnerability origin
* `vulnerability.package_purl` - vulnerability package purl
* `vulnerability.package.name` - vulnerability package name
* `vulnerability.package.pkg_manager` - vulnerability package pkg manager
* `vulnerability.package.version` - vulnerability package version
* `vulnerability.purl` - vulnerability purl
* `vulnerability.target` - vulnerability target
* `vulnerability.updated` - vulnerability updated
* `vulnerability.vuln_id` - vulnerability vuln id

### Attestation

* `attestation_level.lcal` - Attestation level score \[INTEGER], can be LCAL-0 to LCAL-4 \[0, 4]

### Risk Score

* `risk_level.score` - Risk Level Score \[FLOAT], can be one of IRLC, IRLH, IRLM, IRLL, ZIRL \[0.0, 10.0]
* `risk_level.severity` - Risk Level Severity

### Security Posture

* `security_posture.name` - security posture name, can be one of Branch-Protection,Pinned-Dependencies,Dangerous-Workflow, SAST, Dependency-Update-Tool, Security-Policy, Fuzzing, Token-Permissions, Packaging, Webhooks, Embedded Secrets
* `security_posture.score` - security posture score
* `security_posture.severity` - security posture severity
* `security_posture.reason` - security posture reason
* `security_posture.desc` - security posture desc
* `security_posture.entropy` - security posture entropy
* `security_posture.author` - security posture author
* `security_posture.check_metadata` - security posture check metadata
* `security_posture.checksum.md5` - security posture checksum md5
* `security_posture.checksum.sha1` - security posture checksum sha1
* `security_posture.checksum.sha256` - security posture checksum sha256
* `security_posture.checksum.sha512` - security posture checksum sha512
* `security_posture.chk_metadata` - security posture chk metadata
* `security_posture.chksum.md5` - security posture chksum md5
* `security_posture.chksum.sha1` - security posture chksum sha1
* `security_posture.chksum.sha256` - security posture chksum sha256
* `security_posture.chksum.sha512` - security posture chksum sha512
* `security_posture.collector` - security posture collector
* `security_posture.commit` - security posture commit
* `security_posture.complexity` - security posture complexity
* `security_posture.created` - security posture created
* `security_posture.date` - security posture date
* `security_posture.description` - security posture description
* `security_posture.documentation_desc` - security posture documentation desc
* `security_posture.documentation_description` - security posture documentation description
* `security_posture.documentation_short` - security posture documentation short
* `security_posture.documentation_url` - security posture documentation url
* `security_posture.email` - security posture email
* `security_posture.fingerprint` - security posture fingerprint
* `security_posture.lang` - security posture lang
* `security_posture.language` - security posture language
* `security_posture.loc` - security posture location
* `security_posture.message` - security posture message
* `security_posture.msg` - security posture msg
* `security_posture.origin` - security posture origin
* `security_posture.rule_id` - security posture rule id
* `security_posture.secret` - security posture secret
* `security_posture.sloc` - security posture sloc
* `security_posture.source_code_name` - security posture source code name
* `security_posture.source_code_version` - security posture source code version
* `security_posture.source_code.name` - security posture source code name
* `security_posture.source_code.version` - security posture source code version
* `security_posture.source_link` - security posture source link
* `security_posture.src_link` - security posture src link

### Code Quality

* `code_quality.name` - Code quality check name, can be one of Embedded Secrets, Binary-Artifacts, CII-Best-Practices,Fuzzing, Gitleaks, CI-Tests, Code-Review, Maintained
* `code_quality.score` - Code quality check score
* `code_quality.severity` - Code quality check severity
* `code_quality.reason` - Code quality check reason
* `code_quality.desc` - Code quality check description
* `code_quality.author` - Code quality check author
* `code_quality.checksum.md5` - Code quality check md5 checksum
* `code_quality.checksum.sha1` - Code quality check sha1 checksum
* `code_quality.checksum.sha256` - Code quality check sha256 checksum
* `code_quality.checksum.sha512` - Code quality check sha512 checksum
* `code_quality.chk_metadata` - Code quality check metadata
* `code_quality.chksum.md5` - Code quality check md5 checksum
* `code_quality.chksum.sha1` - Code quality check sha1 checksum
* `code_quality.chksum.sha256` - Code quality check sha256 checksum
* `code_quality.chksum.sha512` - Code quality check sha512 checksum
* `code_quality.collector` - Code quality check collector
* `code_quality.commit` - Code quality check commit name
* `code_quality.complexity` - Code quality check complexity
* `code_quality.created` - Code quality check created date
* `code_quality.date` - Code quality check date
* `code_quality.description` - Code quality check description
* `code_quality.documentation_desc` - Code quality check documentation description
* `code_quality.documentation_description` - Code quality check documentation description
* `code_quality.documentation_short` - Code quality check documentation short
* `code_quality.documentation_url` - Code quality check documentation url
* `code_quality.email` - Code quality check email
* `code_quality.entropy` - Code quality check entropy
* `code_quality.fingerprint` - Code quality check fingerprint
* `code_quality.lang` - Code quality check language
* `code_quality.language` - Code quality check language
* `code_quality.loc` - Code quality check location
* `code_quality.message` - Code quality check message
* `code_quality.msg` - Code quality check message
* `code_quality.origin` - Code quality check origin
* `code_quality.rule_id` - Code quality check rule id
* `code_quality.secret` - Code quality check secret
* `code_quality.sloc` - Code quality check source code location
* `code_quality.source_code_name` - Code quality check source code name
* `code_quality.source_code_version` - Code quality check source code version
* `code_quality.source_code.name` - Code quality check source code name
* `code_quality.source_code.version` - Code quality check source code version
* `code_quality.source_link` - Code quality check source link
* `code_quality.src_link` - Code quality check source link

### Source Code

* `source_code.loc` - source code location (like <https://github.com//>)
* `source_code.version` - source code version
* `source_code.tag` - source code tag (tag or branch)
* `source_code.code_quality_score` - source code code quality score
* `source_code.contributors_count` - source code contributors count
* `source_code.total_commits` - source code total commits
* `source_code.first_commit` - source code first commit
* `source_code.last_commit` - source code last commit
* `source_code.is_opensource` - source code is opensource
* `source_code.direct_dep_count` - source code direct dep count
* `source_code.friendly_name` - source code friendly name
* `source_code.id` - source code id
* `source_code.is_opensource` - source code is opensource
* `source_code.is_suspicious_activity` - source code is suspicious activity
* `source_code.languages` - source code languages
* `source_code.latest_version_date` - source code latest version date
* `source_code.latest_version` - source code latest version
* `source_code.name` - source code name
* `source_code.score` - source code score
* `source_code.security_posture_score` - source code security posture score
* `source_code.src_code_created` - source code src code created
* `source_code.transitive_dep_count` - source code transitive dep count
* `source_code.url` - source code url

### Provenance

* `provenance.country.code` - provenance country code
* `provenance.timezone` - provenance timezone
* `provenance.contributor_commit_count` - provenance contributor commit count
* `provenance.contributor_link` - provenance contributor link
* `provenance.contributor.commit_count` - provenance contributor commit count
* `provenance.contributor.commits` - provenance contributor commits
* `provenance.contributor.email` - provenance contributor email
* `provenance.contributor.is_suspicious` - provenance contributor is suspicious
* `provenance.contributor.link` - provenance contributor link
* `provenance.contributor.name` - provenance contributor name
* `provenance.count` - provenance count
* `provenance.country_code` - provenance country code
* `provenance.internal.country.code` - provenance internal country code

### Contributor

* `contributor.name` - contributor name
* `contributor.email` - contributor email
* `contributor.id` - contributor id
* `contributor.commits` - contributor commits
* `contributor.is_suspicious` - contributor is suspicious
* `contributor.link` - contributor link
* `commit.contributor.commit_count` - contributor commit count
* `commit.contributor_email` - contributor email
* `commit.contributor_link` - contributor link
* `commit.contributor.country.code` - contributor country code
* `commit.contributor.email` - contributor email
* `commit.contributor.is_suspicious` - contributor is suspicious
* `commit.contributor.link` - contributor link
* `commit.contributor.name` - contributor name
* `commits.commit` - Commit name
* `commits.contributor_commit_count` - contributor commit count
* `commits.contributor_email` - contributor email
* `commits.contributor_link` - contributor link
* `commits.contributor.country.code` - contributor country code
* `commits.contributor.email` - contributor email
* `commits.contributor.is_suspicious` - contributor is suspicious
* `commits.contributor.link` - contributor link
* `commits.contributor.name` - contributor name
* `commits.count` - contributor commit count
* `commits.country_code` - commits country code
* `commits.country.code` - commits country code
* `commits.timezone` - commits timezone

### License

* `license.url` - license url
* `license.category` - license category
* `license.fullname` - license fullname
* `license.is_deprecated` - license is deprecated
* `license.is_opensource` - license is opensource
* `license.is_osi_approved` - license is osi approved
* `license.license_id` - license license id
* `license.name` - license name
* `license.full_name` - license full name
* `license.short_id` - license short id
* `license.component_category` - license component category
* `license.details_url` - license details url
* `license.is_deprecated_license_id` - license is deprecated license id
* `license.is_fsf_libre` - license is fsf libre
* `license.reference_number` - license reference number
* `license.references` - license references
* `license.tenant_id` - license tenant id
* `license.version` - license version

### Supplier

* `supplier.name` - supplier name
* `supplier_info.name` - supplier info name
* `supplier.is_verified` - supplier is verified
* `supplier.organisation` - supplier organisation
* `supplier.verified` - supplier verified


# Page 1


# GLOSI+deployment+guide up.doc

## What is GLOSI?

GLOSI is an offering from Lineaje that serves as an intelligence data platform for open source components and vulnerabilities. GLOSI enables customers to lookup open source intelligence in their own environment. GLOSI supports a variety of environments – from cloud to on-prem. GLOSI releases new intelligence data on a regular basis to keep up the changes.

## How is GLOSI shipped?

GLOSI is shipped as a container image (tarball) and it can be deployed using docker compose.

## What does GLOSI contain?

GLOSI image bundles the open source data and open source vulnerability data along with a set of services and a UI. It includes the following elements:

* Front end UI React Next App to access and query the open source components and vulnerabilities
* Data-service FastAPI as an API layer to access the data
* Orchestration service FastAPI app to manage the DB
* Elastic Search DB 7.17.0 that holds the open source data

## How can I get access to GLOSI?

GLOSI image is hosted in Lineaje registry. Please get in touch with Lineaje support (<support@lineaje.com>) to get access to the GLOSI image.

## GLOSI Setup

### System Configuration

All containers can be setup in one single VM (Ubuntu, Alpine) or in distributed fashion. If all applications are being setup in one single vm below configuration is recommended.

| **Deployment Type** | **services** | **Ram** | **vCPU** | **DiskSize** |
| ------------------- | ------------ | ------- | -------- | ------------ |
| SingleNode          | data-service | 32GB    | 8        | 300GB        |

### Pre-requisite

1. You should have the tarball containing the installation guide, API documentation along with Resource folder containing the docker-compose.yaml file which contains GLOSI image hosted within Lineaje ECR. The tarball can also be found here.
2. You should have access to Lineaje ECR hosting the GLOSI docker image, in case you don’t have access, then please reach out to Lineaje Support on <support@lineaje.com> for requesting ECR access along with your AWS Account Id. Once ECR access is granted on your AWS Account, you are good to move forward with next steps.
3. Docker installed on the host vm
4. Install AWS CLI on vm
5. For automated installation, services being installed using the GLOSI vm should have access to [gold.lineaje.com](http://gold.lineaje.com/) domain. Whitelisting

### Deployment

{% stepper %}
{% step %}

### Add AWS config

Add a config in `~/.aws/config` with below info

```ini
[profile LineajeGlosiRole]

role_arn = arn:aws:iam::<Lineaje AWS Account>:role/lineajeGlosiPullRole

credential_source = Ec2InstanceMetadata
```

{% endstep %}

{% step %}

### Login to AWS ECR

Login to aws ecr using below command. glosi repository id can be found in docker-compose.yaml file present under Resource folder of tarball.

```bash
aws ecr get-login-password --region us-east-1 --profile LineajeGlosiRole | sudo docker login --username AWS --password-stdin <Lineaje AWS Account>.dkr.ecr.us-east-1.amazonaws.com
```

{% endstep %}

{% step %}

### Pull the image

Pull the image in your host vm using below command

```bash
docker pull <Lineaje AWS Account>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
```

{% endstep %}

{% step %}

### Deploy services

Use below command to deploy all services with docker-compose.yaml and image pulled in previous step. This will deploy all services in one single vm.

```bash
sudo docker compose -f <docker-compose.yaml> up -d
```

{% endstep %}
{% endstepper %}

## Custom Deployment

The deployment can be customized. Here are the configuration files that can be customized.

### ElasticSearch configuration

To start elastic search separately elasticsearch container can be spawned in separate vm and a port needs to be exposed to make it accessible through data service. With below configuration the container runs at recommended **9200** port, which can be changed as per requirement.

```yaml
elasticsearch:
  image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
  container_name: elasticsearch
  command: ["/bin/sh", "-c", "/usr/share/elasticsearch/bin/elasticsearch"]
  user: "1001:1001" # Run as UID/GID defined in Dockerfile
  environment:
    - discovery.type=single-node
    - ES_JAVA_OPTS=-Xms512m -Xmx512m
  volumes:
    - elasticsearch_data:/usr/share/elasticsearch/data
  ports:
    - "9200:9200"
  restart: no
  healthcheck:
    test: ["CMD-SHELL", "curl --silent --fail http://elasticsearch:9200/_cluster/health || exit 1"]
    interval: 5s
    retries: 10
    timeout: 3s
```

### Data Service configuration

Data service is the data access API using FastAPI and connects to Elasticsearch. Converts client requests into Elasticsearch queries. This container runs on recommended port 8000 which can be customised with below configuration. This service also exposed a swagger docs endpoint at url: **http\://**[**data-service:VM\_IP**](data-service:VM_IP)**:**[**port:8000**](port:8000)**/docs**

```yaml
data-service:
  image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
  container_name: data-service
  working_dir: /app/data-service
  command: ["gunicorn", "main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000", "--timeout", "2", "--graceful-timeout", "15", "--keep-alive", "10"]
  environment:
    - PATH=/app/data-service/venv/bin:$PATH
    - ELASTIC_AUTH_METHOD=NO_AUTH
    - OPENSEARCH_HOST=elasticsearch
    - OPENSEARCH_PORT=9200
    - USER_SSL=False
    - VERIFY_CERT=False
  depends_on:
    elasticsearch:
      condition: service_healthy
  ports:
    - "8000:8000"
  restart: always
```

### FrontEnd

The frontend using which user interact with this service through their browsers. It calls backend APIs and displays data visually. It runs on recommended 3000 port (<http://localhost:3000>) which can be customized with below container definition.

```yaml
risklensui:
  image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
  container_name: risklensui
  working_dir: /app/risklensui
  command: ["npm", "run", "start"]
  ports:
    - "3000:3000"
  restart: always
```

### GLOSI Orchestration Service

Orchestration service handles workflows and connects UI actions with the data-service. Adds logic, routing, and validation. It runs on recommended 8500 port (**http\://**[**orchestration-service:VM\_IP**](orchestration-service:VM_IP)**:**[**port:8000**](port:8000)**/docs**) which can be customised with below container definition. Here link to elastic search needs to be provided along with port as this service interacts with elastic search directly with data synchronisation.

```yaml
orchestration-service:
  image: <Lineaje AWS Account Id>.dkr.ecr.us-east-1.amazonaws.com/glosi:latest
  container_name: orchestration-service
  working_dir: /app/glosi-orchestration-service
  command: ["gunicorn", "main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8500", "--timeout", "2", "--graceful-timeout", "15", "--keep-alive", "10"]
  environment:
    - PATH=/app/glosi-orchestration-service/venv/bin:$PATH
    - DATA_SERVICE_HOST=data-service
    - DATA_SERVICE_PORT=8000
    - ELASTIC_AUTH_METHOD=NO_AUTH
    - OPENSEARCH_HOST=elasticsearch
    - OPENSEARCH_PORT=9200
    - USER_SSL=False
    - VERIFY_CERT=False
    - OSS_TENANT_ID=vdna_994mgmr65tculnfy
  depends_on:
    - data-service
  ports:
    - "8500:8500"
  restart: always
```

## Data Persistence, Networking, and Volumes

**Volumes** ensure data inside containers isn’t lost when containers restart or rebuild. For instance, the elasticsearch\_data volume stores all search and analytics data.

Volumes used:

* elasticsearch\_data: Stores data generated by Elasticsearch post package and vulnerability index data synchronisation

**Networking**

Docker Compose automatically creates an internal bridge network. Containers communicate using service names. This abstraction avoids hardcoding IPs and simplifies scaling or relocating services.

**Healthchecks** ensure each service is only marked healthy once it responds to a specific URL or command, improving reliability.

## Service Interaction

Here’s how the services communicate:

1. **Frontend Interaction**\
   The user opens the UI at <http://localhost:3000>. This sends API requests (like search queries) to the orchestration-service at <http://localhost:8500>.
2. **Orchestration-Service**\
   Validates the request and forwards it to the appropriate backend (usually the data-service).
3. **Data-Service**\
   Receives requests from orchestration-service. Transforms them into Elasticsearch-compatible queries and sends them to Elasticsearch.
4. **Elasticsearch**\
   Performs search/indexing operations and returns results to the data-service.
5. **Response Propagation**\
   The data-service formats Elasticsearch results and returns them to orchestration-service, which may further process or log it.
6. **Frontend Rendering**\
   The ui receives the final result and displays it to the user.

The architecture follows this loop:

**UI ➝ Orchestration ➝ Data-service ➝ Elasticsearch ➝ Data-service ➝ Orchestration ➝ UI**

Compose ensures services are started in this dependency chain, meaning each service waits for its required backend to be healthy before starting.

## Access URLs

* Frontend: <http://localhost:3000/>
* Data-Service Swagger Docs: <http://localhost:8000/docs>
* Glosi Orchestration Service Swagger Docs: <http://localhost:8500/docs>


# Continuous Vulnerability Elimination Factory (CVEF)

## What Is CVEF?

CVEF automates end-to-end vulnerability remediation across your projects. It runs four stages: Scan, Fix, Verify, and Deliver. This pipeline turns projects with open vulnerabilities into verified, deployable fixes. Live Lineaje platform data tracks each stage in real time.

| **Stage** | **What happens**                                                                  |
| --------- | --------------------------------------------------------------------------------- |
| Scan      | SBOM360 scans the project and reports open vulnerabilities.                       |
| Fix       | CVEF applies an automatic fix, or queues one for your approval.                   |
| Verify    | CVEF confirms the fix resolves the vulnerability without introducing regressions. |
| Deliver   | CVEF raises a pull request (PR) in your repository for you to merge.              |

A project reaches **Delivered** when each vulnerability completes Fix and Verify. Its pull request must also merge.

With CVEF, you can:

* **Manage Everything From Mission Control:** Track elimination progress, pipeline stages, and project and component health in one dashboard.
* **Track Every Project:** View connected projects by risk and asset type. Open each project's scan history.
* **Follow Every Vulnerability:** Track vulnerabilities through Active, In Active Fix, Awaiting Verification, and Resolved. Filter by severity or fix state.
* **Review AI Fix Plans for Components:** View the recommended version, estimated effort, and plan type for vulnerable components.
* **Run the Factory With Tasks and Escalations:** Lineaje Forward Deployed Engineers (FDEs) monitor remediation tasks. They identify blocked work and act on service-level agreement (SLA) breaches and open pull requests.

## How CVEF, SBOM360, and Scanner Hub Work Together

**SBOM360** connects repositories and container registries. It also configures the scanners that inspect them, including the Frontier Model Scanner. **CVEF** uses SBOM360 scan results for the Fix, Verify, and Deliver stages. Use the product selector at the navigation bar's upper left to switch products.

Both products use Scanner Hub to configure and manage Lineaje-native and third-party scanners. Scanner Hub supports open-source packages, private source code, registries, artifacts, binaries, and SBOMs. In SBOM360, access Scanner Hub from the main navigation. In CVEF, Scanner Hub appears under **Supervisor** for Lineaje FDEs only. FDEs can configure scanners for customers.

**Frontier Model Scanner** is an opt-in scanner that uses a large language model (LLM) to detect novel vulnerabilities. These issues are not yet catalogued in public databases. The scanner identifies novel Common Weakness Enumeration (CWE) class risks, validates exploitability in a dynamic sandbox, generates a fix, and opens a pull request. Lineaje assigns each novel vulnerability a unique identifier prefixed with `LVE`.

Configure both scanners. The OSS Scanner is included with standard SBOM360 coverage. The Frontier Model Scanner detects novel vulnerabilities the OSS Scanner cannot detect. It scans your first-party and open-source code. Your LLM provider bills usage per scan. Your organization supplies its API key and pays these costs directly. Lineaje does not proxy or subsidize LLM usage.

## How Vulnerabilities Get Fixed

CVEF routes each vulnerability through one of three remediation paths. The path depends on vulnerability type and fix availability.

| **Vulnerability type**                                            | **Fix path**                                              | **Approval required?** |
| ----------------------------------------------------------------- | --------------------------------------------------------- | ---------------------- |
| OSS vulnerability (CVE) with a Gold OSS alternative available     | Auto-fix runs as soon as the scan completes               | No                     |
| OSS vulnerability (CVE) with no Gold OSS alternative available    | Lineaje rebuilds the component, or prepares a premium fix | Yes                    |
| Novel vulnerability (LVE), detected by the Frontier Model Scanner | AI-generated fix, queued for review                       | Yes                    |

Novel vulnerabilities are never fixed automatically. CVEF requires approval before making changes. Premium fixes and rebuilds also require approval. Lineaje charges for this remediation work. Each component fix plan uses one of three plan types:

| **Plan type** | **Meaning**                                                              |
| ------------- | ------------------------------------------------------------------------ |
| Rebuild       | Lineaje rebuilds the component with the vulnerability removed.           |
| Curated       | A curated Gold OSS alternative replaces the vulnerable component.        |
| Premium       | A Lineaje-prepared premium fix. Approval is required before application. |


# SBOM360

## SBOM360

SBOM360 provides continuous software supply chain security management to companies by mapping out the lineage of their programs. SBOM360 is an advanced solution that helps companies protect themselves from software supply chain attacks. Through SBOM360, anyone can prepare a Software Bill of Materials (SBOM) to keep themselves and their stakeholders safe.

Here are things that you can use SBOM360 for:

* Generate SBOM for your source repo or container image or an already existing SBOM file
* View overall risk score of your SBOM
* View transitive dependencies of your SBOM
* View vulnerabilities of your SBOM
* View licenses and suppliers of your SBOM
* View inherent risk for each component based on security posture, code quality
* Download assessment report of your SBOM
* Publish your SBOM to SBOM360 Hub
* Create policies and programs as per the organizational needs
* Evaluate SBOMs against programs and generate findings


# Setting Up

You can set up SBOM360 using either SaaS deployment or Hybrid deployment models.

* [Set up SBOM360 using SaaS](https://docs.veedna.com/deploying-lineaje/saas-deployment)
* [Set up SBOM360 using Hybrid](https://docs.veedna.com/deploying-lineaje/hybrid-deployment)


# Generate an SBOM

Generate SBOM via Integrations

There are different ways in which you can generate an SBOM project. You can get started by clicking on Integrations page as shown below

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2Fge3WwUuN5NO42MnVk4PP%2Fimage.png?alt=media&amp;token=1b6ef761-567d-47cc-8c6f-10e14b2d9221" alt=""><figcaption></figcaption></figure>

There are different starting points for SBOM creation

1. [Source Code Management (SCM) As Source](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/source-code-management-scm-as-source)
2. [Container Image As Source](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/container-image-as-source)
3. [Existing SBOM As Source](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/existing-sbom-as-source)
4. [Manifest file As Source](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/manifest-file-as-source)
5. [Android Package Kit(APK)](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/binary-files)
6. [Using Lineaje CLI](broken://pages/KRRYtcm2nGOLqMrZxpX4)

\ <br>


# Source Code Management (SCM) As Source

SBOM360 supports integration with different SCM systems.

### Source Code Management (SCM)

* Create a configuration for SCM integration.
* Each configuration can store settings for private or public code repositories.
* In case of [public code repositories](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/source-code-management-scm-as-source/public-code-repositories), one configuration can store up to 10 public code repository URLs.
* In case of [private code repositories](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/source-code-management-scm-as-source/private-code-repositories), credentials must be specified that carries enough permissions to enumerate and list the private code repositories.


# Public Code Repositories

SBOMs can be generated for public code repositories.

&#x20;There are two steps involved:

### Step 1: Details

* Each configuration can store up to 10 public code repository URLs
* Each repository URL is verified for its accessibility and a status is displayed

![](https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FcwknUHEXKmrg86CZ3Cje%2F4.png?alt=media)

### **Step 2: Review**

* The branches and tags for the verified code repositories are listed in this step
* Either a branch or tag can be selected for the each code repository
* Project name and version will be auto generated but can be edited
* Click on Save Configuration to generate SBOM

![                                                               ](https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F0jHXJS9aqYhpN9cdq9qW%2F5.png?alt=media)


# Private Code Repositories

SBOMs can be generated for private code repositories.

## Configure access to private code

Private code configuration requires credentials to access the private code. This may include a combination of access token, username, certificates depending on the SCM platform. In general, the configuration has two steps

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FxmHpw143Ptm8st9iqR81%2Fimage.png?alt=media&amp;token=3003194b-d9a1-4c13-9f33-9829a9db9aeb" alt=""><figcaption></figcaption></figure>

### Step 1: Details

* Add credentials to access the private code. This may include a combination of access token, username, certificates depending on the SCM platform.
* By clicking Test Connection, the connection will be tested against the credentials.

### **Step 2: Review**

* All the repositories associated with credentials will be displayed
* Either a branch or tag can be selected for the each code repository
* Project name and version will be auto generated based on repo name and branch/tag. It can be edited.
* Click on Save Configuration to generate project.

![](https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FvLBf9EnmX87arWdLN2tV%2F7.png?alt=media)


# Configure GitHub credentials

GitHub configuration requires a "Personal Access Token".

## Creating Personal Access Token

Refer [GitHub docs](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) to create Personal Access Token.

* Go to [github.com](https://github.com/) and sign-in
* Select your profile.
* Click on Settings.
* Click on Developer Settings.
* Click on Personal access tokens.
* Enter a token name.
* Set an expiration date (optional).
* Define scopes with the following permissions:
  * Repository – contents – read
  * Repository – metadata – read
* Click on Create personal access token.
* Add the newly generated token as "Access Token" in Lineaje configuration.


# Configure Bitbucket credentials

Bitbucket configuration requires "User Name" and "Access Token".

Bitbucket supports two types of access tokens depending on the access privileges. There are two types of tokens that can be generated based on your access rights to Bitbucket.

## Creating App password

Refer [Bitbucket Docs](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/) to learn about creating App password.

* Go to [bitbucket.org](https://bitbucket.org/).
* Go to your repository.
* Select the Settings cog in the upper-right corner of the top navigation bar.
* Under **Personal settings**, select **Personal Bitbucket settings.**
* On the left sidebar, select App passwords.
* Select Create app password, select permissions and save.
* Set the "User Name" in Lineaje configuration to your Bitbucket username. Please note that bitbucket username may not be the same as your email id.
* Add the newly generated token as "Access Token" in Lineaje configuration.

## Creating Access Tokens

Refer [Bitbucket Docs](https://support.atlassian.com/bitbucket-cloud/docs/access-tokens/) to learn about creating Repository/Project/Workspace Access Tokens and [creating](https://support.atlassian.com/bitbucket-cloud/docs/create-a-repository-access-token/) the repository tokens.

* Go to [bitbucket.org](https://bitbucket.org/).&#x20;
* Go to your repository.
* Click Repository Settings.
* Select Access tokens.
* Press Create Repository Access Token.
* Create a token name.
* Select the repository token permissions.
* Click the Create button.
* Copy the token and save it somewhere memorable. The token will be inaccessible once you leave the page.
* As per the Bitbucket docs, set the "User Name" to "**x-token-auth**" in Lineaje configuration.
* Add the newly generated token as "Access Token" in Lineaje configuration.


# Configure Gitlab credentials

Gitlab configuration requires "User Name" and "Access Token".

## Creating Personal Access Token

Refer [Gitlab docs](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) to create Personal Access Token.

* Go to [about.gitlab.com](https://about.gitlab.com/) and sign-in
* Select your profile.
* Click Edit profile.
* Click on Access Tokens.
* Enter a token name.
* Set an expiration date (optional).
* Define scopes.
* Click on Create personal access token.
* Set the "User Name" in Lineaje configuration.
* Add the newly generated token as "Access Token" in Lineaje configuration.


# Configure Git credentials

git configuration requires "User Name" and "Access Token". The exact steps of creating the access token depends on the git cloud that is used.

## Creating Personal Access Token

* Depending on the git cloud used, follow the instructions to generate a personal access token.
* Set the "User Name" in Lineaje configuration.
* Add the newly generated token as "Access Token" in Lineaje configuration.


# Configure Azure Repo

Azure Repo uses standard git interface. Azure Repo can be configured using "[Git](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/source-code-management-scm-as-source/private-code-repositories/configure-git-credentials)".

* Login to your account in [dev.azure.com](https://dev.azure.com)
* Top right corner, click on User Settings
* Click on Personal Access Token
* Click on "New Token"
* Add Name, Organization, Expiration, Scopes (Read access is preferred)

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FE549WGnZs6c4YgkbIGC9%2Fimage.png?alt=media&amp;token=17eaedb9-b31e-48d5-96b8-c254b5a1e82b" alt=""><figcaption></figcaption></figure>


# Frequently Asked Questions

### Why do I not see a new project triggered even after clicking on "Save Configuration"?

Project generation has a n optimization to avoid accidental runs of same project configuration. A combination of Project Name and Version is used to generate a unique identifier for each project. A project run is triggered only if the combination of Project Name and Version does not exist.

### How can I change the settings for an existing project?

To change the configure, click on edit configuration.

* Step 1 (Details): Configuration name, description, credentials, repo URLs can be modified.
* Step 2 (Review): Branch/tag can be changed for the existing configuration by going to "Edit Repositories" tab.
* Click on Save Configuration to trigger a new project.

### How can I rerun a project for the same configuration?

To re-run a project for the same configuration, edit an existing configuration.&#x20;

* Step 1 (Details): No change. Click next.
* Step 2 (Review): Go to "Edit Repositories" tab.
* Click on Rescan SBOM. Remove repos that are not required for rescan.
* Click on Save Configuration to trigger a new project.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FljOqOy8znmzYOOz0saEy%2Fimage.png?alt=media&amp;token=7b10a6e6-d2e0-4720-88dd-c274b5aaf98d" alt=""><figcaption></figcaption></figure>


# Container Image As Source

SBOM360 supports integration with different container registries.

* Create a configuration for container image integration. This helps the organizations to group image registries based on location or team or product.
* Each configuration can store settings for private or public image registry
* In case of [public image registry](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/container-image-as-source/public-container-image), one configuration can store up to 10 public image URLs
* In case of [private code registry](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/container-image-as-source/private-container-image), access must be given to enumerate and list the private container images.

<br>


# Public Container Image

SBOMs can be generated for public container images. There are two steps involved:

### Step 1: Details

* Each configuration can store up to 10 container image URLs
* Each container image URL is verified for its accessibility and a status is displayed

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FqbE5A3AL1lOQqqOeIBjT%2Fimage.png?alt=media&amp;token=d698bc2e-922e-4627-82d6-bc999bc5c384" alt=""><figcaption></figcaption></figure>

### Step 2: Review

* The tags available for the verified conatiner image are listed in this step
* Choose a tag to generate an SBOM
* Project name and version will be auto generated but can be edited
* Click on “Save Configuration” to generate SBOM

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F61YvAyYUqq0rKpFtho5b%2Fimage.png?alt=media&amp;token=e2370f21-4149-4758-8ab5-994ee8af07da" alt=""><figcaption></figcaption></figure>

<br>


# Private Container Image

SBOMs can be generated for private code repositories.

There are three steps involved:

### Step 1: Details

* Each configuration requires a mandatory name and a description.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FyjSkJwk18PnjCz8f0TnO%2Fimage.png?alt=media&amp;token=8b6b24f5-60ab-4ea8-a8f1-a861f6c2848c" alt=""><figcaption></figcaption></figure>

### Step 2: Configure

* Enter the credentials required to access the private registry. This gives Lineaje access to your organization’s private image registry,
* This step varies for AWS-ECR, GCP-Container Registry, and Docker Hub.
* By clicking on Test Connection, the connection will be tested against the credentials.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F2iZys0h5owMDzAC21W9u%2Fimage.png?alt=media&amp;token=2becdc1f-ae57-436f-9f2d-a90d27a63086" alt=""><figcaption></figcaption></figure>

### Step 3: Review

* All the container images available in the private registry will be displayed
* Choose a container image
* Project name and version will be auto generated but can be edited
* Click on Save Configuration to generate a project


# Configure AWS Elastic Container Registry

Provide credentials to access private ECR

There are two options to configure access to AWS-ECR private registry: CloudFormation Template and Configure Manually

### Manual Configuration

This configuration allows you to enter the accountID, accessToken, secretkey and Region. This would allow Lineaje to get access to your organization’s private ECR registry.

For security reasons, Lineaje recommends creating new user with cross account role. Follow the below steps to create a new user:&#x20;

* Go to the AWS console and login using your organization credentials
* Navigate to Identity and Access Management (IAM) and click Users
* Add users, then enter the user name

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FeCrjgewdS32gEMc1azo5%2Fimage.png?alt=media&amp;token=82f4a05b-363d-4734-94b3-6433a5ad1830" alt=""><figcaption></figcaption></figure>

* For the AWS credential type, press Access key - Programmatic access then set permissions. There are two required permissions you will need to set:
  * AmazonEC2ContainerRegistryFullAccess
  * AmazonElasticContainerRegistryPublicFullAccess

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2Fu1KhtSkoe7oAYwz8MHdw%2Fimage.png?alt=media&amp;token=c6d5a479-02f7-4464-9b95-f48bc565ff42" alt=""><figcaption></figcaption></figure>

* Skip Tags Tab
* Review Tab

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FTAW4YQKzZGtvXcPWQYvy%2Fimage.png?alt=media&amp;token=e7269ac8-c0d6-485b-8d24-0857c805f083" alt=""><figcaption></figcaption></figure>

* Final tab will provide you the access key id and secret access key

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FxPxF4kpejBEDahPnyPtP%2Fimage.png?alt=media&amp;token=52e21f5a-9ce1-42c8-ae9b-9e50ac2d17cb" alt=""><figcaption></figcaption></figure>

### IAM CloudFormation Template​

The CloudFormation Template (CFT) option needs a CFT file to be uploaded.&#x20;

* Download the sample CFT file
* Go to the AWS console and login using your organization credentials

  * Go to the AWS *sign-in page* <https://console.aws.amazon.com/cloudformation&#x20>;
  * Click the buttons Create Stack -> With New Resources

  <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F00e64pQJ173zNyk8drtf%2Fimage.png?alt=media&amp;token=f0b4b9d0-d7af-4eaf-844c-b515f7e5a2be" alt=""><figcaption></figcaption></figure>

  * Leave the Prepare Template setting as-is
    * For Template source select Upload a template file
    * Click Choose file and select the CloudFormation template you downloaded and click Next

  <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FdAFoTeQohKAOXJadGF6q%2Fimage.png?alt=media&amp;token=d7a6eae4-1904-4766-bef7-87e675d97f62" alt=""><figcaption></figcaption></figure>

  * For Stack name use SBOM360-ECR-Permissions-Stack and click Next

  <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F6fPcbbmIO3Ch8xUOJsjN%2Fimage.png?alt=media&amp;token=1d867041-b5ae-42b1-8256-ecce4f418773" alt=""><figcaption></figcaption></figure>

  * For Configure Stack Options, it is recommended to use configuring tags, which are key-value pairs that can help you identify your stacks and the resources they create. You will not have to use additional permissions or advanced options so click Next.
  * For Review

    * Scroll down to the bottom of the page and select "I acknowledge that AWS CloudFormation might create IAM resources with custom names."
    * Click Create Stack

    <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FZPp6ZdSKKT6Mr17SB977%2Fimage.png?alt=media&amp;token=4a4827b3-2e94-4d9f-9aa6-9a4406c7e7ef" alt=""><figcaption></figcaption></figure>

    * You will be taken to the CloudFormation stack status page, showing the stack creation in progress
      * Click on the Events tab and watch the CloudFormation events as they form the IAM Role
    * Click on the Outputs tab and copy the value of the EcrIntegrationRoleARN key

    <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FDbt8hAuLlgAMa6cASoTa%2Fimage.png?alt=media&amp;token=71d87482-1ce2-42dc-a8d8-bd653c7229b6" alt=""><figcaption></figcaption></figure>

    * It should look similar to the following key - arn:aws:iam:/sbom360/SBOM360\_ECR\_Role
* Upload the updated CFT in the configure step
* By clicking on Test Connection, the connection will be tested against the credentials


# Configure Google Container Registry

To give access to your organizations’ artifact registry, you will have to enter the project-ID, region and upload the Google Service Account file.

\
To identify the project-ID, follow these steps:

* Go to the GCP console and login using your organization credentials
* Go to the API Console and view the projects list
* Move to the projects list and click Manage all projects
  * NOTE: The Manage all projects space will display all the project names and IDs that you are a member of.
* Navigate to the desired project select the project to display its project-ID


# Configure Docker Hub

To give access to your organizations’ Docker Hub account, you will have to provide the Docker ID and Access Token of the Docker Hub to start this process.&#x20;

<br>


# Configure Generic OCI Registry


# Configure Azure Container Registry

Azure Container Registry supports the standard Docker commands. Azure Container Registry can be configured using "[OCI Compatible Registry](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/container-image-as-source/private-container-image/configure-generic-oci-registry)".

* Goto [portal.azure.com](https://portal.azure.com.).
* Search to Container Registry
* Navigate to your private Container Registry
* Goto Settings -> Access Keys
* Enter the details -> Registry Name, Login server, Admin user, Username, password, password2

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FBbJG4MfOvumdyLuHD5Uz%2Fimage.png?alt=media&amp;token=1f72f011-49b3-49b8-8172-2f56db4b7ad6" alt=""><figcaption></figcaption></figure>


# Frequently Asked Questions

### Why do I not see a new project triggered even after clicking on "Save Configuration"?

Project generation has a n optimization to avoid accidental runs of same project configuration. A combination of Project Name, Version, digest of the image is used to generate a unique identifier for each project. A project run is triggered only if the combination of Project Name and Version does not exist.

Note: If its only for testing, the previous project in projects page can be deleted to trigger a new run for the same image.

### How can I change the settings for an existing project?

To change the configure, click on edit configuration.

* Step 1 (Details): Configuration name, description, credentials, repo URLs can be modified.
* Step 2 (Review): Branch/tag can be changed for the existing configuration by going to "Edit Repositories" tab.
* Click on Save Configuration to trigger a new project.


# Existing SBOM As Source

Generate a project by uploading your existing SBOMs in either SPDX or CycloneDX format.

Follow the below steps:

1. Step 1: Project name and version
   1. Enter a name and version for your project.
2. Step 2: Choose format and upload file
   1. Choose the format of your SBOM.
      1. SBOM360 supports both SPDX and CycloneDX files.
      2. Please refer the [support matrix](https://docs.veedna.com/sca360-secure-deployment-for-restricted-environments/support-matrix) for  supported versions and formats
   2. Drag and drop or browse to find and enter your desired SBOM file.
   3. CSV uploads are also supported.  Please refer to the following sample file for the supported format.

{% file src="/files/Uhcd8iscswjLhh3Tu39U" %}

1. Step 3: Review
   1. For every file uploaded, [EO 14028](https://docs.veedna.com/continuous-vulnerability-elimination-factory-cvef/sbom360/generate-an-sbom/existing-sbom-as-source/eo-14028-checks) check is performed and errors (if any) are displayed
   2. Once the submit is clicked, the SBOM generation kicks off
   3. Please note that the outcome of an SBOM generation with errors in the EO 14028 check will be incomplete.

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FkJjp2ILqkuJHmChFByVA%2Fimage.png?alt=media&amp;token=37347f9d-dc39-438b-b0a0-f27372a93327" alt=""><figcaption></figcaption></figure>


# EO 14028 checks

Minimum elements for an SBOM

### Minimum fields

EO 14028 checks correspond to the minimum elements in an SBOM as described by <https://www.ntia.doc.gov/files/ntia/publications/sbom_minimum_elements_report.pdf>

The table below lists the minimum elements. Some of these fields are at a SBOM level and the others are applicable for each component in the SBOM.

<table><thead><tr><th width="248">Data Field</th><th>Description</th></tr></thead><tbody><tr><td>SBOM Timestamp</td><td>Record of the date and time of the SBOM data creation</td></tr><tr><td>SBOM Author</td><td>The name of the entity that creates the SBOM data for this component</td></tr><tr><td>SBOM dependencies</td><td>Characterizing the relationship that a component X is included in software Y</td></tr><tr><td>Component Name</td><td>Designation assigned to a unit of software defined by the original supplier</td></tr><tr><td>Component Version</td><td>Version assigned to a unit of software defined by the original supplier</td></tr><tr><td>Component Supplier Name</td><td>The name of an entity that creates, defines, and identifies components</td></tr><tr><td>Component Unique Identifiers</td><td>Identifiers that are used to identify a component (like PURL, BomRefId etc)</td></tr></tbody></table>

### Mapping of minimum fields&#x20;

Below is a table mapping the NTIA minimum SBOM fields to SPDX and CycloneDX

|                         | SPDX                                       | CycloneDX                                                        |
| ----------------------- | ------------------------------------------ | ---------------------------------------------------------------- |
| SBOM Timestamp          | (2.9) Created:                             | metadata/timestamp                                               |
| SBOM Author             | (2.8) Creator:                             | metadata/authors/author                                          |
| SBOM dependencies       | (7.1) Relationship: DESCRIBES CONTAINS     | Inherent in nested assembly/subassembly and/or dependency graphs |
| Component Name          | (3.1) PackageName:                         | name                                                             |
| Component Version       | (3.3) PackageVersion:                      | version                                                          |
| Component Supplier Name | (3.5) PackageSupplier:                     | Supplier publisher                                               |
| Component Unique Ids    | (2.5)SPDX Document Namespace (3.2) SPDXID: | bom/serialNumber component/bom-ref                               |




---

[Next Page](https://docs.veedna.com/llms-full.txt/1)

