Skip to content

Commit

Permalink
Version 0.1.0 (#2)
Browse files Browse the repository at this point in the history
* enable epp

* Fix epp

* added appx publisher rule

* fix

* removed check

* updates

* fix

* notify bad

* fix

* blah

* bayte

* aasdfasdf

* adsf

* fix

* mve

* fix

* added filepublisher rules for all

* notify

* fixed

* test with enabled

* with temp

* Check match

* with strip

* Check xml to hash

* blah

* fix

* fix

* to file

* fix

* create dir

* piusj

* fiox

* tuple

* fix

* Print rules

* Remove sort hash

* fix

* no sort

* with notify

* print da rules

* Set array

* test

* sort

* check class tyep

* return string

* make string

* sort that shit

* sure

* fixy

* print it

* reorder

* return rules

* print rule collection

* check return

* remove large notify

* check rules

* end of day

* Return appx rules

* test

* return

* print rules

* remove return

* return array

* blah

* test

* get desired

* Temp workings

* Update rule comprison

* Fix comparion function

* remove comment

* call function

* change boolean

* return hash

* fix

* blah

* disable lines

* strip function

* remove return

* enable some code

* enable stuff

* Final

* change rule

* Fix exe

* test

* Fix script

* change rule

* Fix scirp rule

* break rule

* more fail

* Fix rule

* Fix rules

* test fail

* blah

* Fixed rule check logic

* Remove additional rule

* Only if

* Update policy

* add additional rule

* disable temp for exec

* set audit only exec

* Check enforcement mode

* Change directory for policy

* enable exec

* enable exec temp

* Enable service

* Set auditonly

* blah

* apply exec rules

* Allow in c temp

* auditonly

* Added exception for appx

* Fix hi_version

* with more exception

* Added exceptions

* add hash rule

* Added file hash

* Fix template

* Fix

* fix

* Disable hash def

* enable exec

* enable hash rule

* add file hash rule

* remove hash

* Push

* test

* Check rule 2

* exclude exe

* enable hash

* Print ids

* Added file hash rule get ID

* Remove notify

* Remove hash rule

* Added hash for other rule types

* enable script rules

* test

* Remove present

* test

* remove crud

* Bump pdk version. Struct removed

* test commit

* Return empty hash if no rules

* Don't check length

* return {}

* Test

* Test

* Set to string

* Set for all values

* Check if hash before looping in get_rule_selection

* Wrong logic :/

* Create temp

* Create c:\temp folder

* read hash policy

* convert to string

* Puts

* Return no match

* added notify

* duplicates

* print check resutls

* print rules

* added puts, removed notify

* check for rules collection

* Check rules only

* Added and check

* removed notify

* Disable unneeded test files

* check results

* remove $

* check defined

* Check with dig

* remove notify

* remove notify

* enable ruel check results

* return more info

* Check more values

* try with begin and rescue

* disable rule check results notify

* switch to path temp\doge

* Added ability to verify rules

* added \\

* fix

* check fi valid

* with else

* switch to invalide policy

* Commit

* check string?

* check with test-applocker

* powershell

* with broken policy

* no log

* test

* Check fail

* Verify applocker policy

* made it paths.

* update

* move dir

* try to break xml

* fix xml

* switch it audit only

* restore compare rules

* chekc makrdwon

* enable checks

* Fix lint enable unit tests

* Remove unused function

* Lint fixes

* use system drive

* fix

* work so far

* Test new fact

* push code with updates

* break unit tests

* Fix unit test

* enable all unit tests

* fixed lint

* enable exe rules

* Audit only exec

* Updated readme

* Update readme

* Fix bold

* Doco updates

* Delete rules

* Check rules

* Check raw epp

* Check length

* Test with new logic for empty rules

* convert to hash

* check return

* Push with fixed logic for compare rules

* Remove uneeded notify

* fix indent

* proposed rules

* Fix for empty rule issue

* Removed printing proposed rules

* commit changes

* Logic fixes

* print rules

* move check

* Push more details

* Update appx

* Return empty string

* disable notify

* Push updates

* enable unit tests

* Remove notify

* Update readme

* Push read me updates

* Update metadata

* Update docs

* Remove crud from merge with main
  • Loading branch information
benjamin-robertson authored Mar 5, 2024
1 parent 1457d9f commit 6333a32
Show file tree
Hide file tree
Showing 27 changed files with 1,240 additions and 319 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/
/spec/fixtures/modules/*
/tmp/
/vendor/
/convert_report.txt
Expand Down
8 changes: 2 additions & 6 deletions .pdkignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/
/spec/fixtures/modules/*
/tmp/
/vendor/
/convert_report.txt
Expand All @@ -26,20 +26,16 @@
.envrc
/inventory.yaml
/spec/fixtures/litmus_inventory.yaml
/appveyor.yml
/.editorconfig
/.fixtures.yml
/Gemfile
/.gitattributes
/.gitignore
/.gitlab-ci.yml
/.pdkignore
/.puppet-lint.rc
/Rakefile
/rakelib/
/.rspec
/.rubocop.yml
/.travis.yml
/..yml
/.yardopts
/spec/
/.vscode/
Expand Down
223 changes: 216 additions & 7 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require:
- rubocop-rspec
AllCops:
DisplayCopNames: true
TargetRubyVersion: '2.4'
TargetRubyVersion: '2.6'
Include:
- "**/*.rb"
Exclude:
Expand All @@ -18,9 +18,10 @@ AllCops:
- "**/Puppetfile"
- "**/Vagrantfile"
- "**/Guardfile"
- spec/functions/*
Layout/LineLength:
Description: People have wide screens, use them.
Max: 200
Max: 20000
RSpec/BeforeAfterAll:
Description: Beware of using after(:all) as it may cause state to leak between tests.
A necessary evil in acceptance testing.
Expand Down Expand Up @@ -111,8 +112,14 @@ Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/StringMethods:
Enabled: true
Bundler/GemFilename:
Enabled: false
Bundler/InsecureProtocolSource:
Enabled: false
Capybara/CurrentPathExpectation:
Enabled: false
Capybara/VisibilityMatcher:
Enabled: false
Gemspec/DuplicatedAssignment:
Enabled: false
Gemspec/OrderedDependencies:
Expand Down Expand Up @@ -187,6 +194,8 @@ Lint/MixedRegexpCaptureTypes:
Enabled: false
Lint/NestedPercentLiteral:
Enabled: false
Lint/Next:
Enabled: false
Lint/NonDeterministicRequireOrder:
Enabled: false
Lint/OrderedMagicComments:
Expand All @@ -213,6 +222,8 @@ Lint/SafeNavigationConsistency:
Enabled: false
Lint/SafeNavigationWithEmpty:
Enabled: false
Lint/SafeNavigation:
Enabled: false
Lint/SelfAssignment:
Enabled: false
Lint/SendWithMixinArgument:
Expand Down Expand Up @@ -287,11 +298,9 @@ Performance/UriDefaultParser:
Enabled: false
RSpec/Be:
Enabled: false
RSpec/Capybara/CurrentPathExpectation:
Enabled: false
RSpec/Capybara/FeatureMethods:
Enabled: false
RSpec/Capybara/VisibilityMatcher:
RSpec/ContainExactly:
Enabled: false
RSpec/ContextMethod:
Enabled: false
Expand Down Expand Up @@ -331,6 +340,8 @@ RSpec/LeakyConstantDeclaration:
Enabled: false
RSpec/LetBeforeExamples:
Enabled: false
RSpec/MatchArray:
Enabled: false
RSpec/MissingExampleGroupArgument:
Enabled: false
RSpec/MultipleExpectations:
Expand Down Expand Up @@ -373,8 +384,6 @@ Style/AccessModifierDeclarations:
Enabled: false
Style/AccessorGrouping:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/BisectedAttrAccessor:
Enabled: false
Style/CaseLikeIf:
Expand Down Expand Up @@ -485,35 +494,235 @@ Style/TrailingMethodEndStatement:
Enabled: false
Style/UnpackFirst:
Enabled: false
Capybara/MatchStyle:
Enabled: false
Capybara/NegationMatcher:
Enabled: false
Capybara/SpecificActions:
Enabled: false
Capybara/SpecificFinders:
Enabled: false
Capybara/SpecificMatcher:
Enabled: false
Gemspec/DeprecatedAttributeAssignment:
Enabled: false
Gemspec/DevelopmentDependencies:
Enabled: false
Gemspec/RequireMFA:
Enabled: false
Layout/LineContinuationLeadingSpace:
Enabled: false
Layout/LineContinuationSpacing:
Enabled: false
Layout/LineEndStringConcatenationIndentation:
Enabled: false
Layout/SpaceBeforeBrackets:
Enabled: false
Lint/AmbiguousAssignment:
Enabled: false
Lint/AmbiguousOperatorPrecedence:
Enabled: false
Lint/AmbiguousRange:
Enabled: false
Lint/ConstantOverwrittenInRescue:
Enabled: false
Lint/DeprecatedConstants:
Enabled: false
Lint/DuplicateBranch:
Enabled: false
Lint/DuplicateMagicComment:
Enabled: false
Lint/DuplicateRegexpCharacterClassElement:
Enabled: false
Lint/EmptyBlock:
Enabled: false
Lint/EmptyClass:
Enabled: false
Lint/EmptyInPattern:
Enabled: false
Lint/IncompatibleIoSelectWithFiberScheduler:
Enabled: false
Lint/LambdaWithoutLiteralBlock:
Enabled: false
Lint/NoReturnInBeginEndBlocks:
Enabled: false
Lint/NonAtomicFileOperation:
Enabled: false
Lint/NumberedParameterAssignment:
Enabled: false
Lint/OrAssignmentToConstant:
Enabled: false
Lint/RedundantDirGlobSort:
Enabled: false
Lint/RefinementImportMethods:
Enabled: false
Lint/RequireRangeParentheses:
Enabled: false
Lint/RequireRelativeSelfPath:
Enabled: false
Lint/SymbolConversion:
Enabled: false
Lint/ToEnumArguments:
Enabled: false
Lint/TripleQuotes:
Enabled: false
Lint/UnexpectedBlockArity:
Enabled: false
Lint/UnmodifiedReduceAccumulator:
Enabled: false
Lint/UselessRescue:
Enabled: false
Lint/UselessRuby2Keywords:
Enabled: false
Metrics/CollectionLiteralLength:
Enabled: false
Naming/BlockForwarding:
Enabled: false
Performance/CollectionLiteralInLoop:
Enabled: false
Performance/ConcurrentMonotonicTime:
Enabled: false
Performance/MapCompact:
Enabled: false
Performance/RedundantEqualityComparisonBlock:
Enabled: false
Performance/RedundantSplitRegexpArgument:
Enabled: false
Performance/StringIdentifierArgument:
Enabled: false
RSpec/BeEq:
Enabled: false
RSpec/BeNil:
Enabled: false
RSpec/ChangeByZero:
Enabled: false
RSpec/ClassCheck:
Enabled: false
RSpec/DuplicatedMetadata:
Enabled: false
RSpec/ExcessiveDocstringSpacing:
Enabled: false
RSpec/FactoryBot/ConsistentParenthesesStyle:
Enabled: false
RSpec/FactoryBot/FactoryNameStyle:
Enabled: false
RSpec/FactoryBot/SyntaxMethods:
Enabled: false
RSpec/IdenticalEqualityAssertion:
Enabled: false
RSpec/NoExpectationExample:
Enabled: false
RSpec/PendingWithoutReason:
Enabled: false
RSpec/Rails/AvoidSetupHook:
Enabled: false
RSpec/Rails/HaveHttpStatus:
Enabled: false
RSpec/Rails/InferredSpecType:
Enabled: false
RSpec/Rails/MinitestAssertions:
Enabled: false
RSpec/Rails/TravelAround:
Enabled: false
RSpec/RedundantAround:
Enabled: false
RSpec/SkipBlockInsideExample:
Enabled: false
RSpec/SortMetadata:
Enabled: false
RSpec/SubjectDeclaration:
Enabled: false
RSpec/VerifiedDoubleReference:
Enabled: false
Security/CompoundHash:
Enabled: false
Security/IoMethods:
Enabled: false
Style/ArgumentsForwarding:
Enabled: false
Style/ArrayIntersect:
Enabled: false
Style/CollectionCompact:
Enabled: false
Style/ComparableClamp:
Enabled: false
Style/ConcatArrayLiterals:
Enabled: false
Style/DirEmpty:
Enabled: false
Style/DocumentDynamicEvalDefinition:
Enabled: false
Style/EmptyHeredoc:
Enabled: false
Style/EndlessMethod:
Enabled: false
Style/EnvHome:
Enabled: false
Style/FetchEnvVar:
Enabled: false
Style/FileEmpty:
Enabled: false
Style/FileRead:
Enabled: false
Style/FileWrite:
Enabled: false
Style/HashConversion:
Enabled: false
Style/HashExcept:
Enabled: false
Style/IfWithBooleanLiteralBranches:
Enabled: false
Style/InPatternThen:
Enabled: false
Style/MagicCommentFormat:
Enabled: false
Style/MapCompactWithConditionalBlock:
Enabled: false
Style/MapToHash:
Enabled: false
Style/MapToSet:
Enabled: false
Style/MinMaxComparison:
Enabled: false
Style/MultilineInPatternThen:
Enabled: false
Style/NegatedIfElseCondition:
Enabled: false
Style/NestedFileDirname:
Enabled: false
Style/NilLambda:
Enabled: false
Style/NumberedParameters:
Enabled: false
Style/NumberedParametersLimit:
Enabled: false
Style/ObjectThen:
Enabled: false
Style/OpenStructUse:
Enabled: false
Style/OperatorMethodCall:
Enabled: false
Style/QuotedSymbols:
Enabled: false
Style/RedundantArgument:
Enabled: false
Style/RedundantConstantBase:
Enabled: false
Style/RedundantDoubleSplatHashBraces:
Enabled: false
Style/RedundantEach:
Enabled: false
Style/RedundantHeredocDelimiterQuotes:
Enabled: false
Style/RedundantInitialize:
Enabled: false
Style/RedundantSelfAssignmentBranch:
Enabled: false
Style/RedundantStringEscape:
Enabled: false
Style/SelectByRegexp:
Enabled: false
Style/StringChars:
Enabled: false
Style/SwapValues:
Enabled: false
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ All notable changes to this project will be documented in this file.

**Features**

- First release to forge.

**Bugfixes**

**Known Issues**
Loading

0 comments on commit 6333a32

Please sign in to comment.