-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AcraWriter: prepare for publishing pod #235
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lagovas
approved these changes
Aug 8, 2018
(bitrise checks are still WIP, ignore them for now) |
I'll merge it without waiting for circle ci, because ios wrapper is not tested by circle ci |
vixentael
pushed a commit
that referenced
this pull request
Aug 13, 2018
* More golint fixes (#227) * setup golint again * change go install to go get * setup GOPATH * more golint comments * golint renaming * golint fixing errors style * golint, decryptor comments * decrease amount of "allowed" issues to 250 * add godoc badge * update package godoc decription and copyrights for every package (#228) * remove duplicated package comments (#229) * check poison records after decryption for PostgreSQL [T685] (#230) * refactor pg decryptor * move processing ssl request to separate function * move processing data in inline mode to separate function * rename packet -> packetHandler * use blockable function call of server at end of main function * fix magical panic with server usage at end of program * drop golang < 1.8 from tests * refactor constant names * drop redundant code and reader * check with long begin tag in other cases in poison record detection * fix detection poison records with inline mode * check poison records after decryption for mysql [T685] (#232) * fix detection poison records with inline mode * skip redundant decryption poison records in postgresql * don't check poison records if turned off * AcraWriter for iOS, objc [T666] (#233) * AcraWriter for objc + example * acrawriter pod + acrawriter example in correct folders; hide private headers; * AW: more error handling, make errors public * add acrawriter tests * AcraWriter: prepare for publishing pod (#235) * put podspec into root folder * simplify folder structure * make acrwriter scheme shared * point AcraWriter example on master * collect metrics [T662] (#234) * collect some metrics from acra-server and acra-connector * fix registering listeners and refactor closing prometheus http handler * collect count of failed decryptions * track processing time of db responses with decryption * track time of request proxying * use function call instead defer * increase wait time of queryhandler to avoid test fail when handler didn't dump queries before check * update name of metrics track time in missed places * Added tools to AcraServer and AcraTranslator containers (#236) * added `acra-poisonrecordmaker` to `acra-server` and `acra-translator` containers * added `acra-rollback` to `acra-server` * moved auxiliary scripts to `socker/_scripts` folder * created `add_component.sh` script, optimized code * set actual golang version * Small fixes of poison records handling (#240) * update some naming, add some logs * fix poison record callback order for AT * update poison records parameters * return poison record decryption error for AT * move back general error for AT * move iOS example into /examples folder, add Readme (#241) * AcraTranslator startup, and logs (#242) * acra-translator: start only HTTP or gRPC connection, not both * AT: listen to gRPC by default; add start service logs fot AS, AC, AT * fix AT tests * beautify logs * remove default gRPC connection string from configuration file, by use it as default value * rotate acrastructs in files [T672] (#239) * collect some metrics from acra-server and acra-connector * fix registering listeners and refactor closing prometheus http handler * collect count of failed decryptions * track processing time of db responses with decryption * track time of request proxying * use function call instead defer * increase wait time of queryhandler to avoid test fail when handler didn't dump queries before check * extend keystore with method to rotate zone key * add unit-test and update other tests * update log messages in acra-rollback * add acra-rotate * add license * close all connections correctly on server close * gometalinter fixes * add integration test * cleanup test master key * change to lowercase json fields in output * move file rotation logic to separate file * drop old code * set encoding for json decoding * explicitly handle encoding of process output * add commands to run tests for mysql * back acra-censor's interface name * drop redundant test cases decrease timeouts * fix %%column%% pattern * comments and log * fix %%value%% pattern
vixentael
pushed a commit
that referenced
this pull request
Aug 14, 2018
* More golint fixes (#227) * setup golint again * change go install to go get * setup GOPATH * more golint comments * golint renaming * golint fixing errors style * golint, decryptor comments * decrease amount of "allowed" issues to 250 * add godoc badge * update package godoc decription and copyrights for every package (#228) * remove duplicated package comments (#229) * check poison records after decryption for PostgreSQL [T685] (#230) * refactor pg decryptor * move processing ssl request to separate function * move processing data in inline mode to separate function * rename packet -> packetHandler * use blockable function call of server at end of main function * fix magical panic with server usage at end of program * drop golang < 1.8 from tests * refactor constant names * drop redundant code and reader * check with long begin tag in other cases in poison record detection * fix detection poison records with inline mode * check poison records after decryption for mysql [T685] (#232) * fix detection poison records with inline mode * skip redundant decryption poison records in postgresql * don't check poison records if turned off * AcraWriter for iOS, objc [T666] (#233) * AcraWriter for objc + example * acrawriter pod + acrawriter example in correct folders; hide private headers; * AW: more error handling, make errors public * add acrawriter tests * AcraWriter: prepare for publishing pod (#235) * put podspec into root folder * simplify folder structure * make acrwriter scheme shared * point AcraWriter example on master * collect metrics [T662] (#234) * collect some metrics from acra-server and acra-connector * fix registering listeners and refactor closing prometheus http handler * collect count of failed decryptions * track processing time of db responses with decryption * track time of request proxying * use function call instead defer * increase wait time of queryhandler to avoid test fail when handler didn't dump queries before check * update name of metrics track time in missed places * Added tools to AcraServer and AcraTranslator containers (#236) * added `acra-poisonrecordmaker` to `acra-server` and `acra-translator` containers * added `acra-rollback` to `acra-server` * moved auxiliary scripts to `socker/_scripts` folder * created `add_component.sh` script, optimized code * set actual golang version * Small fixes of poison records handling (#240) * update some naming, add some logs * fix poison record callback order for AT * update poison records parameters * return poison record decryption error for AT * move back general error for AT * move iOS example into /examples folder, add Readme (#241) * AcraTranslator startup, and logs (#242) * acra-translator: start only HTTP or gRPC connection, not both * AT: listen to gRPC by default; add start service logs fot AS, AC, AT * fix AT tests * beautify logs * remove default gRPC connection string from configuration file, by use it as default value * rotate acrastructs in files [T672] (#239) * collect some metrics from acra-server and acra-connector * fix registering listeners and refactor closing prometheus http handler * collect count of failed decryptions * track processing time of db responses with decryption * track time of request proxying * use function call instead defer * increase wait time of queryhandler to avoid test fail when handler didn't dump queries before check * extend keystore with method to rotate zone key * add unit-test and update other tests * update log messages in acra-rollback * add acra-rotate * add license * close all connections correctly on server close * gometalinter fixes * add integration test * cleanup test master key * change to lowercase json fields in output * move file rotation logic to separate file * drop old code * set encoding for json decoding * explicitly handle encoding of process output * add commands to run tests for mysql * Zeroing private keys in acrawriters (#244) * zeroing PrivK in some acrwriters * upd ruby
vixentael
pushed a commit
that referenced
this pull request
Aug 14, 2018
* Rename everywhere [rules] -> [patterns] and add %%SELECT%% pattern support * Add SELECT %%COLUMN%% .. %%COLUMN%% and %%WHERE%% patterns support * Making some stubs in whitelist (would like to check blacklist first) * Some changes in configs to match patterns instead of obsolete rules * Add support of 'SELECT a, b FROM t1 WHERE userID=%%VALUE%%' pattern * Some refactoring * Requested changes (meaningful names) * Requested changes (Add SelectQueryCount const for readability) * Requested changes (add acceptable/blockable queries for readability) * Requested changes (add cases with some conditions) * Requested changes (add comments for golint) * Requested changes (handle SELECT A, %%COLUMN%% FROM testTable' cases) + some refactoring * Some refactoring * Add support of 'SELECT * FROM table %%WHERE%% pattern + some refactoring' * Requested changes * Requested changes (ColName check) * Requested changes (avoid processing loop if possible) * Rewrite '*' pattern * Requested changes (skip all nodes walking if star found) * Requested changes (golint) * More golint fixes * Add positive log message when censor doesn't need to continue checks * Refactoring censor's unit tests * Refactoring censor's unit tests (blacklist) * Refactoring blacklist (move pattern matching logic to utilities) * Refactor handlers utilities * Some refactoring * Add pattern matching functionality to whitelist * Delete file with tests for function that is not needed further * Add spaces in comments where needed * Requested changes (godoc style for comments) * Requested changes (add actual error info logging) * Requested changes (add complex 'where' queries to test) * Add debug log in table's processing (whitelist/blacklist) * fix some typos in whitelist messages * Add ignore_parse_flag to blacklist test config * Add ignore_parse_flag to whitelist + add test %%SELECT%% pattern * Add pattern %%SELECT%% test to whitelist * Add additional lenght check * use default loop syntax * Improve %%VALUE%% pattern (#238) * Add whitelist tests for pattern %%VALUE%% * Add blacklist tests for pattern %%VALUE%% * Improve %%VALUE%% pattern * Requested changes (add helper function and test queries) * gofmt * AcraCensor: normalize queries and fix QueryCaptureHandler (#243) * fix query capture checks for AcraCensor * normalize queries before processing; major tests update * do not take into account comments * update query_capture json names, remove tmp files using defer * update ignored queries list * add 'rollback' to ignored queries * merge closing connection of AS from master * remove printing log contents * try to decode log * encode for printing * fix: log only queries with redacted values, remove utf8 encoding for tests * _blocked_by_web_config -> _blacklisted_by_web_config * fix %%value%% and %%column%% patterns (#245) * More golint fixes (#227) * setup golint again * change go install to go get * setup GOPATH * more golint comments * golint renaming * golint fixing errors style * golint, decryptor comments * decrease amount of "allowed" issues to 250 * add godoc badge * update package godoc decription and copyrights for every package (#228) * remove duplicated package comments (#229) * check poison records after decryption for PostgreSQL [T685] (#230) * refactor pg decryptor * move processing ssl request to separate function * move processing data in inline mode to separate function * rename packet -> packetHandler * use blockable function call of server at end of main function * fix magical panic with server usage at end of program * drop golang < 1.8 from tests * refactor constant names * drop redundant code and reader * check with long begin tag in other cases in poison record detection * fix detection poison records with inline mode * check poison records after decryption for mysql [T685] (#232) * fix detection poison records with inline mode * skip redundant decryption poison records in postgresql * don't check poison records if turned off * AcraWriter for iOS, objc [T666] (#233) * AcraWriter for objc + example * acrawriter pod + acrawriter example in correct folders; hide private headers; * AW: more error handling, make errors public * add acrawriter tests * AcraWriter: prepare for publishing pod (#235) * put podspec into root folder * simplify folder structure * make acrwriter scheme shared * point AcraWriter example on master * collect metrics [T662] (#234) * collect some metrics from acra-server and acra-connector * fix registering listeners and refactor closing prometheus http handler * collect count of failed decryptions * track processing time of db responses with decryption * track time of request proxying * use function call instead defer * increase wait time of queryhandler to avoid test fail when handler didn't dump queries before check * update name of metrics track time in missed places * Added tools to AcraServer and AcraTranslator containers (#236) * added `acra-poisonrecordmaker` to `acra-server` and `acra-translator` containers * added `acra-rollback` to `acra-server` * moved auxiliary scripts to `socker/_scripts` folder * created `add_component.sh` script, optimized code * set actual golang version * Small fixes of poison records handling (#240) * update some naming, add some logs * fix poison record callback order for AT * update poison records parameters * return poison record decryption error for AT * move back general error for AT * move iOS example into /examples folder, add Readme (#241) * AcraTranslator startup, and logs (#242) * acra-translator: start only HTTP or gRPC connection, not both * AT: listen to gRPC by default; add start service logs fot AS, AC, AT * fix AT tests * beautify logs * remove default gRPC connection string from configuration file, by use it as default value * rotate acrastructs in files [T672] (#239) * collect some metrics from acra-server and acra-connector * fix registering listeners and refactor closing prometheus http handler * collect count of failed decryptions * track processing time of db responses with decryption * track time of request proxying * use function call instead defer * increase wait time of queryhandler to avoid test fail when handler didn't dump queries before check * extend keystore with method to rotate zone key * add unit-test and update other tests * update log messages in acra-rollback * add acra-rotate * add license * close all connections correctly on server close * gometalinter fixes * add integration test * cleanup test master key * change to lowercase json fields in output * move file rotation logic to separate file * drop old code * set encoding for json decoding * explicitly handle encoding of process output * add commands to run tests for mysql * back acra-censor's interface name * drop redundant test cases decrease timeouts * fix %%column%% pattern * comments and log * fix %%value%% pattern * remove repeated logs (#246) * merge master -> acracensor (#247) * More golint fixes (#227) * setup golint again * change go install to go get * setup GOPATH * more golint comments * golint renaming * golint fixing errors style * golint, decryptor comments * decrease amount of "allowed" issues to 250 * add godoc badge * update package godoc decription and copyrights for every package (#228) * remove duplicated package comments (#229) * check poison records after decryption for PostgreSQL [T685] (#230) * refactor pg decryptor * move processing ssl request to separate function * move processing data in inline mode to separate function * rename packet -> packetHandler * use blockable function call of server at end of main function * fix magical panic with server usage at end of program * drop golang < 1.8 from tests * refactor constant names * drop redundant code and reader * check with long begin tag in other cases in poison record detection * fix detection poison records with inline mode * check poison records after decryption for mysql [T685] (#232) * fix detection poison records with inline mode * skip redundant decryption poison records in postgresql * don't check poison records if turned off * AcraWriter for iOS, objc [T666] (#233) * AcraWriter for objc + example * acrawriter pod + acrawriter example in correct folders; hide private headers; * AW: more error handling, make errors public * add acrawriter tests * AcraWriter: prepare for publishing pod (#235) * put podspec into root folder * simplify folder structure * make acrwriter scheme shared * point AcraWriter example on master * collect metrics [T662] (#234) * collect some metrics from acra-server and acra-connector * fix registering listeners and refactor closing prometheus http handler * collect count of failed decryptions * track processing time of db responses with decryption * track time of request proxying * use function call instead defer * increase wait time of queryhandler to avoid test fail when handler didn't dump queries before check * update name of metrics track time in missed places * Added tools to AcraServer and AcraTranslator containers (#236) * added `acra-poisonrecordmaker` to `acra-server` and `acra-translator` containers * added `acra-rollback` to `acra-server` * moved auxiliary scripts to `socker/_scripts` folder * created `add_component.sh` script, optimized code * set actual golang version * Small fixes of poison records handling (#240) * update some naming, add some logs * fix poison record callback order for AT * update poison records parameters * return poison record decryption error for AT * move back general error for AT * move iOS example into /examples folder, add Readme (#241) * AcraTranslator startup, and logs (#242) * acra-translator: start only HTTP or gRPC connection, not both * AT: listen to gRPC by default; add start service logs fot AS, AC, AT * fix AT tests * beautify logs * remove default gRPC connection string from configuration file, by use it as default value * rotate acrastructs in files [T672] (#239) * collect some metrics from acra-server and acra-connector * fix registering listeners and refactor closing prometheus http handler * collect count of failed decryptions * track processing time of db responses with decryption * track time of request proxying * use function call instead defer * increase wait time of queryhandler to avoid test fail when handler didn't dump queries before check * extend keystore with method to rotate zone key * add unit-test and update other tests * update log messages in acra-rollback * add acra-rotate * add license * close all connections correctly on server close * gometalinter fixes * add integration test * cleanup test master key * change to lowercase json fields in output * move file rotation logic to separate file * drop old code * set encoding for json decoding * explicitly handle encoding of process output * add commands to run tests for mysql * Zeroing private keys in acrawriters (#244) * zeroing PrivK in some acrwriters * upd ruby
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
affects iOS only:
acrawriter.podspec
to the root folder