Skip to content

Commit

Permalink
Removed categories. Added default-to-open behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Will Dower <[email protected]>
  • Loading branch information
wdower committed Apr 3, 2020
1 parent 68e58a8 commit 1f79e57
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 56 deletions.
40 changes: 15 additions & 25 deletions src/assets/data/faqs.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
{
"faqs": [
{
"category": "InSpec",
"desc": "foobar",
"questions": [
"question": "How do I know which NIST SP 800-53 Security Controls are addressed using this framework?",
"answer": "NIST SP 800-53 associations are included in all InSpec profiles and output from other security tools processed through Heimdall_tools. See our presentation to learn more!",
"links": [
{
"question": "How do I know which NIST SP 800-53 Security Controls are addressed using this framework?",
"answer": "NIST SP 800-53 associations are included in all InSpec profiles and output from other security tools processed through Heimdall_tools. See our presentation to learn more!",
"links": [
{
"name": "InSpec, HDF, and NIST SP 800-53 Security Controls",
"download_link": "MITRE_InSpec_Profiles_and_HDF_include_NIST_SP-800-53_Associations.pdf"
}
]
},
"name": "InSpec, HDF, and NIST SP 800-53 Security Controls",
"download_link": "MITRE_InSpec_Profiles_and_HDF_include_NIST_SP-800-53_Associations.pdf"
}
]
},
{
"question": "How can I use InSpec tests in my CI/CD pipeline?",
"answer": "InSpec tests can be integrated as part of a test battery in your favorite CI platform. For example, you can add InSpec testing to your Travis CI file to run InSpec automatically. For further details, please see our Advanced InSpec Developer's Course.",
"code": "// travis.yml\n\nsudo: required\n\n# blocklist\n#branches:\n# except:\n# - development\n\n# safelist\n#branches:\n# only:\n# - master\n# - stable\n\nlanguage: ruby\nrvm:\n - 2.6.1\n\ncache: bundler\n\naddons:\n apt:\n sources:\n - chef-current-xenial\n # packages:\n # - chef-workstation\n #artifacts: true\n\n# Don't `bundle install` which takes about 1.5 mins\ninstall:\n\nservices: docker\n\nenv:\n matrix:\n - INSTANCE=default-ubuntu-1604\n\nbefore_script:\n - wget https://packages.chef.io/files/stable/chef-workstation/0.5.1/ubuntu/16.04/chef-workstation_0.5.1-1_amd64.deb\n - sudo dpkg -i chef-workstation_*.deb\n - rm chef-workstation_*.deb\n - sudo iptables -L DOCKER || ( echo \"DOCKER iptables chain missing\" ; sudo iptables -N DOCKER )\n - eval\\$(chef shell-init bash)\"\n - gem install bundler:2.0.1\n - gem install inspec_tools\n - inspec --version\n - CHEF_LICENSE=accept chef gem update inspec\n - CHEF_LICENSE=accept chef gem update inspec-bin\n - /opt/chef-workstation/embedded/bin/gem update inspec\n - /opt/chef-workstation/embedded/bin/gem update inspec-bin\n - inspec --version\n - bundle update --bundler\n - bundle install\n - chef --version\n - cookstyle --version\n - foodcritic --version\n\nscript: \n - CHEF_LICENSE=accept-no-persist KITCHEN_LOCAL_YAML=kitchen.dokken.yml CHEF_VERSION=\\${CHEF_VERSION} kitchen verify \\${INSTANCE} || true\n - export RESULTS=\\$(ls results/*.json)\n - inspec_tools compliance -j $RESULTS -f threshold.yml",
"links": [
{
"question": "How can I use InSpec tests in my CI/CD pipeline?",
"answer": "InSpec tests can be integrated as part of a test battery in your favorite CI platform. For example, you can add InSpec testing to your Travis CI file to run InSpec automatically. For further details, please see our Advanced InSpec Developer's Course.",
"code": "// travis.yml\n\nsudo: required\n\n# blocklist\n#branches:\n# except:\n# - development\n\n# safelist\n#branches:\n# only:\n# - master\n# - stable\n\nlanguage: ruby\nrvm:\n - 2.6.1\n\ncache: bundler\n\naddons:\n apt:\n sources:\n - chef-current-xenial\n # packages:\n # - chef-workstation\n #artifacts: true\n\n# Don't `bundle install` which takes about 1.5 mins\ninstall:\n\nservices: docker\n\nenv:\n matrix:\n - INSTANCE=default-ubuntu-1604\n\nbefore_script:\n - wget https://packages.chef.io/files/stable/chef-workstation/0.5.1/ubuntu/16.04/chef-workstation_0.5.1-1_amd64.deb\n - sudo dpkg -i chef-workstation_*.deb\n - rm chef-workstation_*.deb\n - sudo iptables -L DOCKER || ( echo \"DOCKER iptables chain missing\" ; sudo iptables -N DOCKER )\n - eval\\$(chef shell-init bash)\"\n - gem install bundler:2.0.1\n - gem install inspec_tools\n - inspec --version\n - CHEF_LICENSE=accept chef gem update inspec\n - CHEF_LICENSE=accept chef gem update inspec-bin\n - /opt/chef-workstation/embedded/bin/gem update inspec\n - /opt/chef-workstation/embedded/bin/gem update inspec-bin\n - inspec --version\n - bundle update --bundler\n - bundle install\n - chef --version\n - cookstyle --version\n - foodcritic --version\n\nscript: \n - CHEF_LICENSE=accept-no-persist KITCHEN_LOCAL_YAML=kitchen.dokken.yml CHEF_VERSION=\\${CHEF_VERSION} kitchen verify \\${INSTANCE} || true\n - export RESULTS=\\$(ls results/*.json)\n - inspec_tools compliance -j $RESULTS -f threshold.yml",
"links": [
{
"name": "InSpec Pipeline Integration Example",
"link": "https://mitre-inspec-advanced-developer.netlify.com/course/4.html"
},
{
"name": "InSpec Pipeline Integration Example",
"link": "https://mitre-inspec-advanced-developer.netlify.com/course/4.html"
}
]
"name": "InSpec Pipeline Integration Example",
"link": "https://mitre-inspec-advanced-developer.netlify.com/course/4.html"
}
]
}
Expand Down
51 changes: 21 additions & 30 deletions src/components/faqInfo.vue
Original file line number Diff line number Diff line change
@@ -1,37 +1,27 @@
<template>
<v-container fluid>
<v-expansion-panels tile>
<v-expansion-panel v-for="category in faqs" :key="category">
<v-expansion-panels accordion tile v-model="panel" multiple flat>
<v-expansion-panel v-for="faq in faqs" :key="faq">
<v-expansion-panel-header
class="google-font"
style="color: #1a73e8; font-weight: 200; font-size:120% "
>{{category.category}}</v-expansion-panel-header>
<v-expansion-panel-content class="mb-2">{{category.desc}}
<v-expansion-panels accordion tile>
<v-expansion-panel v-for="faq in category.questions" :key="faq">
<v-expansion-panel-header
class="google-font"
style="color: #1a73e8; font-weight: 200; font-size:120% "
>{{faq.question}}</v-expansion-panel-header>
<v-expansion-panel-content>{{faq.answer}}</v-expansion-panel-content>
<v-expansion-panel-content v-if="faq.links">
<div v-for="link in faq.links" :key="link">
<a
:href="link.download_link ? link.download_link : link.link"
target="_blank"
:download="link.download_link"
>{{link.name}}</a>
</div>
</v-expansion-panel-content>
<v-expansion-panel-content v-if="faq.code" class="hidden-sm-and-down">
<v-row>
<v-col xs="3">
<code class="pa-2" v-if="faq.code">{{faq.code}}</code>
</v-col>
</v-row>
</v-expansion-panel-content>
</v-expansion-panel>
</v-expansion-panels>
>{{faq.question}}</v-expansion-panel-header>
<v-expansion-panel-content>{{faq.answer}}</v-expansion-panel-content>
<v-expansion-panel-content v-if="faq.links">
<div v-for="link in faq.links" :key="link">
<a
:href="link.download_link ? link.download_link : link.link"
target="_blank"
:download="link.download_link"
>{{link.name}}</a>
</div>
</v-expansion-panel-content>
<v-expansion-panel-content v-if="faq.code" class="hidden-sm-and-down">
<v-row>
<v-col xs="3">
<code class="pa-2" v-if="faq.code">{{faq.code}}</code>
</v-col>
</v-row>
</v-expansion-panel-content>
</v-expansion-panel>
</v-expansion-panels>
Expand Down Expand Up @@ -65,7 +55,8 @@
import faqs from "@/assets/data/faqs.json";
export default {
data: () => ({
faqs: faqs.faqs
faqs: faqs.faqs,
panel: [0, 1],
})
};
</script>
2 changes: 1 addition & 1 deletion src/components/training/traininginfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
target="_blank"
>InSpec Advanced Developer Course</a>
</span>
- In depth explaination of some of the higher functionalities provided by InSpec
- In depth explanation of some of the higher functionalities provided by InSpec
</p>

<br />
Expand Down

0 comments on commit 1f79e57

Please sign in to comment.