There are 4 ways to create a new policy with _spartan:
_spartan init
in the project root directory and step through the interview questions (See the Questions page for the list of questions)
_spartan init L
to get the long-form interview questions_spartan init y
or _spartan init Y
in the project root directory to build a new policy with default values_spartan -D
or _spartan --default
in the project root directory to build a new policy with default values_spartan --no-overwrite
in the project root directory to build a new policy without overwriting an existing policyNo matter which process you use, you SHOULD end up with a policy file called security.json (or, if you’ve used the ‘no-overwrite option, a policy file called ‘security-XXXXXXXXX.json, where ‘X…X’ is the last eight digits of the new policy)
Once complete, you should see a screen that looks something like this:
Let’s break down the key components: