Commit Graph

422 Commits

Author SHA1 Message Date
dlavigne
e57f7fecea Add ssl management actions. 2016-03-03 10:45:18 -05:00
Kris Moore
283f660b25 Make sure we stop the daemon process 2016-03-03 10:28:31 -05:00
Ken Moore
26080479d2 Merge branch 'master' of github.com:pcbsd/sysadm 2016-03-03 10:08:56 -05:00
Ken Moore
94ab5c3ac2 Change a couple "delete" calls to the Qt ->deleteLater() function in the dispatcher. 2016-03-03 10:08:27 -05:00
dlavigne
358009fd8b Doc list_pools action. 2016-03-03 10:06:51 -05:00
Kris Moore
5f148d5388 Show debug output from iso fetch slots 2016-03-03 10:07:15 -05:00
dlavigne
47f6f813f8 Fix incorrect subheading. 2016-03-03 09:47:31 -05:00
dlavigne
d995b75b27 Doc list-devices action. 2016-03-03 09:43:17 -05:00
dlavigne
682215f6a1 Document listisos action. 2016-03-03 09:28:40 -05:00
Ken Moore
1b0cd22e84 Add a new API call to the iohyve subsystem: action="listisos"
This will list all the known ISO files which iohyve can use.

REST Request:
-------------------------------
PUT /sysadm/iohyve
{
   "action" : "listisos"
}

WebSocket Request:
-------------------------------
{
   "name" : "iohyve",
   "namespace" : "sysadm",
   "id" : "fooid",
   "args" : {
      "action" : "listisos"
   }
}

Response:
-------------------------------
{
  "args": {
    "listisos": [
      "TRUEOS10.2-RELEASE-08-19-2015-x64-netinstall.iso"
    ]
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}
2016-03-02 14:56:39 -05:00
Ken Moore
10df62f69f Merge branch 'master' of github.com:pcbsd/sysadm 2016-03-02 13:17:19 -05:00
Ken Moore
ffc6211e65 Fix a sysctl lookup error checking bug (will return empty/0 value instead of a random byte array/value when the sysctl does not exist). 2016-03-02 13:16:19 -05:00
dlavigne
005e4b4a5d This section has been reworked. New info to follow. 2016-03-02 12:55:02 -05:00
Ken Moore
a14e9a30d6 Add a new API call: sysadm/zfs (action==list_pools)
This subsystem can be expanded later for any zfs/zpool command calls

REST Request:
-------------------------------
PUT /sysadm/zfs
{
   "action" : "list_pools"
}

WebSocket Request:
-------------------------------
{
   "namespace" : "sysadm",
   "args" : {
      "action" : "list_pools"
   },
   "name" : "zfs",
   "id" : "fooid"
}

Response:
-------------------------------
{
  "args": {
    "tank": {
      "alloc": "71.8G",
      "altroot": "-",
      "cap": "32%",
      "dedup": "1.00x",
      "expandsz": "-",
      "frag": "18%",
      "free": "148G",
      "health": "ONLINE",
      "size": "220G"
    }
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}
2016-03-02 12:34:17 -05:00
Ken Moore
e45b9e5101 Quick streamlining of a dispatcher process access function. 2016-03-02 12:08:23 -05:00
Kris Moore
b3b79c338e Merge branch 'master' of https://github.com/pcbsd/sysadm 2016-02-29 16:46:51 -05:00
Kris Moore
6312500fc1 Add couple of debug statements 2016-02-29 16:45:36 -05:00
Ken Moore
01656e1763 Turn off a bunch more debugging in the dispatcher since it all seems to be working now. 2016-02-29 16:24:55 -05:00
Ken Moore
3cebb77190 Clean up some of the dispatcher multi-threading, and turn off some debugging in the auth manager. 2016-02-29 16:15:20 -05:00
Kris Moore
718ed8f594 Attempt to fix dispatcher queues 2016-02-29 15:37:49 -05:00
Kris Moore
08df048c69 Commit for ken to fix DProc issues 2016-02-29 15:27:17 -05:00
Kris Moore
e9e6abdcd6 Fix renamed slot name 2016-02-29 14:47:20 -05:00
Kris Moore
269db2628e Merge branch 'master' of https://github.com/pcbsd/sysadm 2016-02-29 14:44:35 -05:00
Kris Moore
2401da278d Add new WebBackendSlots.cpp which has the initial slots for
Iohvye Fetch processing
2016-02-29 14:44:18 -05:00
Ken Moore
ef6f7ec39f Merge branch 'master' of github.com:pcbsd/sysadm 2016-02-29 14:43:36 -05:00
Ken Moore
3663931eb7 Add a new signal to the Dispatcher process: ProcessOutput(QString log) 2016-02-29 14:43:02 -05:00
Dru Lavigne
187b1cc3e3 Fix typo. 2016-02-29 13:35:55 -05:00
dlavigne
2887addb92 Minor formatting fixes. 2016-02-29 13:28:23 -05:00
Ken Moore
fb1e0008a5 Update connection.rst
Add information about the auth_ssl system, and clarify the localhost password requirements.
2016-02-29 11:42:51 -05:00
Kris Moore
7be9688773 Update README 2016-02-27 12:01:11 -05:00
Kris Moore
1f94a24f1d Update more of the sysrc / service 2016-02-26 18:59:54 -05:00
Kris Moore
0588229c7e Update service example 2016-02-26 18:59:23 -05:00
Ken Moore
27607befef Fix a parsing bug in the beadm list function. 2016-02-25 14:37:03 -05:00
Ken Moore
e1c162454e Fix a bug in the auth system where exising auth tokens could accidentally get removed from the internal hash. 2016-02-25 12:46:27 -05:00
Ken Moore
e64bf091ab Rework how the SSL registration information is saved/retrieved for listing a bit. 2016-02-25 09:24:40 -05:00
Ken Moore
c064bdcfcd Small set of general cleanup in the server sources:
1) Fix a connection issue in the dispatcher
2) Always run the [T]SOCKET->isValid() check before interacting with any socket.
2016-02-25 08:49:17 -05:00
Kris Moore
b18a6a1a2a Auto-restart the daemon after a crash 2016-02-24 13:15:13 -05:00
Ken Moore
55af9df9f9 Merge branch 'master' of github.com:pcbsd/sysadm 2016-02-23 14:53:09 -05:00
Ken Moore
cdbe769fe2 Fix up the new "State" event system a bit. 2016-02-23 14:52:45 -05:00
Kris Moore
03650dd925 Set portsdir 2016-02-23 13:56:02 -05:00
Kris Moore
90a9e3f5bd Move location of sysadm.ini 2016-02-23 12:24:39 -05:00
Ken Moore
dddfabaef2 Just in case, also specify the char* length on the server when loading it into the QByteArray. 2016-02-23 11:22:56 -05:00
Ken Moore
775ce5c337 Remove a lot of debugging and fix a possible crash with the SSL decrypt routine on the server. This now completely works. 2016-02-23 11:20:59 -05:00
Ken Moore
cab15e9137 Revert "Fix the crash of the server on SSL login attempt - still does not work reliably though."
The encrypt/decrypt string method works better than the SSL hash/sign/verify routine from this commit.
This reverts commit 68a520bb48.
2016-02-23 10:39:43 -05:00
Ken Moore
68a520bb48 Fix the crash of the server on SSL login attempt - still does not work reliably though. 2016-02-22 16:45:55 -05:00
Ken Moore
dfdc795bb2 Require that the SSL public key be base64 encoded when recieved for registration on the server. Also change the server SSL type flag to TLS 1.0 or later (instead of TLS 1.0 only) 2016-02-22 14:02:02 -05:00
Ken Moore
2e64d2d0a6 Fix the location of the SSL files used for the websocket server. 2016-02-22 13:13:47 -05:00
Kris Moore
b2cd436269 Flip the flags for -ws -> -rest 2016-02-22 12:56:48 -05:00
Ken Moore
6640762196 Fix up the timers in the event watcher. Due to the multi-threading, we need to create the timers in the start() function instead of the constructor. 2016-02-22 12:53:27 -05:00
Ken Moore
a6c76fbaa1 Add the new sysadm.conf.dist file to the project, and add it to the pkg-plist as well. 2016-02-22 12:33:18 -05:00