Rundeck 4.17.0 - Inline images - HTML

109 views
Skip to first unread message

Roger McCarrick

unread,
Oct 25, 2023, 1:16:40 PM10/25/23
to rundeck-discuss
I updated to 4.17.0 from 4.10.0 last month.

At a previous job, I was using Rundeck 3.9-something. Back then, in the Description field of the options in a Job workflow, I use to put images to make the Rundeck job interface more friendly for my users. I just tried it in 4.17 and it is not working for me.

In the Description field I would load this image with:


When I load the Rundeck job page, I see a broken image icon. If I right click the icon, I can select "Open Image in new tab" and the image opens just fine in the new tab.

Am I doing this wrong? Or are images no longer allowed?
I know other html tags work.

thanks

rac...@rundeck.com

unread,
Oct 25, 2023, 1:41:39 PM10/25/23
to rundeck-discuss

Hi Roger,

I have tested it on Rundeck 4.17 and still working, check this definition:

- defaultTab: nodes description: '' executionEnabled: true id: 500c8138-61a4-4d9b-affe-bef3b90f419e loglevel: INFO name: HelloWorld nodeFilterEditable: false options: - description: <img src="https://www.rundeck.com/hubfs/jobs-community-page%201.png" width="75"> name: opt1 plugins: ExecutionLifecycle: null scheduleEnabled: true sequence: commands: - exec: whoami keepgoing: false strategy: node-first uuid: 500c8138-61a4-4d9b-affe-bef3b90f419e

Check the result. Make sure to use the right path.

Greetings.

Roger McCarrick

unread,
Oct 25, 2023, 3:18:56 PM10/25/23
to rundeck-discuss
Thanks very much for your quick reply.
Your image loads in my job. But mine doesn't. The URL to the image works in all browsers. Rundeck and the web server are on the same vlan, same subnet. There are no firewalls on between them.
I got onto the console of the Rundeck server,  fired up Firefox and was able to load my image in the browser. tried the IP instead of the name.

I did tail -f on the httpd access and error logs and nothing, so doesnt even seem to get to the web server.
I did a telnet to the web server from rundeck and it connects. Curl and wget on the url both work.
I tried grepping the image name in various rundeck logs to see if there were any errors with trying to retrieve the image but no joy. Can you think of any settings that may be blocking the image, or logs that may be relevant?

Nothing in the httpd logs says Rundeck isnt even trying to get it or blocked from getting it.

thanks

Chris Gadd

unread,
Oct 25, 2023, 3:37:48 PM10/25/23
to rundeck...@googlegroups.com

Are you accessing Rundeck with https? Ccheck your browser console, you’re loading an image over http rather than https, in Firefox that works for me but in Chrome I see this error:

 

Mixed Content: The page at 'https://myrundeckserver:4443/project/myproject/job/show/job-id' was loaded over HTTPS, but requested an insecure element 'http://mywebserver/myimage.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html

 

 

 


C2 General

From: rundeck...@googlegroups.com <rundeck...@googlegroups.com> On Behalf Of Roger McCarrick
Sent: Thursday, October 26, 2023 8:19 AM
To: rundeck-discuss <rundeck...@googlegroups.com>
Subject: [rundeck] Re: Rundeck 4.17.0 - Inline images - HTML

 

CYBER SECURITY WARNING: This email is from an external source - be careful of attachments and links. Please follow the Cyber Code and report suspicious emails.

--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/a83326f2-a54b-4dd3-af67-2e8dd8037ec3n%40googlegroups.com.

Roger McCarrick

unread,
Oct 25, 2023, 3:52:55 PM10/25/23
to rundeck-discuss
Ah .. i just checked it on Firefox and the rundeck job loads my image.
Ugh! 

Roger McCarrick

unread,
Oct 25, 2023, 3:54:57 PM10/25/23
to rundeck-discuss
Well I was planning on making my web server https .. I guess I have to do that sooner rather than later.
thanks

Roger

Roger McCarrick

unread,
Oct 25, 2023, 4:00:09 PM10/25/23
to rundeck-discuss
And yes ...Rundeck is https ... but the image I'm loading is from http .. 

Q: can the image be loaded directly from a directory on the the Rundeck server?
instead of <img src = http-something>  ... <image = file:/rundeck/imagefolder/image.png> 

??

Chris Gadd

unread,
Oct 25, 2023, 4:33:11 PM10/25/23
to rundeck...@googlegroups.com

Heh, our browsers saving us from ourselves too much sometimes.

For keeping images on the server, I haven’t tried but maybe if you set rundeck.gui.staticUserResources.enabled to true you can? See https://docs.rundeck.com/docs/administration/configuration/gui-customization.html#rundeck-gui-staticuserresources-enabled

 

/chris

Reply all
Reply to author
Forward
0 new messages