Files
mvdbeek f80feb6f42 Tighten Admin panel extension validation and trim unused code
- Skip directories without a config.yml silently, like webhooks, so the
  shipped sample directory no longer logs a warning on every startup.
- Reject duplicate item ids within an extension; the second link would
  otherwise open the first item.
- Restrict item URLs to absolute http(s) URLs or paths from Galaxy's root,
  rejecting javascript:, protocol-relative and slash-less relative URLs.
- Forbid unknown keys so typos such as 'traget' are reported instead of
  silently falling back to defaults.
- Remove the unused get_extension/get_item manager methods and their tests.
- Drop tests that repeat existing coverage (second integration server for an
  empty directory, AdminPanel no-extensions case) and no-op mock hooks.
2026-10-15 12:17:44 +02:00

22 lines
823 B
Plaintext

# Sample Admin panel extension. Copy this directory, rename this file to
# config.yml, and set admin_extensions_dir in galaxy.yml to the parent
# directory. Each extension adds one section to the Admin panel.
id: sample
section: Sample Extension
items:
# Shown inside Galaxy's center panel. A URL is either absolute (http:// or
# https://) or a path starting with '/', which is resolved against Galaxy's
# root so it works behind a URL prefix. External sites can only be framed if
# they allow it (X-Frame-Options / Content-Security-Policy frame-ancestors).
- id: welcome
type: link
title: Welcome Page
url: /static/welcome.html
target: iframe
# Opened in a new browser tab.
- id: docs
type: link
title: Galaxy Documentation
url: https://docs.galaxyproject.org
target: new_tab