Foreman Cockpit 2.0.0 - for Cockpit > 0.78

Hi there foreman-cockpit users!

If you're using Foreman Cockpit and your hosts use Cockpit newer than
0.78, you probably have noticed the plugin does not work. That's because
of a change of the URL endpoints the plugin uses to connect to Cockpit.

I got in touch with the Cockpit team, and tried to find a way to support
both in foreman_cockpit, but there are a number of limitations that make
this very hard to do*, especially since we don't store Cockpit
credentials in Foreman.

As far as I understood, some of the current Cockpit URLs are going to be
stable endpoints, and they've taken our use case to improve their
product and either redirect old URLs, offer a 'version' header… in
future versions.

The newest version of Foreman Cockpit that supports the new set of URLs
will be published shortly after these two pull requests are merged:

Special thanks to Dirk Goetz from Netways for contributing with a pull
request with the new set of URLs (Cockpit URLs updated by dgoetz · Pull Request #3 · theforeman/foreman_cockpit · GitHub)

Thanks for reading, let me know if you have any questions, want to help,
etc… :slight_smile:

  • Non-existing URLs point to Cockpit login, and only after the login
    you'd get a 404, or a redirect to a working page that may not have to
    do with the original URL.
··· -- Daniel Lobato Garcia

@dLobatog

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: elobato (Daniel Lobato Garcia) | Keybase

This update is very much appreciated. I had been trying to get this working
last week in my Foreman project and thought I may have been missing
something in the configuration steps.

I have yet to get it working but I will be following updates that follow in
regards to Cockpit + Foreman.

Thanks again.

Related to this… is there any work around being able to use the smart
proxy as a bridge? So, foreman is in one network segment and the host
with cockpit in a different network segment?

– bk

> This update is very much appreciated. I had been trying to get this working
> last week in my Foreman project and thought I may have been missing
> something in the configuration steps.
>
> I have yet to get it working but I will be following updates that follow in
> regards to Cockpit + Foreman.

Tatenda, foreman-cockpit 2.0.1 deb and rpm packages are out. It's on
1.9, 1.10, 1.11 and nightly repositories.

··· On 04/12, Tatenda Mupaso wrote:

Thanks again.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Daniel Lobato Garcia

@dLobatog
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

> Related to this… is there any work around being able to use the smart proxy
> as a bridge? So, foreman is in one network segment and the host with cockpit
> in a different network segment?

I chatted with some people on the #cockpit IRC but this doesn't seem to
be an option yet. They're exploring how to do it, so I gave them my use
case, which I hope they'll take into account when designing remote
authentication in Cockpit.

··· On 04/13, Bryan Kearney wrote:

– bk


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Daniel Lobato Garcia

@dLobatog
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato