Skip to content

Plugin System

The plugin system enables services to expose an embedded UI inside Deployment Details (rendered as an iframe), and optionally add shortcuts in the environment's left sidebar or globally in the top header.

Managed services may populate these plugin properties automatically via the Managed Framework, and you can always override them explicitly in YAML.

Non-managed services can also define these properties in YAML, making any deployment behave like a plugin without being a managed service.

What it does

  • Embed a UI in Deployment Details when enabled

Embedded View

  • Optionally show a sidebar shortcut to the embedded view (environment-scoped)

Sidebar example

  • Optionally show a global shortcut in the top header (organization-wide access)

  • Provide basic authentication integration with Quix Cloud so publicly exposed services don't require a separate login (optional)

YAML configuration

In your deployment YAML, you can enable the embedded UI and, optionally, sidebar or global shortcuts:

plugin:
  embeddedView:                # Can be a boolean or object
    enabled: true              # Enables embedded view
    hideHeader: false          # Optional. If true, hides the header (deployment name + menu)
    default: true              # Optional. If true, shows embedded view by default when opening deployment
  sidebarItem:                 # Optional environment sidebar shortcut
    show: true                 # Whether to display a shortcut in the sidebar
    label: "Configuration"     # Text for the menu item
    icon: "tune"               # Material icon name
    order: 1                   # Ordering (lower = higher)
    badge: "Alpha"             # Optional. Add a short label next to the sidebar item
  globalItem:                  # Optional global header shortcut (organization-wide)
    show: true                 # Whether to display in the global header
    label: "Test Manager"      # Text for the menu item
    order: 1                   # Ordering (lower = higher)
    badge: "Beta"              # Optional. Add a short label next to the item

Configuration details

  • plugin.embeddedView: object configuring the embedded view behavior.
  • enabled (boolean, default = false): Enables the embedded view.
  • hideHeader (boolean, default = false): If true, hides the deployment name and menu in the embedded view.
  • default (boolean, default = false): If true, displays the embedded view by default when opening the deployment.

  • plugin.sidebarItem: optional object configuring the environment's left sidebar shortcut.

  • show: boolean. Whether to display the shortcut.
  • label: string. Text for the menu item.
  • icon: string. Must be a Google Material icon code (e.g., tune, settings, play_arrow).
  • order: number. Lower values appear higher in the sidebar.
  • badge: optional string (max 15 characters). Adds a short label next to the sidebar item (e.g., "Alpha", "Beta", "Experimental").

  • plugin.globalItem: optional object configuring a global shortcut in the top header (organization-wide access).

  • show: boolean. Whether to display the global shortcut.
  • label: string. Text for the menu item.
  • order: number. Lower values appear first (left to right). Plugins with the same order are sorted by the default workspace order in the project.
  • badge: optional string (max 15 characters). Adds a short label next to the item (e.g., "Beta", "Preview").

Global plugins

Global plugins appear in the top header of Quix Cloud and provide organization-wide access to a plugin's embedded UI, regardless of which environment or workspace is currently active.

What are global plugins?

Unlike environment-scoped sidebarItem shortcuts (which only appear within a specific environment), global plugins:

  • Are accessible from anywhere in Quix Cloud via the top header.
  • Provide cross-workspace and cross-environment access to the plugin.
  • Are visible to all users in the organization who have the plugins:read permission for that deployment.
  • Appear in the order specified by the order field (lower values appear first, left to right).
  • When multiple plugins share the same order value, they are sorted by the default workspace order in the project.

When to use global plugins

Use globalItem for plugins that:

  • Provide organization-wide services or dashboards (e.g., test managers, monitoring tools, admin panels).
  • Need to be accessible regardless of the current environment context.
  • Serve multiple workspaces or projects.

Permissions and access control

Global plugins use a specialized permission model:

  • Users need the plugins:read permission on the deployment to see and access the global plugin.
  • The Operator role automatically grants access to global plugins.
  • Users can access a global plugin deployment even without workspace:read permissions on the workspace containing the deployment, as long as they have plugins:read on that specific deployment.
  • This allows you to expose specific tools organization-wide without granting full workspace access.

Configuration example

To create a global plugin for a test manager:

deployments:
  - name: Test Manager
    application: TestManager
    version: latest
    deploymentType: Managed
    plugin:
      embeddedView:
        enabled: true
        default: true
      globalItem:
        show: true
        label: "Test Manager"
        order: 1
        badge: "Beta"

This configuration:

  • Enables the embedded view and makes it the default view when opening the deployment.
  • Creates a global shortcut labeled "Test Manager" in the top header.
  • Sets the display order to 1 (appears first).
  • Adds a "Beta" badge to indicate the feature status.

Embedded view URL

When the plugin feature is enabled, the deployment exposes a public URL dedicated to the embedded UI. The Portal uses this URL to load the embedded view inside the iframe when embeddedView is enabled. This URL is not set in YAML; it’s exposed by the API.

Population rules:

  • Managed service → Derived from Managed Services conventions.
  • Non-managed service → Requires publicAccess to be enabled; resolves from the deployment’s public URL.

Authentication and authorization (optional)

Note Authentication is not required. If your frontend app doesn’t need it, you can ignore this section. The details below are only useful if you want your embedded app to reuse Quix’s authentication and authorization system, so it follows the same user and environment permissions.

When used, the embedded view inherits authentication and authorization from the Quix platform: no separate login is required, and the same user/environment permissions apply.

When an embedded view loads, the Plugin system injects the Quix user token into the iframe. The UI can then use this token to call the backend securely.

How the token is injected in the embedded view

On initial load of the embedded view (and on reload), the Portal provides the user token to the iframe so the UI can authenticate calls to the backend.

Frontend token exchange (postMessage)

The token is passed via window.postMessage between the parent (Portal) and the embedded iframe. The following message types are exchanged:

  • REQUEST_AUTH_TOKEN — sent by the iframe to ask the parent for a token
  • AUTH_TOKEN — sent by the parent with { token: string }

Example implementation in the embedded view (iframe):

// Ask the parent window (Portal) for a token
window.parent.postMessage({ type: 'REQUEST_AUTH_TOKEN' }, '*');

// Listen for the token response from the parent
function messageHandler(event: MessageEvent) {
  const { data } = event;
  if (data?.type === 'AUTH_TOKEN' && data.token) {
    // Your app-specific setter
    setToken(data.token);
    // Optionally remove the listener if you only need the token once
    // window.removeEventListener('message', messageHandler);
  }
}

window.addEventListener('message', messageHandler);

Example implementation in the Portal (parent window):

// Listen for requests from the target iframe
function messageHandler(event: MessageEvent) {
  const { origin, data } = event;

  // Ensure the origin matches the iframe URL you expect
  if (origin !== targetUrl) return;

  if (data?.type === 'REQUEST_AUTH_TOKEN') {
    // Reply with the token to the requesting iframe
    const iframeWindow = deploymentIframe?.contentWindow;
    iframeWindow?.postMessage({ type: 'AUTH_TOKEN', token }, targetUrl);
  }
}

window.addEventListener('message', messageHandler);

Important security considerations:

  • Always validate event.origin in the parent before responding.
  • Prefer using a specific targetUrl over '*' when posting back to the iframe.
  • Remove listeners when no longer needed to avoid leaks.

How to handle the token in the backend

If you want to validate and authorize requests against Quix, you can install the Quix Portal helper package from the public feed:

pip install -i https://pkgs.dev.azure.com/quix-analytics/53f7fe95-59fe-4307-b479-2473b96de6d1/_packaging/public/pypi/simple/ quixportal

Then, in the backend service, validate the token and enforce authorization for each request. For example:

import os
from quixportal.auth import Auth

# Instantiate authentication client. By default it will read
# the portal API url from the environment variable Quix__Portal__Api
auth = Auth()

# Obtain the authorization token, traditionally passed as a header
# Authorization: Bearer <token>
token = ...

# Example to obtain "Read" access to the "Workspace" resource
resource_type = "Workspace"
workspace_id = os.environ["Quix__Workspace__Id"]
permissions = "Read"

# Authorize the token bearer to access the resource
if auth.validate_permissions(
    token=token,
    resourceType=resource_type,
    resourceID=workspace_id,
    permissions=permissions,
):
    print("Bearer is authorized to access the resource")
else:
    print("Bearer is not authorized to access the resource")