summary |
shortlog | log |
commit |
commitdiff |
review |
tree
first ⋅ prev ⋅ next
José Bollo [Thu, 13 Jun 2019 11:32:26 +0000 (13:32 +0200)]
Add log option for tracking protocol
Change-Id: Ifb780ac4133732a4218fa3018b9ecec9f3b67718
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 13 Jun 2019 11:31:54 +0000 (13:31 +0200)]
agent-at: Improve comments
Change-Id: Ica1479c4ccac93ff153c0e0bf79a3eab6ae882f9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 7 Jun 2019 14:51:04 +0000 (16:51 +0200)]
Improve formatting of 'cynara.initial'
Change-Id: I3aa631e0348ab2b1a80b5976e19829ffe75fa673
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Jose Bollo [Fri, 24 May 2019 14:49:02 +0000 (16:49 +0200)]
Rework the initial definitions for agent @
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Jose Bollo [Fri, 24 May 2019 14:48:20 +0000 (16:48 +0200)]
Sort output of list
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 24 May 2019 10:21:33 +0000 (12:21 +0200)]
Add cacheid
The idea is to allow a client to disconnect
and reconnect without losing its cache.
Change-Id: I017176e5eb5f553b961a32ee466d1b7a175532bb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Jose Bollo [Wed, 22 May 2019 14:03:10 +0000 (16:03 +0200)]
Add environment var for socket names
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Jose Bollo [Wed, 15 May 2019 07:08:08 +0000 (09:08 +0200)]
Refactor agent mechanism
Agent are now named and called when the
value returned is prefixed by name+colon.
For example, the agent 'me' receives the requests
'request' and the asked key for the rule:
* * * * me:request forever
Add the always available AGENT-AT implementation.
The AGENT-AT handles the value prefix @: to re-ask
the database with a query derived from the value.
Example: the rule
* * 1001 * @:%c:%s:OWNER:%p forever
if selected for the query key
{client=C, session=S, user=1001, permission=P}
will produce the evaluation of the key
{client=C, session=S, user=OWNER, permission=P}
The values @: are structured as 4 field separated
by colons (:). The sequences %c, %s, %u, %p, %%
and %: are substituted by client, session, user,
permission, % and :, with values coming from the
original request.
Change-Id: I7043845292f13f9c269a71cfabc4715330eaff34
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Jose Bollo [Mon, 13 May 2019 14:31:55 +0000 (16:31 +0200)]
Switch to filedb
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Jose Bollo [Thu, 9 May 2019 13:06:41 +0000 (15:06 +0200)]
Add help on 'cynadm'
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Jose Bollo [Thu, 9 May 2019 13:04:55 +0000 (15:04 +0200)]
Replace 'always' by 'forever'
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Jose Bollo [Thu, 9 May 2019 11:44:11 +0000 (13:44 +0200)]
Set default socket type to unix
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Jose Bollo [Wed, 8 May 2019 13:12:16 +0000 (15:12 +0200)]
Rework transaction
Jose Bollo [Thu, 2 May 2019 15:10:08 +0000 (17:10 +0200)]
Introduce Any DB abstraction and memdb on its top
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Jose Bollo [Mon, 29 Apr 2019 15:52:42 +0000 (17:52 +0200)]
Remove session from DB
The stored sessions MUST be *.
Some thing still have to be set for sessions.
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 5 Feb 2019 15:14:10 +0000 (16:14 +0100)]
Rework of many things
Change-Id: Iadeba6f0602f7be017244c2602fae2bbe2abf74e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 21 Sep 2018 07:28:39 +0000 (09:28 +0200)]
Add weeks in expiration textual representations
Also set constants compliant to chump compilers.
Change-Id: Id22672f8077a9fe6377a10043efec3e78e8eb3a7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Jose Bollo [Wed, 19 Sep 2018 12:52:03 +0000 (14:52 +0200)]
Add session, value as string and expiration
The DB now records sessions. It has expiration
management (currently coarse: ~16s, see db.c)
that is propagated to caches.
Values are now strings. Default values are
"yes" and "no" for allowed or denied permissions.
new program: cynadm
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 11 Sep 2018 09:28:34 +0000 (11:28 +0200)]
Make it work for AGL
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Jose Bollo [Mon, 10 Sep 2018 10:00:18 +0000 (12:00 +0200)]
Initial commit
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>