src/cynagora.git
5 years agoAdd cacheid
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>
5 years agoAdd environment var for socket names
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>
5 years agoRefactor agent mechanism
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>
5 years agoSwitch to filedb
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>
5 years agoAdd help on 'cynadm'
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>
5 years agoReplace 'always' by 'forever'
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>
5 years agoSet default socket type to unix
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>
5 years agoRework transaction
Jose Bollo [Wed, 8 May 2019 13:12:16 +0000 (15:12 +0200)]
Rework transaction

5 years agoIntroduce Any DB abstraction and memdb on its top
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>
5 years agoRemove session from DB
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>
6 years agoRework of many things
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>
6 years agoAdd weeks in expiration textual representations
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>
6 years agoAdd session, value as string and expiration
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>
6 years agoMake it work for AGL
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>
6 years agoInitial commit
Jose Bollo [Mon, 10 Sep 2018 10:00:18 +0000 (12:00 +0200)]
Initial commit

Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>