Commit Graph

114 Commits

Author SHA1 Message Date
Muhammad Ibrahim
581dc5884c Fixed issue with users not being updated
Re-worked setup.sh to use last 3 tags and the main branch (development latest)
2025-10-05 19:12:51 +01:00
Muhammad Ibrahim
6988ecab12 Made github version checking better
Added functionality of Logo branding
Modified sidebar width
2025-10-05 10:55:34 +01:00
Muhammad Ibrahim
864719b4b3 feat: implement main branch vs release commit comparison
- Add commit difference tracking between main branch and release tag
- Show how many commits main branch is ahead of current release
- Update UI to display branch status with clear messaging
- Fix linting issues with useCallback and unused parameters
- Simplify version display with My Version | Latest Release layout
2025-10-04 20:27:41 +01:00
Muhammad Ibrahim
2659a930d6 Add force flag to bypass broken packages upon installation 2025-10-04 13:37:05 +01:00
Muhammad Ibrahim
3a76d54707 Made Proxmox LXC a tab within integrations page 2025-10-04 09:44:18 +01:00
Muhammad Ibrahim
dd28e741d4 fix: manual host creation and improve host identification
- Add machine_id support for manual host creation from GUI
- Generate temporary 'pending-{uuid}' machine_id for new hosts
- Agent now collects and sends machine_id on every update
- Backend replaces pending machine_id with real one on first agent connection
- Remove unnecessary duplicate name check (friendly_name can be duplicated)
- Add get_machine_id() function to agent (reads from /etc/machine-id, /var/lib/dbus/machine-id, or generates fallback)
- Display IP address in Network tab on host details page
- Fix network tab visibility conditions to include host.ip

This ensures proper host identification using machine_id while maintaining backwards compatibility with API credentials as the primary authentication method.
2025-10-04 09:39:47 +01:00
Muhammad Ibrahim
35d3c28ae5 feat(ui): Display machine_id in host details page and enable search
- Added machine_id field to host details page
- Backend now returns machine_id in all host queries
- Users can search hosts by machine_id
- Added hostname index to schema for better performance
2025-10-04 09:15:43 +01:00
Muhammad Ibrahim
b3887c818d chore: Update GitHub repository URLs from 9technologygroup/patchmon.net to PatchMon/PatchMon 2025-10-03 23:39:58 +01:00
9 Technology Group LTD
aa8b42cbb0 Merge pull request #129 from PatchMon/dev-1-2-8
Global Search + Proxmox Auto lxc enrollment
2025-10-03 22:08:26 +01:00
tigattack
32ab004f3f feat: add repository deletion functionality with confirmation modal 2025-10-03 21:53:13 +01:00
9 Technology Group LTD
71b27b4bcf Merge pull request #123 from PatchMon/feat/package_detail
feat: add package detail page and list all packages with pagination
2025-10-03 18:03:57 +01:00
tigattack
5ccd0aa163 feat(repository): make hosts in repo detail more consistent with package detail 2025-10-02 23:53:06 +01:00
tigattack
a13b4941cd refactor(repository): use server icon in repository host count display 2025-10-02 23:52:56 +01:00
tigattack
482a9e27c9 fix(packages): fix security update badge 2025-10-02 23:52:11 +01:00
tigattack
f085596b87 fix(packages): update host property names 2025-10-02 23:52:10 +01:00
tigattack
757feab9cd fix(packages): add needsUpdate and isSecurityUpdate fields to package hosts 2025-10-02 23:52:10 +01:00
tigattack
fffc571453 feat(packages): complete package detail page
Open by clicking package name
2025-10-02 23:52:10 +01:00
tigattack
b454b8d130 feat(packages): show all packages by default, add pagination 2025-10-02 23:52:10 +01:00
Muhammad Ibrahim
b99f4aad4e feat: Add Proxmox LXC auto-enrollment integration
- Add auto_enrollment_tokens table with rate limiting and IP whitelisting
- Create backend API routes for token management and enrollment
- Build frontend UI for token creation and management
- Add one-liner curl command for easy Proxmox deployment
- Include Proxmox LXC discovery and enrollment script
- Support future integrations with /proxmox-lxc endpoint pattern
- Add comprehensive documentation

Security features:
- Hashed token secrets
- Per-day rate limits
- IP whitelist support
- Token expiration
- Separate enrollment vs host API credentials
2025-10-02 07:50:10 +01:00
Muhammad Ibrahim
7a8e9d95a0 Added a global search bar 2025-10-02 07:03:10 +01:00
Muhammad Ibrahim
02f9899b23 Added pages for coming soon features 2025-10-01 09:33:34 +01:00
Muhammad Ibrahim
0742c4b05c fixed TFA setting up and login redirect issue 2025-10-01 09:08:27 +01:00
Muhammad Ibrahim
5d8a1e71d6 Made changes to the host details area to add notes
Reconfigured JWT session timeouts
2025-10-01 08:38:40 +01:00
Muhammad Ibrahim
f254b54404 Fix notifications route pointing to wrong component
- Create proper Notifications component with comprehensive layout
- Update routing to use SettingsLayout and Notifications component
- Remove incorrect dependency on SettingsHostGroups for notifications
- Add placeholder content for notification rules and settings
2025-09-30 22:52:25 +01:00
Muhammad Ibrahim
7682d2fffd Remove unused Settings import from App.jsx 2025-09-30 22:51:20 +01:00
Muhammad Ibrahim
d6db557d87 Replace old settings page with new SettingsLayout for alert-channels route
- Create new AlertChannels component with proper layout
- Update routing to use SettingsLayout instead of old Settings component
- Add placeholder content for alert channels functionality
- Remove dependency on old settings server page
2025-09-30 22:51:15 +01:00
Muhammad Ibrahim
af62a466c8 Remove unused settings query from main HostDetail component 2025-09-30 22:49:45 +01:00
Muhammad Ibrahim
434fa86941 Fix unused getCurlFlags function by moving it to CredentialsModal component scope 2025-09-30 22:49:40 +01:00
Muhammad Ibrahim
8eb75fba7d Fixed agent outputs and improved crontab chancing logics, added timedatectl functionality 2025-09-30 22:46:00 +01:00
Muhammad Ibrahim
8be25283dc Relaid out settings page and configured agent and other communication to use curl flags which can be configured to ignore ssl cert if self-hosted. 2025-09-30 21:38:13 +01:00
Muhammad Ibrahim
ed0cf79b53 Added settings pages to bring all the settings together from patchmon options, profile page and server settings. 2025-09-30 19:48:28 +01:00
Muhammad Ibrahim
8ca22dc7ab Fixed crontab syntax issue with timing 2025-09-30 09:31:12 +01:00
Muhammad Ibrahim
44f90edcd2 Suppress false positive linting warnings for useId variables 2025-09-29 21:08:42 +01:00
Muhammad Ibrahim
1cc5254331 Fix missing useId variables in Settings component
- Restored all missing useId() variables that were accidentally removed
- Fixed ReferenceError: protocolId is not defined
- Settings page should now work correctly
2025-09-29 21:08:32 +01:00
Muhammad Ibrahim
e9843f80f8 Fix linting warnings for unused variables 2025-09-29 20:42:29 +01:00
Muhammad Ibrahim
b49ea6b197 Update PatchMon version to 1.2.7
- Updated agent script version to 1.2.7
- Updated all package.json files to version 1.2.7
- Updated backend version references
- Updated setup script version references
- Fixed agent file path issues in API endpoints
- Fixed linting issues (Node.js imports, unused variables, accessibility)
- Created comprehensive version update guide in patchmon-admin/READMEs/
2025-09-29 20:42:14 +01:00
Muhammad Ibrahim
49c02a54dc Changed Discord Link 2025-09-29 17:57:13 +01:00
Muhammad Ibrahim
bed52a04b2 Merge remote-tracking branch 'origin/v1-2-7' into v1-2-7 2025-09-28 15:46:02 +01:00
tigattack
f99e01a120 refactor(frontend): don't store current host tab in localstorage 2025-09-27 02:26:25 +01:00
tigattack
175042690e refactor(frontend): don't store permissions in localstorage 2025-09-27 02:26:21 +01:00
tigattack
102546e45d fix(frontend): eliminate duplicate API calls during log in/out 2025-09-27 01:50:03 +01:00
tigattack
751a202fec fix(frontend): actually fix login after signup 2025-09-27 01:49:53 +01:00
tigattack
c886b812d6 chore: clarify auto-update feature 2025-09-27 00:52:04 +01:00
tigattack
c4e056711b fix(frontend): use React Router navigation to open add host modal
Fixes page reload on add host button click.
2025-09-26 20:17:09 +01:00
tigattack
60fa598803 fix(frontend): solve missing imports 2025-09-26 20:17:09 +01:00
tigattack
5c66887732 refactor(frontend): optimise auth process
- Stops frontend trying to make calls that require auth before auth has occured
- Stops frontend making calls that aren't necessary before auth has occured
- Implements state machine to better handle auth phases
2025-09-26 20:17:09 +01:00
tigattack
e3aa28a8d9 fix: login after signup
Also resolves entire user object being return to client, including password_hash... ⚠️
2025-09-26 20:17:09 +01:00
tigattack
71d9884a86 fix(frontend): imports are unused 2025-09-26 20:16:41 +01:00
Muhammad Ibrahim
a76a722364 Fixed inline toggle changes when viewing the list of hosts in table 2025-09-26 09:09:02 +01:00
Muhammad Ibrahim
0c0446ad69 Added a few dashboard enhancements with Doughnut charts 2025-09-26 02:10:55 +01:00