Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Arch Linux (or just more generic checks that would work on all distributions) #36

Open
5 of 10 tasks
wknapik opened this issue Dec 20, 2024 · 4 comments
Open
5 of 10 tasks

Comments

@wknapik
Copy link

wknapik commented Dec 20, 2024

  • Firewall check expects ufw or firewalld #39
  • The openssh package in Arch is not split between the server and client tools. I don't run sshd, but need the client tools. The ssh configuration check fails, even though there's no risk.
  • The checks for ssh keys claim the keys are password protected and use strong encryption, even though the tool never saw any of my keys (which are not stored at ~/.ssh).
  • The encryption check is failing, even though encryption via luks is enabled.  #45
  • The secure boot check is skipped, even though secure boot is enabled.
    % od --address-radix=n --format=u1 /sys/firmware/efi/efivars/SecureBoot-*|tr -s ' ' '\t'|cut -f6
    1
    %
  • The docker check is failing, even though the docker group has no members. The test expects exit code 1 from docker run --rm hello-world, but it's 126 on my system.
  • The check for system updates could be improved #52
    • The check times out on snapd, if the daemon isn't running. I don't use snap packages, except for occasional testing of the Brave snap, so I only enable the daemon on-demand.
    • The check for pacman updates only runs -Qu, but never calls -Sy, so it's not adequate to determine if updates are available. Also, there's no check for AUR updates.
  • The root helper fails instantly with no error messages, incl. when started as root. With --verbose, it says
    Failed to create listener: file file+net socket: getsockopt: socket operation on non-socket
    
dz0ny added a commit that referenced this issue Dec 23, 2024
…lper

Helper is not alllowed to run outside systemd

ref: #36
dz0ny added a commit that referenced this issue Dec 24, 2024
…ecks (#38)

* refactor: Consolidate file reading and enhance status reporting in checks

* fix: Correct JSON field name for Linux OS version in NewDevice struct

* Add tests for checks

* fix: Improve error logging and enhance socket listening message in helper

Helper is not alllowed to run outside systemd

ref: #36

* fix: Update path check for UEFI mode in SecureBoot check
dz0ny added a commit that referenced this issue Dec 30, 2024
@fmarier
Copy link

fmarier commented Jan 2, 2025

[ ] The firewall check expects firewalld, or ufw, which are not necessary to set up a firewall, so the check fails if neither are used, but a firewall is active.

I filed a separate issue (#39) to track this one since it's not Arch-specific and there seems to be another problem related to that check.

@dz0ny
Copy link
Member

dz0ny commented Jan 16, 2025

Support for Arch Linux has been added with the release of 0.0.71. Temporary instructions are available at https://pkg.paretosecurity.com/#:~:text=Archlinux%2Dbased%20distributions. Let me know how it goes and if you have issues installing the app.

For the remaining issues and suggestions, there will be separate tickets.

@wknapik
Copy link
Author

wknapik commented Jan 16, 2025

The instructions at https://pkg.paretosecurity.com/ appear to be broken in a variety of ways, across distros.

The copy-pasteable code doesn't work (sometimes due to missing newlines, or ;/&&, sometimes due to invalid code; sometimes necessary steps are missing), the key for pacman is owned by [email protected] (was expecting @paretosecurity.com), the url for the arch repo returns a 404...

Could you please publish the package to AUR? Then we'll be able to install with a standard one-liner.

@wknapik
Copy link
Author

wknapik commented Jan 21, 2025

0.0.72@914c8e132534b62c1892a5b546f789b302df7e21 2025-01-17T20:10:52Z

I'd expect this system to pass all checks. At the moment, I get:

  • Skipped: ssh keys, docker, firewall, ssh server
  • Failing: encryption
  • Timed out: updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants