Giter Club home page Giter Club logo

cauliflowervest's Issues

RuntimeError: Previous version of google-api-python-client detected

After performing "make release" the following error will occur on the webpage for Cauliflower Vest. Running the suggested "pip install -I google-api-python-client" does not resolve the issue, and it occurs on every machine with fresh OS installs we attempted to compile on.

Traceback (most recent call last):
File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 96, in LoadObject
import(cumulative_path)
File "/base/data/home/apps/sproject-name/0137redacted.deploymentid788948/cauliflowervest/server/main.py", line 22, in
from cauliflowervest.server.handlers import apple_firmware
File "/base/data/home/apps/s
project-name/0137redacted.deploymentid788948/cauliflowervest/server/handlers/apple_firmware.py", line 26, in
from cauliflowervest.server.models import firmware
File "/base/data/home/apps/sproject-name/0137redacted.deploymentid788948/cauliflowervest/server/models/firmware.py", line 21, in
from cauliflowervest.server import encrypted_property
File "/base/data/home/apps/s
project-name/0137redacted.deploymentid788948/cauliflowervest/server/encrypted_property.py", line 29, in
from cauliflowervest.server import cloud_kms
File "/base/data/home/apps/sproject-name/0137redacted.deploymentid788948/cauliflowervest/server/cloud_kms.py", line 28, in
from apiclient import discovery
File "/base/data/home/apps/s
project-name/0137redacted.deploymentid788948/apiclient/init.py", line 11, in
'Previous version of google-api-python-client detected; due to a '
RuntimeError: Previous version of google-api-python-client detected; due to a packaging issue, we cannot perform an in-place upgrade. To repair, remove and reinstall this package, along with oauth2client and uritemplate. One can do this with pip via
pip install -I google-api-python-client

appcfg.py error

Test-Mac:cauliflowervest test123$ bazel run cauliflowervest/server:main.deploy
INFO: Analysed target //cauliflowervest/server:main.deploy (1 packages loaded).
INFO: Found 1 target...
Target //cauliflowervest/server:main.deploy up-to-date:
bazel-bin/cauliflowervest/server/main_deploy.sh
bazel-bin/cauliflowervest/server/main.deploy
INFO: Elapsed time: 4.531s, Critical Path: 0.06s
INFO: Build completed successfully, 1 total action

INFO: Running command line: bazel-bin/cauliflowervest/server/main.deploy
Usage: appcfg.py [options] update | [file, ...]

appcfg.py: error: Expected -A app_id when application property in file app.yaml is not set.
ERROR: Non-zero return code '2' from command: Process exited with status 2

  • Manually adding application setting to app.yaml yields:

INFO: Analysed target //cauliflowervest/server:main.deploy (1 packages loaded).
INFO: Found 1 target...
Target //cauliflowervest/server:main.deploy up-to-date:
bazel-bin/cauliflowervest/server/main_deploy.sh
bazel-bin/cauliflowervest/server/main.deploy
INFO: Elapsed time: 4.514s, Critical Path: 0.06s
INFO: Build completed successfully, 1 total action

INFO: Running command line: bazel-bin/cauliflowervest/server/main.deploy
03:41 PM Application: st-cauliflower; version: 1
03:41 PM Host: appengine.google.com
03:41 PM Starting update of app: st-cauliflower, version: 1
03:41 PM Getting current resource limits.

  • Process hangs at this stage.

'make dmg' pkg fails to install

Using PackageMaker 3.0.6 on Sierra 10.12.5 results in a DMG that fails to install.

Error from console during installation:

(com.apple.xpc.launchd.domain.pid.IDECacheDeleteAppExtension.686): Path not allowed in target domain: type = pid, path = /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/XPCServices/RootDebuggingXPCService.xpc error = 147: The specified service did not ship in the requestor's bundle, origin = /Applications/Xcode.app/Contents/PlugIns/IDECacheDeleteAppExtension.appex

Weak Cryptographic Hash

We found a problem about Weak Cryptographic Hash in cauliflowervest-master/cauliflowervest/server/models/base.py
image
Weak cryptographic hashes cannot guarantee data integrity and should not be used in security-critical contexts.

Python27 Error

After running the make release command I get the following error:

appcfg.py --version=0-9-4 update gae_bundle/
Error parsing yaml file:
Unable to assign value 'python27' to attribute 'runtime':
Value 'python27' for key runtime does not match expression '^python$'
in "gae_bundle/app.yaml", line 3, column 10
make: *** [release] Error 1

Please assist.

Cauliflowervest using deprecated mechanism on Macs - loginhook?

I have just had a quick read of the Wiki and as far as I can see the Mac client for CauliflowerVest to enforce FileVault encryption and to escrow the recovery key to the CauliflowerVest server still uses a loginhook as the means for executing upon a user login.

For several years now Apple have been actively discouraging the use of loginhooks (and logouthooks). It is the case that the main alternative of a loginagent that is run via launchd is not able to run with the needed root privilege level to execute fdesetup. However in more recent times Apple has provide a new mechanism that could be used instead which is a native authorization plugin. See https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CustomLogin.html

It is my understanding that Crypt an alternative FileVault2 escrow solution does now use such a native authorization plugin to manage FileVault encryption and escrow.

I would therefore suggest that CauliflowerVest be updated to include such an approach for the client instead.

Cron job /cron/group_sync is causing NotImplementedError

I don't understand this part. The cron job /cron/group_sync is turned on but the actually method is not implemented, which causes NotImplementedError.
I think if it's not implemented yet, it' better to turn off the cron job.
Because, for now, it is has errors log every 60 minutes in the App Engine.

App Engine Upload Error

After uploading the cauliflower vest server code to an app engine instance (using google cloud SDK shell on both mac and windows) I get the following traceback when visiting my appspot URL

it seems it cant find the cailiflowervest module, has any one come across this before?

Traceback (most recent call last):
File "/base/alloc/tmpfs/dynamic_runtimes/python27/8882c914eb6132e9_unzipped/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/base/alloc/tmpfs/dynamic_runtimes/python27/8882c914eb6132e9_unzipped/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/base/alloc/tmpfs/dynamic_runtimes/python27/8882c914eb6132e9_unzipped/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = import(path[0])
ImportError: No module named cauliflowervest

Deployment gcloud app

During deployment, I have this error issue.
I tried to see what is in 'T' folder but there is no war.p06n1daH as in the screenshot...
I saw google App limit to 35 MB but why do I got a 100+MB project ?

capture d ecran 2019-01-17 a 11 36 17

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.