darkmsph1t / _spartan

npm project to package & configure common security middleware && add security.js file to code repo
5 stars 0 forks source link

Logic Error => Access Management Object does not get rewritten #50

Closed darkmsph1t closed 6 years ago

darkmsph1t commented 6 years ago

Describe the bug Access Management Object does not get rewritten when the app.exposure = external, app.access = false & app.type = web || api

To Reproduce Steps to reproduce the behavior:

  1. Run _spartan init
  2. Choose Internet facing for exposure
  3. Choose Web or API for app type
  4. Choose Access Management outside of application option
  5. Complete the rest of the questionnaire
  6. Open security.json

Expected behavior

if app.exposure = external, app.access = false & app.type = web || api =>
console.log("Access Control Policy cannot be disabled for this exposure and application type")
sbAccess(obj, tmp)
=> write original access control settings into security.json
darkmsph1t commented 6 years ago

48 is the same thing