GithubHelp home page GithubHelp logo

Comments (9)

AnotherNerdHere avatar AnotherNerdHere commented on September 16, 2024 1

Based on the info in https://github.com/chef/inspec/tree/master/examples/profile, being able to specify path names either local paths or local git repo (bitbucket/stash) would be helpful. We don't use github for our vcs.

from kitchen-inspec.

chris-rock avatar chris-rock commented on September 16, 2024

@rndmh3ro This is not restricted to kitchen-inspec and is expected behaviour in test-kitchen. Test directories are determined by test/integration/%suite-name%.

As highlighted in my response in dev-sec/ansible-ssh-hardening#61, I propose we use real InSpec profiles for the test suites and remote profiles in combination with kitchen-inspec.

suites:
  - name: default
    run_list:
      - recipe[ssh-hardening::default]
    verifier:
      inspec_tests:
        - https://github.com/hardening-io/tests-ssh-hardening/tree/2.0

from kitchen-inspec.

jcii avatar jcii commented on September 16, 2024

My employer has enterprise github. I would like to have Inspec tests stored in separate audit cookbooks and pull them from github.mycompany.com ... kitchen-inspec only works if https://github.com/ is the beginning of the URL (from what I can discern...)

from kitchen-inspec.

chris-rock avatar chris-rock commented on September 16, 2024

You can easily pass a path:

suites:
  - name: default
    run_list:
      - recipe[ssh-hardening::default]
    verifier:
      inspec_tests:
        - /path/to/profile

@jcii right now, InSpec only understands github url, but we could find a way to make that happen. The only piece that needs some adaption is: https://github.com/chef/inspec/blob/master/lib/fetchers/url.rb Therefore it is not a limitation of kitchen-inspec, but inspec.

from kitchen-inspec.

aidda avatar aidda commented on September 16, 2024

@chris-rock I`m wondering to know is that possible to use bitbucket insted of github?

from kitchen-inspec.

chris-rock avatar chris-rock commented on September 16, 2024

@aidda Yes we have bitbucket support, although it is not well documented yet. Please help us to make it better! You can see possible urls here: https://github.com/chef/inspec/blob/master/lib/fetchers/url.rb#L46-L63

from kitchen-inspec.

aidda avatar aidda commented on September 16, 2024

@chris-rock I was checking this link yesterday ;) and add bitbucket url in kitchen-inspec. it was working perefctly. I`ll update the documents! thanks

from kitchen-inspec.

chris-rock avatar chris-rock commented on September 16, 2024

Awesome. Thank you @aidda

from kitchen-inspec.

adamleff avatar adamleff commented on September 16, 2024

It appears this issue is resolved, and the generic url fetcher can be used to pull a .tar.gz file from an enterprise github if needed (just navigate to the "releases" section of the repo to find the exact URL you need).

from kitchen-inspec.

Related Issues (20)

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.