Giter VIP home page Giter VIP logo

themis-py's People

Contributors

sandromello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

themis-py's Issues

Themis Web Panel

  • REST API for managing Themis
  • Information about the data processed

Persist configurations

Redis backend does not support persistence. The config will vanish on a server restart. Should be able to dump the redis data for restoring

improve logging

mta_hostname and Milter.uniqueID() should be logged into queue ID

deepcopy problem

Traceback (most recent call last):
File "/usr/sbin/themismilter.py", line 384, in eom
tmetadata.update_features(**self.gconf.as_dict)
File "/usr/lib/python2.7/dist-packages/themis/utils.py", line 16, in as_dict
local_dict = deepcopy(self.dict)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 256, in _deepcopy_dict
for key, value in x.iteritems():
RuntimeError: dictionary changed size during iteration

global_conditions wrong docs

global_conditions must be specified as '[ [requests, seconds], [...], ...]'
Not as: # [ [seconds, requests], [...], ...]

Need to update docs

Error with StopHERE attribute in tmscli

When creating a new policy, StopHERE attribute isn't properly configured:

tmscli -a --policy exceptions Source myexceptiongroup Destination any JailBy Sender+ JailAction block CountRCPT TRUE JailSpec 1500:3600 Priority 0 StopHERE TRUE
tmscli -g --policy all
{
"exceptions": {
"enable": true, 
"jailaction": "block", 
"actionheaders": {}, 
"policy_name": "exceptions", 
"onlyheaders": false, 
"spf": false, 
"blockprobation": 0.5, 
"jailspec": [
[
"1500", 
"3600"
]
], 
"subjectprobation": 0.5, 
"jailby": "Sender+", 
"ipprobation": 0.5, 
"destination": "any", 
"replydata": "Limit reached. Blocking for %s second(s)", 
"priority": 0.0, 
"source": "myexceptiongroup", 
"countrcpt": true, 
"countsentprobation": 1.0, 
"type": "regular", 
"stophere": true, 
"requestsmon": false
}
}

Option to fallback to non-pool policies

If a pool policy is executed by a sever, there has to be an option to fallback to common policies. It will permit the creation of generic policies that should be executed by all pools or specific ones.

Statististics

Integration with time series database (graphite, influxdb, etc).
Redis should be able to store statistics as a time series database.

Dependency redis configuration

Groups and Pools must have dependencies. When removing a group or pool that belongs to a policy, must remove the policies associate with the group/pool or return a warning.

Blocking Enhancements

Should be more flexible for blocking accounts:

  • Show how many times an account was blocked
  • Show how much time was spent on blocking the account
  • More block options
  • Show the total accounts blocked

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.