Skip to content

Problem: #3022

@codutti

Description

@codutti

Issue

Hi, I observed that when editing an inventory value, the system enforces strict parsing that disallows absolute paths and paths starting with “../”. I often use absolute paths (and some beginning with “../”) to share inventories between tasks.
Interestingly, this strict parsing does not occur when adding a new inventory. It seems that the parsing rules applied during editing are unnecessarily restrictive.

Impact

Web-Frontend (what users interact with)

Installation method

Docker

Database

BoltDB

Browser

Chrome, Safari

Semaphore Version

v2.13.12-57809e9-1744141387

Ansible Version

ansible [core 2.18.4]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/semaphore/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/semaphore/apps/ansible/11.1.0/venv/lib/python3.12/site-packages/ansible
  ansible collection location = /home/semaphore/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/semaphore/apps/ansible/11.1.0/venv/bin/ansible
  python version = 3.12.9 (main, Feb  7 2025, 17:39:29) [GCC 14.2.0] (/opt/semaphore/apps/ansible/11.1.0/venv/bin/python3)
  jinja version = 3.1.6
  libyaml = True

Logs & errors

Image

Manual installation - system information

No response

Configuration

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions