summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/bonafide
AgeCommit message (Collapse)Author
2017-12-07[feat] add provider pinningRuben Pollan
Pin the provider.json and the ca cert for the public providers. - Resolves: #9074
2017-10-06[feat] use bonafide Provider object as a singletonRuben Pollan
There was common situations where two provider instances where running in parallel. And was creating weird errors (like getting wrong api_uri) because the bootstrap deferreds were global but the Provider objects not. I don't like much singletons, but I think now is simpler than before. - Resolves: #9073
2017-09-21[bug] fix initialization of default parameter to mutable data structureKali Kaneko
whoever wrote this in the first place needs to get introduced to import-time initialization, even if it was me. one of the nastiest python gotchas in my opinion :)
2017-09-21[bug] do not send if-modified-header if file does not existKali Kaneko
just to make the logic clear. we should probably check that the file is not empty and it has valid json (sanitized against the spec).
2017-09-20[feat] check if there are newest configuration filesKali Kaneko
here we port the if-modified-since conditional mechanism, so that we only write the config if it is newer than whan we have. we also add a line with the status code to the logs, so that it's easier to debug. note that the 'configs.json' file is never returning 304. - Resolves: #8773
2017-09-18[bug] we need to use 'GET' method to fetch provider configsRuben Pollan
The workaround is no needed anymore, if we do 'GET' instead of 'POST' to fetch all the provider configuration jsons it works smoothly. - Resolves: #9056
2017-08-11[style] pep8Kali Kaneko
2017-08-11[bug] add workaround for invalid configs.jsonKali Kaneko
Old versions of the webapp let agent download an invalid.json, instead of returning a 404. We try to parse the json, and if no valid json is found, we use the workaround for manually downloading the service files. - Resolves: #9004
2017-07-18use the passed ca_certKali Kaneko
if there is no ca_cert passed and the provider is configured, use the pinned ca cert when the autoconf parameter is true.
2017-07-14[refactor] skip looking for cacert bundle in bitmaskKali Kaneko (leap communications)
leap.common is going to handle this
2017-06-05[bug] fail bonafide bootstrap for self sign certsRuben Pollan
- Resolves: #8881
2017-06-05[feat] check ca cert fingreprint against provider.jsonRuben Pollan
2017-05-16[refactor] cleanupKali Kaneko (leap communications)
2017-05-12[bug] return ok from a succesful provider deleteRuben Pollan
2017-05-12[bug] make global the provider bootstrap deferredsRuben Pollan
- Resolves: #8884
2017-05-04[bug] correctly handle authenticate's autoconf parameterSimon Fondrie-Teitler
This fixes two bugs with handling the autoconf parameter: - It looks for "True" instead of "true" in the dispatching code to account for json.dumps() converting true into a boolean and str() returning the python-style capitalized version "True". - It moves the initial definitions of offirst_bootstrap, ongoing_bootstrap, and stuck_bootstrap into the class instantiation method so they don't get shared between instances of the class. Previously, this caused one instance being bootstrapped to causes other instances to think they were also actively being bootstrapped. Resolves #8843
2017-04-27[bug] unify logging style using class attrKali Kaneko (leap communications)
I changed most of the logger statements to use a class attribute, in this way it's easier to identify which class it's logging them. in some cases I leave a module-level logger, when we're either using functions or when the module it's too small. at the same time I did a general review and cleanup of the logging statements.
2017-04-20[feat] add bonafide authentication eventKali Kaneko (leap communications)
- Resolves: #8844
2017-03-30[feature] Creates methods for update recovery code.Thais Siqueira
Related with: https://github.com/pixelated/pixelated-user-agent/issues/924 with @aarni Signed-off-by: Ruben Pollan <meskio@sindominio.net>
2017-03-03[feat] get VPN params from eip-service.jsonRuben Pollan
Instead of hardcoding them in the code.
2017-03-03[bug] use username instead of provider in the vpn callsRuben Pollan
Without active user we need to use the username instead of the provider in the VPN API. - Resolves: #8783
2017-02-23[feature] new commands: get_certKali Kaneko (leap communications)
2017-02-23[feat] eliminate the active user from bonafideRuben Pollan
Active user is now only a concept of the cli. For it we add a ~/.config/leap/bitmaskctl.cfg file. - Resolves: #8769
2016-12-26[bug] do not hang if further config needs authKali Kaneko (leap communications)
2016-11-11[bug] return early from bonafide.get_providerKali Kaneko (leap communications)
otherwise, the call from the rest API hangs forever because the authentication has not happened and not all the configs have been downloaded. - Resolves: #8576
2016-10-21[bug] use tcp endpoint for windowsKali Kaneko (leap communications)
2016-10-21[bug] fail gracefully for non-posix importKali Kaneko (leap communications)
2016-10-10[bug] fix error logging calls using twisted loggerdrebs
2016-10-07[style] pep8Kali Kaneko (leap communications)
2016-10-07[refactor] do not print traceback for expected errorsKali Kaneko (leap communications)
Add the ability to declare an exceptions as 'expected'. This will avoid logging the backtrace on the bitmaskd log. We will just forward the message in the json that we return to the caller. - Resolves: #8506
2016-10-07[refactor] migrate hooks to bitmask repoKali Kaneko (leap communications)
now we can deprecate service_hooks in leap.common repo
2016-10-07[refactor] use new logger infrastructureKali Kaneko (leap communications)
2016-10-04[feature] handle invite codesKali Kaneko (leap communications)
In the command line, --invitecode is a new optional parameter to the command "user create". bonafide service handles the invite codes. javascript library should be updated accordingly - Resolves: #7550
2016-10-04[bug] In case of wrong url don't leave files in the config folderRuben Pollan
- Resolves: #8498
2016-10-04[feat] list active usersRuben Pollan
- Resolves: 8488
2016-10-03[bug] stop syncing after logout (#8479)drebs
2016-09-28[feature]Add change password commandRuben Pollan
- Resolves: #8487
2016-09-07[feat] Add manual provider registrationRuben Pollan
- Resolves: #8400
2016-09-01[tests] add bogus imports to see meaningful code coverageKali Kaneko (leap communications)
2016-09-01[refactor] fix imports after merging submodulesKali Kaneko (leap communications)
2016-09-01[refactor] delete unused stubsKali Kaneko (leap communications)
2016-09-01[refactor] remove unneeded version infoKali Kaneko (leap communications)
2016-08-29[pkg] move bonafide source to leap.bitmask.bonafideKali Kaneko (leap communications)