> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/academy/tier-2-core-skills/m06-app-builder-design-system-builder/lab-6-configure-scan-and-publish-the-app.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Lab 6: Configure, scan and publish the app

Hands-on lab for lesson 6 of module M06, configure, scan and publish the app.

{% @uptiq-training/training-labels content="Module 6 | brand
Lesson 6 of 8 | brand
Lab 6 | success
18 minutes | neutral
Bloom level Apply | neutral" %}

{% @uptiq-training/training-navigator title="M06 App Builder & Design System Builder" content="Lesson 1: Orient to App Builder | soon
Lesson 2: Plan a borrower status check app in Plan mode | soon
Lab 2: Plan a borrower status check app in Plan mode
Lesson 3: Generate and inspect the app in Build mode | soon
Lab 3: Generate and inspect the app in Build mode
Lesson 4: Knowledge check 1 | soon
Lesson 5: Create and apply a design system | soon
Lab 5: Create and apply a design system
Lesson 6: Configure, scan and publish the app | soon
Lab 6: Configure, scan and publish the app | current
Lesson 7: Schedule a background task with Console Operator | soon
Lab 7: Schedule a background task with Console Operator
Lesson 8: Module assessment | soon" %}

## Lab overview

**Exercise title:** Configure, Scan, and Publish the App

**Difficulty level:** Apply (Bloom Level 3 — you will execute a multi-step workflow in the platform, not just recall or recognize steps)

**Estimated hands-on time:** 18 minutes

**What you will build:** You will configure your app's identity and domain settings in App Config, review the automated security scan results for your current build, and publish your app to the sandbox production environment. By the end of this exercise, your app will be live at a published URL and accessible in a browser.

**Prerequisites:**

* Lesson 3 complete — your borrower status check app has been generated in Build Mode and is available in your project
* Lesson 5 complete — your design system has been created and applied to the app; the app preview reflects your bank's brand colors and fonts
* You are logged in to the Uptiq Platform Console with a role that includes the **Publish an app** capability (Developer, Account Admin, or Organisation Admin)
* A sandbox database is available in your project for connection during the publish checklist

## Your sandbox environment

**Environment access URL:** `<provided by your instructor>`

**Connection details you will use during this exercise:**

| **Field**                 | **Where to find it**                                                                 |
| ------------------------- | ------------------------------------------------------------------------------------ |
| **Console login URL**     | Provided above                                                                       |
| **Your project name**     | Shown in the account/project switcher at the top of the Console                      |
| **Sandbox database name** | Listed in the Manage Database dialog during the publish checklist (Step 6)           |
| **Published app URL**     | Generated by the platform after a successful publish; available in the publish panel |

**Pre-provisioned resources — you do not need to set these up:**

* Your borrower status check app from Lessons 3 and 5 is already open in App Builder in your project
* A sandbox database (the platform-managed PostgreSQL database, shown as "… Managed DB") is already provisioned and available for connection
* The sandbox environment supports publishing to Google Kubernetes Engine (or the equivalent deployment target your instructor has configured)
* The security scan for your current build version has already run automatically — results are waiting for you in **More → Security**

## Configuration template

App Config does not use a file-based configuration template. All settings are configured through the App Config UI, accessed from the action bar in your app workspace. The eight sections you will review and configure are:

| **Section**               | **What it controls**                                          | **Your action in this exercise**                             |
| ------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------ |
| **Basic Config**          | App identity settings (name, description, and related fields) | Review — note the current values                             |
| **Database**              | The app's connected database                                  | Review — confirm connection status                           |
| **Domains**               | Domain settings for the published app                         | Review — note the current domain configuration               |
| **Brand Guidelines**      | The design system applied to this app                         | Review — confirm your design system from Lesson 5 is applied |
| **Environment Variables** | Environment-specific variables for Preview and Publish scopes | Review during the publish checklist                          |
| **Integrations**          | External service connections                                  | Review during the publish checklist                          |
| **Developer Tools**       | Developer-facing configuration                                | Review only                                                  |
| **Preferences**           | App-level preferences                                         | Review only                                                  |

{% hint style="info" %}
App Config settings apply to the scope you are editing — Preview or Published. Some settings differ between the two. During this exercise you are configuring the app before its first publish, so you are working in the Preview scope.
{% endhint %}

## Step-by-step instructions

### Procedure 1 — Review App Config

{% stepper %}
{% step %}
**Open App Config**

In your app workspace, locate the action bar at the top of the screen. Select App Config.

App Config opens to the first section. You will see a left-side navigation listing all eight sections: Basic Config, Database, Domains, Brand Guidelines, Environment Variables, Integrations, Developer Tools, and Preferences.

**Expected result:** App Config opens and all eight sections are visible in the left navigation.

{% hint style="warning" %}
**Checkpoint:** If App Config does not appear in the action bar, confirm you are in Build Mode. The action bar layout differs in Plan Mode, and some controls are not available there.
{% endhint %}
{% endstep %}

{% step %}
**Review Basic Config**

Select Basic Config in the left navigation (it is selected by default when App Config opens).

Review the identity settings shown — these are the fields that define your app's name and description as the platform knows it.

{% hint style="info" %}
**Concept:** Basic Config holds your app's identity settings. The specific fields are pre-populated from the prompt you used to generate the app in Lesson 3. You do not need to change these values for this exercise — you are reviewing them to confirm the app is correctly identified before publishing.
{% endhint %}

{% hint style="warning" %}
The specific field names in Basic Config (for example, whether the section shows a separate "App name" field, a "Description" field, or an icon upload) are not enumerated in the sandbox documentation for this exercise. If your instructor has asked you to update a specific identity field, follow their instructions. Otherwise, review and move on.
{% endhint %}

**Expected result:** Basic Config is visible and shows the app's current identity settings.
{% endstep %}

{% step %}
**Review the Domains Section**

Select Domains in the left navigation.

Review the domain configuration shown. For a first publish, this section may be empty or show a default sandbox domain.

**Expected result:** The Domains section is visible. Note whether a custom domain is configured or whether the section is empty.

{% hint style="info" %}
You can also manage domains from the publish panel after your first publish. The Manage Domains option appears there once the app is live. For this exercise, you are reviewing the current state — you do not need to configure a custom domain.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 2 — Review the Security Scan

{% stepper %}
{% step %}
**Open the Security Scan Results**

In your app workspace, select More in the action bar. From the menu, select Security.

The Security screen opens and shows the security scan results for your current build version.

**Expected result:** The Security screen is visible. Build versions are listed, and any findings are shown by severity.

{% hint style="info" %}
**Concept:** The security scan runs automatically every time your app builds — you do not trigger it manually. The scanner (Trivy) checks your app's dependencies against known vulnerability databases and records findings using CVE (Common Vulnerabilities and Exposures) or GHSA (GitHub Security Advisory) identifiers. Results are kept per build version, so you can compare findings across versions as your app evolves.
{% endhint %}
{% endstep %}

{% step %}
**Note the Findings**

Review the findings listed for your current build version. For each finding, note:

* The severity level (for example: Critical, High, Medium, Low)
* The CVE or GHSA identifier
* Whether remediation is available from this screen

Record whether any findings require remediation before publishing. For this sandbox exercise, you are not required to remediate findings — you are practicing the review workflow.

**Expected result:** You can see findings (if any) listed by severity for the current build version. If the scan shows no findings, the screen will indicate a clean result.

{% hint style="success" %}
**Best practice:** In a production workflow, review security scan findings before every publish. For Critical or High severity findings, use the remediation option on this screen or update the affected dependency in your app's code before publishing to production.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 3 — Start the Publish Workflow

{% stepper %}
{% step %}
**Select Publish**

Return to the main app workspace view. Select Publish in the top bar of the workspace.

{% hint style="warning" %}
If the Publish button is unavailable (greyed out or not clickable), check the mode control in the prompt box. Publish is not available in Plan Mode. Select the mode control and switch to Build Mode, then select Publish again.
{% endhint %}

The Publish your Application dialog appears.

**Expected result:** The Publish your Application dialog is open.
{% endstep %}

{% step %}
**Confirm the Publish**

In the Publish your Application dialog, select Publish App.

**Expected result:** The dialog advances to the deployment target selection screen.
{% endstep %}
{% endstepper %}

### Procedure 4 — Choose Deployment Targets

{% stepper %}
{% step %}
**Select Deployment Targets for Web and API**

The Publish App - Deployment screen lists each service your app exposes — typically Web and API — each with a deployment target menu.

For each service, open the deployment target menu and select Google Kubernetes Engine (or the sandbox deployment target your instructor has specified).

**Expected result:** Both Web and API show your selected deployment target.

Select Continue.

**Expected result:** The screen advances to the Publish Checklist.

{% hint style="info" %}
Your deployment target choice can be changed later. Republishing after changing the target redeploys the affected services to the new target.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 5 — Complete the Publish Checklist

{% stepper %}
{% step %}
**Check the Database Status**

The Publish Checklist screen shows three items: Database (marked Required), External Services Used, and Environment Variables.

Look at the Database row.

**If the Database row shows "Not Configured":** Continue to the next step to connect a database.

**If the Database row already shows "Configured":** Skip to **Review External Services and Environment Variables**.

{% hint style="warning" %}
You cannot publish without a configured database. The platform requires a database connection before the Publish button becomes active on the checklist screen.
{% endhint %}
{% endstep %}

{% step %}
**Open Manage Database**

In the Database row, select Connect.

The Manage Database dialog opens. It lists the available databases in your project — you will see at least one entry, typically labelled with your app name followed by "Managed DB" (for example, Borrower Status Check Managed DB).

**Expected result:** Manage Database is open and at least one database is listed.

{% hint style="info" %}
**Concept:** The platform runs a PostgreSQL database for your app — this is the Managed DB. It is pre-provisioned in your sandbox; you do not need to create it. Your action here is to connect your app to it and choose or create a schema.
{% endhint %}
{% endstep %}

{% step %}
**Connect to the Database**

In the Manage Database dialog, select Connect beside the database you want to use.

The Select Schema dialog opens.

**Expected result:** Select Schema is open with two options: **Create New Schema** and **Existing Schemas**.
{% endstep %}

{% step %}
**Create a New Schema**

Select Create New Schema.

A name field appears. Type a schema name — for example, `borrower_status` — and select Create & Connect.

**Expected result:** The schema is created and connected. Manage Database shows the database as **Connected** with the schema name you entered. You are assigned as **Root User** with full ownership of the schema.

{% hint style="info" %}
If a schema already exists for this app from a previous session, you can select Existing Schemas instead, choose the schema, select an access level (Standard (Read & Write) or Read Only), and select Connect. For this exercise, creating a new schema is the standard path.
{% endhint %}

{% hint style="warning" %}
**Checkpoint:** After connecting, return to the Publish Checklist. The Database row should now show Configured. If it still shows Not Configured, reopen Manage Database and confirm the connection completed successfully.
{% endhint %}
{% endstep %}

{% step %}
**Review External Services and Environment Variables**

In the Publish Checklist, review the External Services Used and Environment Variables sections.

For each item listed, confirm that the Preview and Publish scope values are correct for your sandbox environment.

**Expected result:** You have reviewed all three checklist items. Database is Configured. External Services and Environment Variables reflect your sandbox setup.
{% endstep %}
{% endstepper %}

### Procedure 6 — Publish and Confirm

{% stepper %}
{% step %}
**Publish the App**

Select Publish at the bottom of the Publish Checklist.

The Publishing App dialog opens. It shows each service — API and Web — with an In Progress status. The Publish button reads Publishing while the process runs.

**Expected result:** The Publishing App dialog is visible and both services show In Progress.

{% hint style="info" %}
Publishing may take a few minutes. You do not need to stay on this screen — the platform will send a notification when the app is ready. However, staying on the screen lets you see the status update in real time.
{% endhint %}
{% endstep %}

{% step %}
**Wait for the Published Notification**

Wait for the notification that your app is published and ready. When it arrives, the publish panel updates to show:

* The published version and its date
* The live URL for your app (which you can open or copy)
* A **Manage Domains** option

**Expected result:** A notification confirms the app is published. The publish panel shows a live URL.

{% hint style="warning" %}
**Checkpoint:** If you see Publishing Failed instead of a success notification, do not close the dialog. See the Troubleshooting Quick Reference for the three recovery options.
{% endhint %}
{% endstep %}

{% step %}
**Open the Live URL**

**Expected result:** Your app loads in the browser. The page is accessible and functional.
{% endstep %}

{% step %}
**Confirm Brand and Domain**

In the browser, confirm:

1. The app is accessible at the published URL.
2. The design system fonts and colors from Lesson 5 are visible in the published app — the bank's brand is applied, not the platform's default styling.

**Expected result:** The published app displays your bank's brand colors and fonts. The design system you applied in Lesson 5 is reflected in the live environment.

{% hint style="warning" %}
**Checkpoint:** If the app loads but shows default platform styling instead of your bank's brand, return to App Config → Brand Guidelines in the App Builder workspace and confirm the design system from Lesson 5 is selected. Then republish.
{% endhint %}
{% endstep %}
{% endstepper %}

## Troubleshooting

<details>

<summary>Fixes for common problems in this lab</summary>

| **Symptom**                                                                    | **Cause**                                                                                                                               | **Fix**                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Publish button is unavailable (greyed out or unclickable)**                  | The app is in Plan Mode. Publish is not available in Plan Mode.                                                                         | Select the mode control in the prompt box and switch to **Build Mode**. The Publish button becomes active.                                                                                                                                                                                                                                                                                                                                 |
| **Database shows "Not Configured" in the Publish Checklist**                   | No database has been connected to this app for the Publish scope.                                                                       | Select **Connect** beside the Database row. In Manage Database, select **Connect** beside a database, then complete the Select Schema flow (Create New Schema or Existing Schemas).                                                                                                                                                                                                                                                        |
| **Publishing Failed dialog appears**                                           | The deployment encountered an error. Common example: a missing `package.json` causes an `npm install` failure with error code `ENOENT`. | Three options: (1) **Try Again** — retries the publish immediately. (2) **Fix with AI** — sends the failure to the build agent, which works through the error in the build conversation and shows each step it takes; ends with a summary and "Live preview is ready." (3) **View Error Details** — opens the deploy log with numbered build steps and the underlying error message, useful for diagnosing the root cause before retrying. |
| **App loads but shows default platform styling, not the bank's brand**         | The design system from Lesson 5 is not applied to the published build, or it was applied after the last publish.                        | In App Builder, go to App Config → Brand Guidelines and confirm the correct design system is selected. Then republish.                                                                                                                                                                                                                                                                                                                     |
| **"You don't have access to publish apps" appears when hovering over Publish** | Your user account does not have the Publish an app capability.                                                                          | Contact your instructor or account admin. Roles with this capability: Developer, Account Admin, Organisation Admin.                                                                                                                                                                                                                                                                                                                        |
| **Security scan shows no results**                                             | The scan has not yet run, or the current build has no dependency vulnerabilities.                                                       | If the build is recent and the scan has not run, wait a moment and refresh — scans run automatically on each build (OnBuild trigger). A clean result (no findings) is a valid outcome.                                                                                                                                                                                                                                                     |

</details>

## Checkpoints and validation

### Embedded Checkpoints (Formative)

Use these checkpoints to confirm each phase of the exercise completed correctly before moving to the next.

#### Checkpoint 1 — App Config reviewed

**After:** Procedure 1 (Steps 1–3)

**Confirm:** You have opened App Config and navigated to at least Basic Config and Domains. You can see all eight sections in the left navigation.

**How to confirm:** App Config is open in your workspace and the left navigation lists: Basic Config, Database, Domains, Brand Guidelines, Environment Variables, Integrations, Developer Tools, Preferences.

**If this fails:** Select App Config in the workspace action bar. If the action bar does not show App Config, confirm you are in Build Mode.

#### Checkpoint 2 — Security scan reviewed

**After:** Procedure 2 (Steps 4–5)

**Confirm:** You have opened More → Security and can see the scan results for your current build version.

**How to confirm:** The Security screen is visible. Build versions are listed. You have noted whether any CVE or GHSA findings are present and their severity levels.

**If this fails:** Select More in the workspace action bar and confirm Security appears in the menu. If the menu does not appear, confirm you are in the app workspace (not in App Config or another sub-screen).

#### Checkpoint 3 — Database connected

**After:** Step 12

**Confirm:** The Database row in the Publish Checklist shows Configured, not Not Configured.

**How to confirm:** Return to the Publish Checklist. The Database row shows Configured with the schema name you created or selected.

**If this fails:** Select Connect in the Database row again. In Manage Database, confirm the database shows Connected with a schema name and a Manage button. If it does not, repeat the Select Schema flow.

#### Checkpoint 4 — App published successfully

**After:** Step 15

**Confirm:** You have received the published notification and the publish panel shows a live URL.

**How to confirm:** The publish panel is visible and shows a live URL that you can open or copy. The Publishing App dialog no longer shows In Progress.

**If this fails:** See the Publishing Failed row in the Troubleshooting Quick Reference above.

#### Checkpoint 5 — Published app accessible with brand applied

**After:** Steps 16–17

**Confirm:** Your app loads in a browser at the published URL and displays the bank's brand colors and fonts from Lesson 5.

**How to confirm:** Open the live URL. The app is accessible. The visual design matches the design system you applied in Lesson 5 — not the platform's default styling.

**If this fails:** Return to App Config → Brand Guidelines in the App Builder workspace. Confirm the correct design system is selected. Republish.

**Assessment Component:** None. EO-4 is assessed in the Module Assessment (Lesson 8). No summative items are included in this lesson.

## Solution reference

<details>

<summary>The completed state of your work</summary>

The following describes the completed state of your app after all procedures in this exercise are successfully executed.

### App Config — Expected Final State

| **Section**               | **Expected state**                                                                                    |
| ------------------------- | ----------------------------------------------------------------------------------------------------- |
| **Basic Config**          | App identity fields populated from the prompt used in Lesson 3 — no changes required in this exercise |
| **Database**              | Connected — shows the Managed DB with the schema name you created (for example, `borrower_status`)    |
| **Domains**               | Default sandbox domain visible; no custom domain configured unless your instructor directed otherwise |
| **Brand Guidelines**      | The design system from Lesson 5 is selected and applied                                               |
| **Environment Variables** | Reviewed — values match your sandbox configuration                                                    |
| **Integrations**          | Reviewed — any external services connected in earlier lessons are listed                              |
| **Developer Tools**       | Reviewed — no changes required                                                                        |
| **Preferences**           | Reviewed — no changes required                                                                        |

### Security Scan — Expected Final State

* You have opened More → Security and reviewed the findings for the current build version.
* Findings (if any) are noted by severity (Critical, High, Medium, Low) with CVE or GHSA identifiers.
* No remediation is required for this sandbox exercise — review only.

### Publish — Expected Final State

* **Deployment targets:** Web and API are both deployed to Google Kubernetes Engine (or the sandbox equivalent).
* **Database:** Connected — the Managed DB with schema `borrower_status` (or the name you chose) is configured for the Publish scope.
* **External Services Used:** Reviewed and confirmed.
* **Environment Variables:** Reviewed and confirmed.
* **Publish status:** Published — both API and Web services completed successfully.
* **Live URL:** Available in the publish panel; the app is accessible in a browser.

### Published App — Expected Visual State

When you open the live URL in a browser:

* The app loads without errors.
* The bank's brand colors (from the design system created in Lesson 5) are visible in the app's UI — buttons, headers, and accents reflect the brand palette.
* The bank's fonts (configured in the design system) are applied throughout the app.
* The app is functional — the borrower status check interface is accessible and responds to interaction.

{% hint style="success" %}
**Best practice:** After every publish, open the live URL and confirm the app is accessible before sharing it with stakeholders. A successful publish notification confirms the deployment completed — it does not confirm the app is error-free at runtime. A quick browser check catches any runtime issues that the build process did not surface.
{% endhint %}

</details>

{% hint style="success" %}
**Lab complete.** Confirm every checkpoint above before you move on.
{% endhint %}


---

# 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
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

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

```
GET https://docs.uptiq.ai/academy/tier-2-core-skills/m06-app-builder-design-system-builder/lab-6-configure-scan-and-publish-the-app.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.

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