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

Address findings from migration testing #91

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

mlw
Copy link
Contributor

@mlw mlw commented Oct 30, 2024

This PR adds additional cleanup for two cases:

  1. Upgrading from NPS Santa to NPS Santa
    The com.northpolesec.santa.migration.plist launch daemon artifact was being left on disk. This was due to tamper protections preventing the deletion on installation of the upgraded version. While benign, it's not ideal to leave the artifact on disk. This file is now removed.

  2. When Google Santa is attempted to be installed over NPS Santa, the com.google.santa.newsyslog.conf artifact was not cleaned up.
    During discussion, we decided it would be best that instead of always attempting to remove this file, we should instead mv the contents to the new com.northpolesec.santa.newsyslog.conf path. This will help NPS deployments maintain the same configuration as the previous deployments in the rare event any changes to this file were made.

@mlw mlw added the cleanup label Oct 30, 2024
@mlw mlw added this to the 2024.10 milestone Oct 30, 2024
@mlw mlw requested a review from a team as a code owner October 30, 2024 19:23
@mlw mlw merged commit 04e710a into northpolesec:main Oct 30, 2024
9 checks passed
pmarkowsky pushed a commit to pmarkowsky/nps-santa that referenced this pull request Nov 3, 2024
This PR adds additional cleanup for two cases:

1. Upgrading from NPS Santa to NPS Santa
The `com.northpolesec.santa.migration.plist` launch daemon artifact was
being left on disk. This was due to tamper protections preventing the
deletion on installation of the upgraded version. While benign, it's not
ideal to leave the artifact on disk. This file is now removed.

2. When Google Santa is attempted to be installed over NPS Santa, the
`com.google.santa.newsyslog.conf` artifact was not cleaned up.
During discussion, we decided it would be best that instead of always
attempting to remove this file, we should instead mv the contents to the
new `com.northpolesec.santa.newsyslog.conf` path. This will help NPS
deployments maintain the same configuration as the previous deployments
in the rare event any changes to this file were made.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants