-
Notifications
You must be signed in to change notification settings - Fork 218
Add a switch to control writing to /proc/sys #146
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
Conversation
|
Hey alexjh! Thanks for submitting this pull request! All pull request authors must have a Contributor License Agreement (CLA) on-file with us. Please sign the appropriate CLA (individual or corporate). When sending signed CLA please provide your github username in case of individual CLA or the list of github usernames that can make pull requests on behalf of your organization. If you are confident that you're covered under a Corporate CLA, please make sure you've publicized your membership in the appropriate Github Org, per these instructions. Once you've publicized your membership, one of the owners of this repository can close and reopen this pull request, and dreddbot will take another look. |
1 similar comment
|
Hey alexjh! Thanks for submitting this pull request! All pull request authors must have a Contributor License Agreement (CLA) on-file with us. Please sign the appropriate CLA (individual or corporate). When sending signed CLA please provide your github username in case of individual CLA or the list of github usernames that can make pull requests on behalf of your organization. If you are confident that you're covered under a Corporate CLA, please make sure you've publicized your membership in the appropriate Github Org, per these instructions. Once you've publicized your membership, one of the owners of this repository can close and reopen this pull request, and dreddbot will take another look. |
|
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/115904293. |
|
Ah, I didn't have my membership for the hpcloud org set to public. Just updated it now. |
|
Ok dreddbot, trying again. |
|
Hey alexjh! Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you've already signed the CLA. |
1 similar comment
|
Hey alexjh! Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you've already signed the CLA. |
|
Thanks, @alexjh! Could you elaborate on which BOSH-deployed environments don't allow writing to Also, the 'tweak' in the property name sounds too informal. Would you mind changing the property names to 'adjust_proc_sys' or something similar? Thanks, |
8ac0d06 to
5a5903b
Compare
|
Hi @ematpl! Renaming is no problem, I've changed the property names to Re the environment, we're running the diego-release components in a docker container, so our There are some recommended ways of checking if you're in a docker container but I didn't want our implementation leaking into the diego-release scripts. But if you think that would be better than adding properties, I can make a change to running_in_container() to handle our case as well. |
|
Thanks for the extra context, @alexjh. Do you think it would be reasonable to change the |
|
@ematpl That makes sense. I've pushed the change to handle both cases, no new configuration properties are needed. |
|
Thanks, @alexjh! I'll prioritize the story for the Diego team to evaluate this and pull it in. Best, |
[finishes #155485548](https://www.pivotaltracker.com/story/show/155485548) Submodule src/code.cloudfoundry.org/diego-ssh 9b3f460..1174556: > Upgrade jwt-go library. Submodule src/code.cloudfoundry.org/uaa-go-client 0c176509..26b271e3: > Ignore validation error when token used before issued > go back to using submodules from routing-release > Provide correct url > Update README > all tests passing with newer JWT > fixing vet errors > Merge pull request #10 from cloudfoundry-incubator/vendor-deps > Revert "remove incubator" > remove incubator Submodule src/github.com/dgrijalva/jwt-go f62f64ea..06ea1031: > documentation around expected key types > Merge branch 'master' of github.com:dgrijalva/jwt-go > add options to ParseFromRequest > fixed a formatting error in a test > documenting changes for upcoming 3.2.0 release > Merge pull request #152 from pusher/parse-unverified > Merge pull request #219 from geertjanvdk/feat/parse > Merge pull request #205 from zamicol/icon_godoc > Merge pull request #209 from zhyuri/patch-1 > Merge pull request #220 from polarina/readme-alt-include > Notice about upcoming 4.0.0 release > 3.1.0 changelog > Merge pull request #218 from zoofood/patch-1 > updated note on alg type vulnerability > Merge pull request #183 from hnakamur/support_rs256_in_jwt_command > Merge pull request #196 from dgrijalva/dg/cmd_args > Merge pull request #190 from jamesrwhite/patch-1 > Merge pull request #180 from kevinburke/fix-unreachable > Merge pull request #166 from johnlockwood-wf/issue-165-missing-arg > Merge pull request #151 from zaichang/FixMigrationGuide > Merge pull request #146 from pkieltyka/master > Merge pull request #140 from kazhuravlev/patch-1 > Merge pull request #77 from dgrijalva/release_3_0_0 > v2.7.0 > notice about imminent 3.0.0 > Merge pull request #136 from bruston/keyfunc-typo > fixes #135 copy/paste error in rsa decoding tools > Merge pull request #132 from abourget/master > Merge pull request #133 from johnlockwood-wf/expire-delta > release notes > expose inner error within ValidationError > Merge branch 'master' of https://github.com/emanoelxavier/jwt-go-contr into dg/merge_112 > cleaned up style and added tests > Merge branch 'master' of https://github.com/dakom/jwt-go into dg/pr_121 > version history update > Merge pull request #79 from dgrijalva/dg/none > Merge pull request #122 from appleboy/patch-1 > add 1.6 to travis.yml > Merge pull request #107 from Snorlock/bearer-verification > Merge pull request #111 from matm/master > added supported signing methods > Added some clarification and (hopefully) helpful documentation > version history > signature should be populated after parsing a valid token > Merge pull request #98 from dgrijalva/dg/parser > use cleaner version of prefix checking (thanks shurcooL) > fix array OOB panic (#100) > Merge pull request #93 from EnerfisTeam/master > Merge branch 'master' of github.com:dgrijalva/jwt-go > minor refactor of HMAC verify for legibility. no functional changes > updated documenation of SigningMethod interface
Not all environments allow writing to /proc/sys, allow these to be
controlled via config setting.
There is already a check for running_in_container() but this seems to be bosh-lite specific as it's looking for a specific entry in /proc/self/cgroup.