Giter Club home page Giter Club logo

dome9's Introduction

Hi there 👋

I'm David Amrani. Working in cybersecurity since 2014 within different teams as QA, IT or Secops
and automating cloud and security processes in projects with agile methodology.

I like to bring cybersecurity and new technologies closer to people and especially to young people,
and so I also often give talks about security and innovation.

I also like to write on my Medium blog about:
· #Hacking
· #NewTechnologies
· #CloudSecurity

About me

  • 💼 Working as Secdevops / Cloud Security
  • 🎤 Speaker at Universities & Bootcamps
  • 📚 Reading about AI, Philosophy & Ethics
  • 🩵 Travel, Snowboard & Beer-talks

Latest posts

"I've met some people along the way,
some of them shine, some of them burn,
from all these people I try to learn,
For good or bad I've known them all."


Medium LinkedIn Twitter

dome9's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

dome9's Issues

🐞 Setup.py -> io.open() instead open() for Python2 compatibility

Error installing dome9 (0.5) due to use of open() on setup.py:

Error build: https://github.com/Telefonica/dome9-cli/runs/6594916448?check_suite_focus=true

Collecting dome9
  Downloading dome9-0.4.1.tar.gz (9.0 kB)
    ERROR: Command errored out with exit status 1:
     command: /opt/hostedtoolcache/Python/2.7.18/x64/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zDaJct/dome9/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zDaJct/dome9/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-NBhNnu
         cwd: /tmp/pip-install-zDaJct/dome9/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-zDaJct/dome9/setup.py", line 26, in <module>
        version=read_file('VERSION').strip(),
      File "/tmp/pip-install-zDaJct/dome9/setup.py", line [21](https://github.com/Telefonica/dome9-cli/runs/6594916448?check_suite_focus=true#step:4:22), in read_file
        with open(filename, encoding="utf-8") as f:
    TypeError: 'encoding' is an invalid keyword argument for this function
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Error: Process completed with exit code 1.

Solution: https://bugs.launchpad.net/pbr/+bug/1470551

list_protected_assets does not return

While trying to use list_protected_assets() it does not ever return for me. I believe the issue is here as when I comment out this line I get the return I expect.

Am I using the package incorrectly or should this line be removed?

🛠️ Handle 404 errors to avoid crashes on CLI

Traceback (most recent call last):
  File "C:\Users\david\Repositories\dome9-cli\cli\dome9cli.py", line 304, in <module>
    fire.Fire(Dome9CLI())
  File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\fire\core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\fire\core.py", line 466, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\fire\core.py", line 681, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "C:\Users\david\Repositories\dome9-cli\cli\dome9cli.py", line 294, in get_assessment
    data = self._dome9.get_assessment(assessmentId)
  File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\dome9\dome9.py", line 426, in get_assessment
    return self._get(route='AssessmentHistoryV2/%s' % str(assessmentId))
  File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\dome9\dome9.py", line 65, in _get
    return self._request('get', route, payload)
  File "C:\Users\david\.virtualenvs\dome9-cli-b-5h-f_6\lib\site-packages\dome9\dome9.py", line 61, in _request
    raise Exception(err)
Exception: {'code': 404, 'message': 'Not Found', 'content': b'Resource with id 2222222222222 of type AssessmentHistoryEntity was not found'}

Question about run_assessment

Hi, David.
Thanks for writing a great code.
I have a question about your code.

When I run "dome9.run_assessment", I get a 500 error, but I cannot determine if the problem is on the Dome9 side or in my code.
Here is the code I ran. All arguments are set separately with type str.

from dome9 import Dome9
dome9 = Dome9(key=api_key_id, secret=api_secret_key)
dome9.run_assessment(rulesetId, cloudAccountId, region=None)

And here is the error statement.

Exception: {'code': 500, 'message': 'Internal Server Error', 'content': b'An error has occured.'}

Please let me know your thoughts on where the problem lies.

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.