Skip to content

[foreman_installer] Collect satellite-clone data#4238

Open
pmoravec wants to merge 1 commit intososreport:mainfrom
pmoravec:sos-pmoravec-satellite-clone
Open

[foreman_installer] Collect satellite-clone data#4238
pmoravec wants to merge 1 commit intososreport:mainfrom
pmoravec:sos-pmoravec-satellite-clone

Conversation

@pmoravec
Copy link
Copy Markdown
Contributor

Collect satellite-clone related data, as a wrapper of foreman/Satellite installation with cloned data.

Closes: #4238


Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines

  • Is the commit message split over multiple lines and hard-wrapped at 72 characters?
  • Is the subject and message clear and concise?
  • Does the subject start with [plugin_name] if submitting a plugin patch or a [section_name] if part of the core sosreport code?
  • Does the commit contain a Signed-off-by: First Lastname email@example.com?
  • Are any related Issues or existing PRs properly referenced via a Closes (Issue) or Resolved (PR) line?
  • Are all passwords or private data gathered by this PR obfuscated?

Collect satellite-clone related data, as a wrapper of foreman/Satellite
installation with cloned data.

Closes: sosreport#4238

Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
@pmoravec
Copy link
Copy Markdown
Contributor Author

Hi @evgeni , could you please review if I haven't forgotten anything, or if the collected data cant contain some sensitive info (passwords or similar)? AFAIK no, but more eyes see more.

@packit-as-a-service
Copy link
Copy Markdown

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo dnf install -y 'dnf*-command(copr)'
  • dnf copr enable packit/sosreport-sos-4238
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.


self.add_copy_spec([
"/usr/share/satellite-clone/logs",
"/usr/share/satellite-clone/satellite-clone-vars.yml",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can contain sensitive data

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you show an example, please?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"/usr/share/satellite-clone/logs",
"/usr/share/satellite-clone/satellite-clone-vars.yml",
"/usr/share/satellite-clone/ansible.production.cfg",
"/var/log/satellite-clone/playbook.log",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can contain sensitive data

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evgeni
Copy link
Copy Markdown
Contributor

evgeni commented Feb 13, 2026

can this be an own collector? it's not really foreman related.

@pmoravec
Copy link
Copy Markdown
Contributor Author

can this be an own collector? it's not really foreman related.

I was considering this, so I put the collection under RedHatForemanInstaller class only. Though I agree it is independent on foreman-installer or also/even satellite-installer. On the other side I didnt want to bring a tiny plugin that would be rarely used (from the universe of all sosreports collections).

I am not against putting this into a separate plugin, I see pros and cons for both solutions. Let see for others feedback (@TurboTurtle shall have some Satellite experience as well?).

Copy link
Copy Markdown
Member

@TurboTurtle TurboTurtle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack to the code.

I personally wouldn't consider activation keys as sensitive data, but I'll defer to Pavel and Evgeni on that.

@pmoravec feel free to merge after deciding the above.

edit:

I am not against putting this into a separate plugin, I see pros and cons for both solutions. Let see for others feedback (@TurboTurtle shall have some Satellite experience as well?).

Uh, no real opinion here. It'd be a small plugin indeed, and I wonder what the enablement trigger would be such that the same host wouldn't also already trigger this plugin.

@TurboTurtle TurboTurtle added Reviewed/Ready for Merge Has been reviewed, ready for merge Kind/Collection New or updated command or file collection labels Feb 14, 2026
@evgeni
Copy link
Copy Markdown
Contributor

evgeni commented Feb 16, 2026

I think the RH Portal team considers AKs secrets.

@TurboTurtle
Copy link
Copy Markdown
Member

I think the RH Portal team considers AKs secrets.

Ack. No pushback from me.

@arif-ali arif-ali added Status/Need More Info Feedback is required to reproduce issue or to continue work and removed Reviewed/Ready for Merge Has been reviewed, ready for merge labels Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Kind/Collection New or updated command or file collection Status/Need More Info Feedback is required to reproduce issue or to continue work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants