<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>55056</bug_id>
          
          <creation_ts>2025-07-04 15:11:56 +0300</creation_ts>
          <short_desc>salt: Не распознаются ссылки git://</short_desc>
          <delta_ts>2025-07-04 15:11:56 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>salt</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Valentin Rosavitskiy">valintinr</assigned_to>
          <cc>cas</cc>
    
    <cc>valintinr</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>268353</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-07-04 15:11:56 +0300</bug_when>
    <thetext>Шаги
====

Необходимо указать любой Git-хост (например, GitLab), его публичный ключ ssh-ed25519, путь к репозиторию на нём и токен пользователя:

1. # _host=git.host _host_key=AAAA... _path=path/to/repo _token=api-token
apt-get install -y salt-master python3-module-GitPython &amp;&amp; \
    ssh-keygen -t ed25519 -N &apos;&apos; -f ~/.ssh/id_ed25519 &amp;&amp; \
    cat ~/.ssh/id_ed25519.pub &amp;&amp; \
    echo -e &quot;Host gitlab.basealt.space\n    IdentityFile /root/.ssh/id_ed25519&quot; &gt; ~/.ssh/config &amp;&amp; \
    echo &quot;$_host ssh-ed25519 $_host_key&quot; &gt; ~/.ssh/known_hosts &amp;&amp; \
    cat &gt; /etc/salt/master.d/git.conf &lt;&lt; EOF
fileserver_backend:
  - gitfs
gitfs_provider: gitpython
gitfs_remotes:
  - &quot;https://git:$_token@$_host/$_path&quot;
  - &quot;git://$_host/$_path.git&quot;
  - &quot;ssh://git@$_host/$_path.git&quot;
  - &quot;git@$_host:$_path.git&quot;
EOF

2. # systemctl enable --now salt-master &amp;&amp; \
    sleep 5 &amp;&amp; \
    journalctl -u salt-master | grep -iE &apos;bad url data&apos;


Фактический результат
=====================

Согласно документации указание git:// поддерживается:

* https://docs.saltproject.io/en/3007/topics/tutorials/gitfs.html#:~:text=git%20would%20work.-,Specify%20one%20or%20more,-git%3A//%2C

Однако появляются предупреждения вида:

&gt; salt-master[2808]: [WARNING ] Found bad url data &apos;git://gitlab.basealt.space/qa-team/ansible/ansible-salt.git&apos;


Ожидаемый результат
===================

Нет предупреждения о git://.


Дополнительно
=============

В p11 дополнительно могут быть предупреждения о git@ (но они исправлены в 3007.5 в задании 388710.1):

&gt; salt-master[2808]: [WARNING ] Found bad url data &apos;git@gitlab.basealt.space:qa-team/ansible/ansible-salt.git&apos;

* https://github.com/saltstack/salt/issues/68069
* https://github.com/saltstack/salt/issues/68072
* https://github.com/saltstack/salt/pull/68089


Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[sisyphus] ALT Workstation 11.0 x86_64
salt-master-3007.5-alt1.noarch

[p11] ALT Server 11.0 x86_64
salt-master-3007.5-alt1.noarch</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>