2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-18 21:53:18 +00:00

32 Commits

Author SHA1 Message Date
Jarrod Johnson
cfafa5a5bc Connect shellserver to httpapi
Have httpapi recognize the difference and start a shellserver
session when appropriate.  Next step will be to wire up enumeration of
current shellserver sessions, debug ssh.py traceback, delete on remote
close, and auto-delete when no client connected after some interval (e.g.
30 minutes).
2016-01-08 14:44:37 -05:00
Jarrod Johnson
f6ce9f2c1e Add infrastructure for TLS certificate handling
When connecting to peer devices that use TLS, provide
a mechanism of tracking peer fingerprint and handling
missing or mismatch of fingerprint.
2015-11-25 11:39:48 -05:00
Jarrod Johnson
5a0ac899b9 Force 'databynode' to consistently be an array
If only one node was in given noderange, then
the httpapi response would not look similar in
structure to a multi-node response.  Force even
single items in this special case to be an array
to allow easier javascript client code.
2015-11-03 09:08:18 -05:00
Jarrod Johnson
765c15ed5b Revert 'confluentd' change
After further investigation, the rename to confluentd was not
needed (after massaging pathex and using pip to install rather
than distutils).
2015-09-23 11:48:27 -04:00
Jarrod Johnson
29417d935c Phase 2 of Windows compatibility
More work to try to enable confluent to be frozen by
pyinstaller
2015-09-23 11:48:20 -04:00
Juliana Motira
cff997bd0b Adding IPMI user remove method
Enabling IPMI user removing method and fixing json generation when href is a number.
2015-07-22 10:21:14 -03:00
Jarrod Johnson
d27df8fffc Provide specific error on locked credential store
When the credential store is locked, provide a specific message
and avoid triggering a trace log on a well characterized situation.
2015-07-08 16:47:58 -04:00
Jarrod Johnson
14a9220acb Enable support for IPMI user management
Provide a framework for management of users on managed endpoints, and implement for IPMI plugin.

From Juliana Motira
2015-07-07 11:20:04 -04:00
Jarrod Johnson
97c928350c Provide for configuration file specification of http listen
Establish a config file for certain configuration parameters that
control service startup and things that are best managed via out
of band configuration file and easiest to do with a restart.  For
now, implement control of http service binding.

From Lucio Seki
2015-07-02 13:23:48 -04:00
Jarrod Johnson
e11a749fa4 Mandate that all http collections return children as list
Currently, an empty collection has no 'item' entry, a singleton value, or
a list depending on whether it has 0, 1, or more children.  Modify this so
that at least 1 and more children are consistent.
2015-07-01 15:14:04 -04:00
Jarrod Johnson
6204628f43 Add support for inventory
Present 'inventory/hardware/all/' hierarchy.  Currently
only ipmi and 'all/all' works.  The data structure may be amended in
the very near future as well.
2015-04-27 16:57:52 -04:00
Jarrod Johnson
26a969c41a Fix silent feedback to client in some ipmi scenarios
Provide specific feedback to client when possible.  When not possible,
at least get condition into the correct trace log and notify client of
condition.
2015-03-26 09:24:23 -04:00
Jarrod Johnson
1c6430bf3f Allow noderange pagination of all nodes
When a noderange starts with '<' or '>', use the set of all nodes as basis for pagination.
Additionally, provide better feedback to client on noderange parsing issues.  Also
implement natural sort in various places after doing it for the pagination.
2015-03-25 09:57:25 -04:00
Jarrod Johnson
a31834910c Fix incomplete handling of UTF-8 data
If the json dumper sees utf-8 encoded strings that
it wants to join with other strings, it will not work.
Instead make all the data fully unicode to make json
dumper happy.  Then force it to encode to utf-8 to make
python's IO happy.
2015-03-20 15:39:51 -04:00
Jarrod Johnson
0cd4ffcd3b Implement client reconnect on server restart
When the server restarts, clients should try to reconnect seamlessly.
Doing so allows maintenance without being overly disruptive to users.
2015-02-03 10:15:08 -05:00
Jarrod Johnon
98a3f6fcdc Relay target unreachable condition to client
If connectivity is lost in the midst of an interrogation,
relay the unreachable status to the client rather than
'Internal Error' that was occuring before.
2015-01-22 13:56:16 -05:00
Jarrod Johnon
cb32c18507 Correct 'selfself' mistake in last commit
Previous commit had a typo that required correction.
2015-01-21 16:39:00 -05:00
Jarrod Johnon
a9eab61567 Handle broken cookies from other sites in domain
If a web application in a wider domain sets a cookie that python
doesn't like, a CookieError would be raised to ruin the whole request.
Address by subclassing SimpleCookie to catch the cookie error and
set an empty Morsel rather than fail out.  This allows the errant
cookie to be ignored while still being able to check for the cookie
that we actually care about.
2015-01-21 16:20:55 -05:00
Jarrod Johnon
384baea038 Handle non-ascii unicode better
Clarify that the data is in UTF-8 where applicable.  It is expected
that clients are capable of handling UTF-8 for now.  Additionally,
the HTML api explorer handling of numeric data is fixed.
2015-01-19 14:45:24 -05:00
Jarrod Johnon
a645e256eb Add identify support
In the course of adding identify support, also took the opportunity to address
a few mistakes and refactor some code for future ease of development.
2014-11-25 13:57:31 -05:00
Jarrod Johnon
7e2b6b6a85 More easily recognize application/json input in request data for POST
Browsers may include more data.  Tolerate by doing a substring search as is the case for form data.
2014-11-07 11:03:44 -05:00
Jarrod Johnon
6289e3ebfa Correct typo in httpapi
Consoles would not work due to a type of dictionary name, correct the mistake
2014-11-04 13:51:23 -05:00
Jarrod Johnon
d7f26efa3b Fix HTTP access to console sessions
A mistake was made in the coding of the timestamp capability.  Correct the mistake to restore console function.
2014-10-29 13:13:51 -04:00
Jarrod Johnon
4443d67da6 Implement timestamp reporting
Have confetty include the vintage of incoming data so that user may know how likely the
data is relevant to now.
2014-10-06 15:13:09 -04:00
Jarrod Johnson
276ba4abd7 Correct behavior of various paths when node does not exist 2014-08-26 14:03:15 -04:00
Jarrod Johnson
291e90afcf Fix 500 instead of 401 on bad HTTP authentication
Code optimistically assumed that authentication would fill out data to
pass to authorization, which does not get filled out if authentication fails.
2014-07-25 15:40:26 -04:00
Jarrod Johnson
360bcc395c Rename 'groups' to 'nodegroups'
As usergroups come to exist, make it obvious whether a group is user or node
bound. The attribute names stay the same (since the 'groups' of a 'node' is
clearly 'nodegroup')
2014-07-25 14:32:04 -04:00
Jarrod Johnson
12f939a533 Extend HTTP token to work correctly with PAM authentication 2014-07-14 15:03:34 -04:00
Jarrod Johnson
6e2808f63e Have HTTP interface bind to ipv6 for dual stack support 2014-05-28 13:48:23 -04:00
Jarrod Johnson
5acf49c9fe Correct change that broke the html explorer
In reorganizing the code, I made a mistake with the
indentation, resulting in the http interface not
working at all.
2014-05-10 11:59:47 -04:00
Jarrod Johnson
542da958db Have 'bad request' errors be more informative 2014-05-09 16:38:55 -04:00
Jarrod Johnson
c5cb5649d5 Begin reorganizing content for packaging 2014-05-06 13:37:31 -04:00