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

Add Fedora built in label #22465

Merged
merged 7 commits into from
Sep 30, 2024
Merged

Add Fedora built in label #22465

merged 7 commits into from
Sep 30, 2024

Conversation

mostlikelee
Copy link
Contributor

#21409

Add Fedora built in label

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.
    See Changes files for more information.
  • Input data is properly validated, SELECT * is avoided, SQL injection is prevented (using placeholders for values in statements)
  • Added/updated tests
  • If database migrations are included, checked table schema to confirm autoupdate
  • For database migrations:
    • Checked schema for all modified table for columns that will auto-update timestamps during migration.
    • [] Confirmed that updating the timestamps is acceptable, and will not cause unwanted side effects.
    • [] Ensured the correct collation is explicitly set for character columns (COLLATE utf8mb4_unicode_ci).
  • Manual QA for all new/changed functionality

spokanemac
spokanemac previously approved these changes Sep 27, 2024
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 83.72093% with 7 lines in your changes missing coverage. Please review.

Project coverage is 65.20%. Comparing base (ceb2bf9) to head (5e5a0da).
Report is 17 commits behind head on main.

Files with missing lines Patch % Lines
.../tables/20240927081858_CreateFedoraBuiltinLabel.go 80.00% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22465      +/-   ##
==========================================
+ Coverage   65.18%   65.20%   +0.02%     
==========================================
  Files        1494     1495       +1     
  Lines      116865   116940      +75     
  Branches     3571     3571              
==========================================
+ Hits        76173    76249      +76     
- Misses      33606    33608       +2     
+ Partials     7086     7083       -3     
Flag Coverage Δ
backend 66.48% <83.72%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -320,7 +320,7 @@ Fleetd will send stdout/stderr logs to the following directories:

- macOS: `/private/var/log/orbit/orbit.std{out|err}.log`.
- Windows: `C:\Windows\system32\config\systemprofile\AppData\Local\FleetDM\Orbit\Logs\orbit-osquery.log` (the log file is rotated).
- Linux: Orbit and osqueryd stdout/stderr output is sent to syslog (`/var/log/syslog` on Debian systems and `/var/log/messages` on CentOS).
- Linux: Orbit and osqueryd stdout/stderr output is sent to syslog (`/var/log/syslog` on Debian systems, `/var/log/messages` on CentOS, `journalctl -u orbit` on Fedora).
Copy link
Contributor

Choose a reason for hiding this comment

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

, and `journalctl -u orbit` on Fedora

spokanemac
spokanemac previously approved these changes Sep 30, 2024
@@ -0,0 +1 @@
- added builtin label for Fedora Linux
Copy link
Member

Choose a reason for hiding this comment

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

Let's add somewhere that if the users have a label named Fedora Linux, then they need to rename it before running migrations.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call! added

lucasmrod
lucasmrod previously approved these changes Sep 30, 2024
Copy link
Member

@lucasmrod lucasmrod left a comment

Choose a reason for hiding this comment

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

LGTM! Pending one small comment on the release notes.

@lucasmrod lucasmrod self-assigned this Sep 30, 2024
@mostlikelee mostlikelee merged commit 98c0bd8 into main Sep 30, 2024
17 checks passed
@mostlikelee mostlikelee deleted the 21409-fedora-label branch September 30, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants