semaphore icon indicating copy to clipboard operation
semaphore copied to clipboard

Problem:

Open codutti opened this issue 9 months ago • 2 comments

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

codutti avatar May 13 '25 09:05 codutti

Just an FYI just use "ln -s " within your repositories :)

kris9854 avatar May 13 '25 11:05 kris9854

As a workaround I exported the project, edited the inventory inside the file and reimported the file again.

codutti avatar May 13 '25 13:05 codutti