semaphoreui / semaphore

Modern UI for Ansible, Terraform, OpenTofu, Bash, Pulumi.

Home Page:https://semaphoreui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem: web_host missing in slack alert title_link

h3po opened this issue · comments

Issue

Alerts sent via the slack webhook integration contain a title_link field that is supposed to link to the semaphore task output, but the protocol and hostname are missing from the link, even if the config option web_host is set:

payload:                                                                                                                                                                                                         
{                                                                                                                                                                                                                
  "attachments": [                                                                                                                                                                                               
    {                                                                                                                                                                                                            
      "title": "Task: test alert",                                                                                                                                                                               
      "title_link": "/project/1/templates/3?t=2147483624",                                                                                                                                                       
      "text": "execution #2147483624, status: ❌ERROR!",                                                                                                                                                         
      "color": "danger",                                                                                                                                                                                         
      "mrkdwn_in": [                                                                                                                                                                                             
        "text"                                                                                                                                                                                                   
      ],                                                                                                                                                                                                         
      "fields": [                                                                                                                                                                                                
        {                                                                                                                                                                                                        
          "title": "Author",                                                                                                                                                                                     
          "value": "admin",                                                                                                                                                                                      
          "short": true                                                                                 
        }                                                                                                                                                                                                        
      ]                             
    }                                                                                                                                                                                                            
  ]                                                                                                     
}

Impact

Service (scheduled tasks, alerts)

Installation method

Docker

Database

BoltDB

Browser

No response

Semaphore Version

v2.9.112-4f95ac8-1717065276

Ansible Version

No response

Logs & errors

No response

Manual installation - system information

No response

Configuration

config.json:

[...]
        "web_host": "http://semaphore.example.com:3000",
[...]
        "slack_alert": true,
        "slack_url": "https://zulip.example.com/api/v1/external/slack_incoming?api_key=foo&stream=1&topic=semaphore",

Additional information

No response

Fixed in 2.10.4-beta