Commit Graph

  • ebb5029255 Migrate relaunchd manifests to jobd Mark Heily 2016-05-23 22:17:31 -04:00
  • 2ac91c7c70 Get all the MD5 key generation/matching functional for the server/bridge. Also add an internal 1 minute timer to the bridge connections just to check/remove any broken connections as necessary. Ken Moore 2016-05-23 10:31:49 -04:00
  • 376a903991 Fix up the bridge/server connection management stuff. Now the server will automatically check/re-connect as needed. Ken Moore 2016-05-23 10:05:09 -04:00
  • 87f344e218 Update sysutils/relaunchd -> sysutils/jobd Kris Moore 2016-05-22 20:51:24 -04:00
  • d479e424f5 Turn off a bunch of debugging in the sysadm-server. Ken Moore 2016-05-20 14:56:02 -04:00
  • 13fe684d78 Get the final bridge systems setup. Seems to be functioning perfectly now. Ken Moore 2016-05-20 14:46:47 -04:00
  • 23c254e11e Get a lot more of the bridge/server connections functional. Just have to work through a mismatch between server/client MD5 sums of valid keys. Ken Moore 2016-05-20 14:11:06 -04:00
  • d8a0faea79 Clean up the server and bridge systems so that connections are now successful as needed. Ken Moore 2016-05-20 12:40:32 -04:00
  • 6e07eb7c49 Commit another batch of fine-tuning for the bridge/server. Still not getting the server->bridge connection for some reason - working on it... Ken Moore 2016-05-18 14:44:42 -04:00
  • 18bcd3b03e Fix up the import of a public key through the CLI on the sysadm-bridge. Ken Moore 2016-05-18 14:07:05 -04:00
  • dc14b0c89b Fix up all the file paths and such needed for sysadm-bridge to function. Now it should be usable when run either as root or as a user. Ken Moore 2016-05-18 13:40:54 -04:00
  • ae892c3e5b Turn off some debugging in the server. Ken Moore 2016-05-18 09:03:44 -04:00
  • 826eb104c4 Make the api-test script ask for which server to test (rest/ws). Ken Moore 2016-05-18 08:59:56 -04:00
  • 02d6a326e4 Make the input parsing a bit more flexible with regards to a newline on the end of the input JSON or not. Ken Moore 2016-05-18 08:59:04 -04:00
  • 68793175f7 Oops - forgot to have the server instantly sync/exit when using the new CLI flag (for interacting with running servers - does not start server itself). Ken Moore 2016-05-17 12:44:38 -04:00
  • a81ca75519 Add a new CLI option to the sysadm server: "-import_ssl_key <user> <key> <nickname> [<email>]": This will add the designated key (file path or raw text) to the SSL keys available for authentication to the server. Ken Moore 2016-05-17 12:42:14 -04:00
  • e2382280cb Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-05-17 11:36:00 -04:00
  • 273cd613d3 Merge pull request #19 from Mrt134/master Tim Moore 2016-05-17 11:34:52 -04:00
  • 4f9776c6df Finish up all the new CLI options for sysadm-bridge: 1) Add a "-h" or "help" option which lists all the current CLI flags and their usage. 2) Adjust the "-import_ssl_file" and "-import_ssl_pubkey" options to now take 2 argument, with the first being some nickname for the key. 3) Add a "-remove_ssl [nickname]" option for removing a key. Ken Moore 2016-05-17 11:33:09 -04:00
  • d216ad5c2b Additional documentation for SSL certificate management - Added json code blocks for websocket requests and responses of ssl certificate actions - Style tweaks Mrt134 2016-05-17 11:31:45 -04:00
  • 20c0c0b47e Add another CLI option to sysadm-bridge: - "-list_ssl": This will output all the known public keys which may be authenticated with the server and any information about them. Ken Moore 2016-05-17 10:31:02 -04:00
  • 1451f217be Add a couple CLI options to the sysadm-bridge: 1) "-import_ssl_file <filepath>": This will import any .crt or .key file such that the designated public key may be used for authentication with this bridge. 2) "-import_ssl_pubkey <pubkey>": This will import the designated pubkey such that it may be used for authentication with this bridge. Ken Moore 2016-05-17 10:12:55 -04:00
  • b8a33dd02a Fix the pkg-plist so it includes the sysadm-bridge binaries. Ken Moore 2016-05-17 09:15:33 -04:00
  • 4d587f67ae Clean up some more of the server/bridge. - Turn off some debugging in the server. - Add a "bridge_export_key" CLI flag to the server to export the contents of the public certificate used for bridge connections. - Fix up the bridge rc.d script so it actually works. - Ensure that the bridge SSL key/cert is created when starting the server. - Add the bridge to the overall project build. Ken Moore 2016-05-17 09:11:11 -04:00
  • df3f9bb57c Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-05-17 09:08:52 -04:00
  • 7a34e1a527 Clean up the pkg database access so that each new probe opens/destroys it's own connection to the DB. This prevents the server DB connection from getting "stale" if pkg changes the DB in some drastic way. Ken Moore 2016-05-17 09:07:34 -04:00
  • 170bbf223f Merge pull request #18 from Mrt134/master Dru Lavigne 2016-05-16 14:39:33 -04:00
  • df5c7c3373 bugfix in theme stylesheet -fixed a highlighting bug -moved 'themes' directory for simpler access Mrt134 2016-05-16 14:28:37 -04:00
  • 22e3fd0f1a Merge pull request #17 from Mrt134/master Dru Lavigne 2016-05-13 13:40:12 -04:00
  • 01c37a00cb Style updates - Replaced pcbsd_style.css with the universal for both server and API handbooks Mrt134 2016-05-13 11:14:45 -04:00
  • 7995588dbd Merge pull request #16 from Mrt134/master Dru Lavigne 2016-05-12 16:15:14 -04:00
  • a9ce5ad765 Added pcbsd_theme Mrt134 2016-05-12 16:07:42 -04:00
  • 1a45554b8a Update API with Bridge - Identified server, client or bridge websocket requests - Added Bridge subsystem section with json example Mrt134 2016-05-12 16:05:25 -04:00
  • 8a16f9a4d0 Completely finish up the raw changes to the sysadm-server so it can operator over a bridge connection (untested). This also adds some stand-alone CLI options to the sysadm-binary utility: "bridge_list": List any bridge connections in the settings file. Output Format: "name (url)" "bridge_add <name> <url>": Add a bridge connection to the settings with the given name. (if websocket server is running, this change will take effect within 5 minutes). "bridge_remove <name>": Remove a bridge connection from the settings. If a websocket server is running, this change will take effect within 5 minutes (closing the connection to the removed bridge as needed). Ken Moore 2016-05-12 10:25:16 -04:00
  • 916069ce69 Add support for the server to become the initiator in a client->bridge connection. The bridge setting to use are still not implemented yet, and the new bridge-specific SSL key pair still needs to be created on first run. Ken Moore 2016-05-11 15:29:37 -04:00
  • 9012c7cb57 Add an additional localhost verification check for passwordless logins: Ensure that the designated user is actually active on the localhost (via "users" if no graphical sessions running, or number of active processes if there are graphical sessions running) Ken Moore 2016-05-11 12:14:20 -04:00
  • a303e160af Get the sysadm-server all setup for bridge relay connections (untested). Ken Moore 2016-05-10 15:56:16 -04:00
  • f5ed144d90 Start adding the bridge data handling into the server so there can be unique encryption keys and auth tokens per bridged system connection. Ken Moore 2016-05-10 12:13:24 -04:00
  • 94596117ed API CHANGE: Get the sysadm-bridge all finished up. Now to add the necessary bits to the server/client so we can try using it. NOTE: There is a special API/event for the bridge to announce which server/client connections are available (clients will see only servers, and vice versa) The syntax for this event is: Ken Moore 2016-05-10 10:49:33 -04:00
  • 083b8ad694 Oops - forgot to add the new RestStructs.cpp file to GIT. Ken Moore 2016-05-09 14:50:10 -04:00
  • e2c66ceef7 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-05-09 13:37:35 -04:00
  • 1fea33c354 Get the sysadm server message parsing system all setup for bridge relays (no additional encryption/decryption layer yet) Ken Moore 2016-05-09 13:36:40 -04:00
  • 6c07e17e8b Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-05-09 11:32:13 -04:00
  • 2e4c3d8068 Update the api-test script with optional way to enable REST mode Kris Moore 2016-05-09 11:31:52 -04:00
  • 6351f7714e Merge pull request #15 from Mrt134/master Dru Lavigne 2016-05-09 11:27:41 -04:00
  • 32ffd85af7 Merge branch 'master' of https://github.com/pcbsd/sysadm Mrt134 2016-05-09 11:23:38 -04:00
  • e9c0da79e0 Added PCBSD style to sysadm handbook - Changed SysAdm handbook style to pair with the PCBSD handbook Mrt134 2016-05-09 11:21:33 -04:00
  • 9287390e54 Fix up the parsing/usage of REST requests in the sysadm server. A Websocket-specific filtering rule was put in place earlier which was filtering out all the REST messages. Ken Moore 2016-05-09 10:15:59 -04:00
  • c736015324 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-05-09 09:36:13 -04:00
  • 34e7fb4754 Fix up the api-test script so that it runs REST requests properly (WS disabled for the moment - while REST is enabled) Ken Moore 2016-05-09 09:34:05 -04:00
  • 129285945d Minor update to test script to use correct variables for REST Kris Moore 2016-05-07 20:22:05 -04:00
  • 97695ef4f1 Doc list_ssl_checksums. dlavigne 2016-05-05 10:19:12 -04:00
  • aa9e7583a7 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-05-05 09:58:56 -04:00
  • f9af7c2efe Add a API call to the server: rpc/settings: "action" = "list_ssl_checksums" This will list the MD5 checksums of all the known SSL keys (in no particular order) Ken Moore 2016-05-05 09:55:38 -04:00
  • 8154d8f345 Enable the 30 second window for a client to successfully authorize before the connection is closed. Ken Moore 2016-05-04 14:54:04 -04:00
  • 45cec48f3c Setup the authorization manager for the sysadm-bridge. The SSL authentication procedures for Bridge<-->System should now be completely functional. Ken Moore 2016-05-04 14:45:59 -04:00
  • 0f9a73de2f Add identify RPC call. dlavigne 2016-05-03 14:20:44 -04:00
  • 4ef706afee Get the bridge setup with the rpc/identify API call as well. Also get it all setup for adding additional API calls. Ken Moore 2016-05-03 11:03:53 -04:00
  • 7f38c91420 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-05-03 10:40:16 -04:00
  • f7333470a9 API Change: Add a new API call to the sysadm-server: rpc/identify (no arguments) This generates a responce identifying the type of sysadm system ("server" in this case). This will be important and I am going to be adding this same API call to all the various sysadm utilities so they can identify which one they are ("server", "bridge", "client"). Ken Moore 2016-05-03 10:26:08 -04:00
  • bc2d2e4fa6 Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-05-02 15:04:50 -04:00
  • ef792121e5 Use script as rc.d target Kris Moore 2016-05-02 15:04:34 -04:00
  • e584066f3c Add rc.d and sysadm-bridge-start Kris Moore 2016-05-02 15:04:07 -04:00
  • 26f54ff4f0 Simply the server layout of the bridge Ken Moore 2016-05-02 14:57:49 -04:00
  • eb0b691c1d Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-05-02 14:35:24 -04:00
  • bd863b70d7 Add the beginning of a new "sysadm-bridge" utility. Ken Moore 2016-05-02 14:34:18 -04:00
  • b27166d1d4 Add a couple new settings: auth/allowUserPassAuth [bool]: Enable username/password combinations for authentication (default value: true) auth/allowServiceAuth [bool]: Allow local services to connect to the server with reduced priviledges (default value: false) Ken Moore 2016-04-29 14:37:55 -04:00
  • 6d47bf00bd oops. fix a typo. Ken Moore 2016-04-29 13:41:25 -04:00
  • 71f507e9b7 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-04-29 13:11:11 -04:00
  • 60fc3e1c5a API CHANGE: Change the sysadm/settings class to rpc/settings Ken Moore 2016-04-29 13:10:11 -04:00
  • 52d599dc82 Doc the namespace change of the sysadm/logs class to rpc/logs. dlavigne 2016-04-29 11:06:53 -04:00
  • 85ffdab597 Doc kill action. dlavigne 2016-04-29 11:03:52 -04:00
  • b473ea7314 Add new dispatcher class. dlavigne 2016-04-29 10:58:56 -04:00
  • 78b4dcf62a API CHANGE Change the namespace of the sysadm/logs class to rpc/logs for consistency between internal/external classes. Ken Moore 2016-04-29 10:58:14 -04:00
  • d56e90d557 Add a new API call: rpc/dispatcher -> "action":"kill" This allows a user with full access to cancel pending/running jobs within the dispatcher system. Ken Moore 2016-04-29 10:25:36 -04:00
  • aa055be7a2 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-04-29 10:04:57 -04:00
  • caad04ece9 Add a new API call: rpc/dispatcher -> "action":"list" This will list all the currently running/pending processes within the dispatcher queues. Possible Queues: "no_queue", "pkg_queue", "iocage_queue" Ken Moore 2016-04-29 10:00:43 -04:00
  • 3131b73a5e Add new logs class. While here, fix a grammo. dlavigne 2016-04-28 09:13:58 -04:00
  • 4cee9244e4 Add a new API call/class: namespace: "sysadm" name: "logs" This is a class used for interacting with the log files created by the sysadm server. Ken Moore 2016-04-27 16:41:17 -04:00
  • 1d041b47f9 Update name of Guide. While here, fix a mangled table. dlavigne 2016-04-27 14:37:39 -04:00
  • fe58a46838 Doc pkg_autoremove action. dlavigne 2016-04-27 09:34:06 -04:00
  • 0acebe7435 Fix up a couple LP API calls. Now they function properly again. Ken Moore 2016-04-26 13:59:53 -04:00
  • cd3078c708 Add a note about the day-codes for the lifepreserver scrub schedule: 01 is Monday, 07 is Sunday. Ken Moore 2016-04-26 13:45:45 -04:00
  • 1b29b2966f Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-04-26 09:43:24 -04:00
  • b07f11bfe3 API Change: Add a simple "pkg_autoremove" action for the sysadm/pkg subsystem (no additional inputs). This will queue up the pkg autoremove action which prunes all orphaned packages on the systems. Ken Moore 2016-04-26 09:41:58 -04:00
  • 0cd90b3558 Doc new fs class. dlavigne 2016-04-22 12:29:56 -04:00
  • dd33e9648c Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-04-21 14:55:20 -04:00
  • b2a4386c36 Add a new 'fs' class to sysadm API, along with the initial "dirlist" command which will return a listing of the requested directory Kris Moore 2016-04-21 14:54:12 -04:00
  • cf1c16de27 Doc datasets action. dlavigne 2016-04-21 13:45:16 -04:00
  • 25eac09ce9 Doc createsnap action. dlavigne 2016-04-21 13:37:59 -04:00
  • e4db11a0f7 Fix a missing "ok=true" in the ZFS list_pools API call. Ken Moore 2016-04-21 13:09:48 -04:00
  • f5d402108b Fix starting sysadm-server Kris Moore 2016-04-21 11:34:06 -04:00
  • cff5baae47 Add new API call to return list of ZFS datasets on a particular pool Kris Moore 2016-04-21 11:28:37 -04:00
  • 4f8b78c361 Add new API call to create a new snapshot via Life-Preserver Kris Moore 2016-04-21 10:36:44 -04:00
  • 5f53dd4a4e Finish adding relaunchd services for sysadm server Kris Moore 2016-04-19 10:00:56 -04:00
  • 9153467480 Disable launchd support for now Kris Moore 2016-04-14 15:57:29 -04:00
  • 47428cef37 Detect if we get a 'cannot destroy' error from iohyve rmiso Kris Moore 2016-04-14 10:36:29 -04:00
  • 57cc4212bb Comments on sysadm server wrapper Kris Moore 2016-04-13 14:30:05 -04:00
  • 2860152c04 Merge pull request #14 from Mrt134/master Dru Lavigne 2016-04-12 17:04:15 -04:00
  • fc55d22a9f Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-04-12 16:56:29 -04:00