fleet/website/config/policies.js
Eric ace1fa0d37
Website: Add Vanta integration (#9072)
* stubing out required pages

* Add Vanta authorization action, create externalAuthorization(name will most likely change) Model

* rebuild cloud sdk

* Draft script

* update importer, update connect-vanta page

* layout updates

* update action

* change model name

* update model name

* update script

* Update vanta callback page

* add new model to lint config

* update model attributes

* update vanta connection page to require url protocol, fix lint error in routes

* rename page, vanta-callback » vanta-authorization

* Update errors, handle incomplete connections

* Update model attribute names

* Remove console.log(), add error message for non-Fleet Premium users

* update importer, fix lint error

* update send-data-to-vanta script

* Update create-vanta-authorization-request.js

* update page name

* update comments and error messages

* layout changes

* update status codes used in exits

* Add comment

* Update .eslintrc

* Update create-vanta-authorization-request.js

* Update view-vanta-authorization.js

* Update VantaConnection.js

* Update send-data-to-vanta.js

* Update create-vanta-authorization-request.js

* Update mobile styles

* update text

* update error text, show sucess message if account has already been authorized

* lint fix

Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
2022-12-21 23:39:39 -06:00

52 lines
1.4 KiB
JavaScript
Vendored

/**
* Policy Mappings
* (sails.config.policies)
*
* Policies are simple functions which run **before** your actions.
*
* For more information on configuring policies, check out:
* https://sailsjs.com/docs/concepts/policies
*/
module.exports.policies = {
'*': 'is-logged-in',
'admin/*': 'is-super-admin',
// Bypass the `is-logged-in` policy for:
'entrance/*': true,
'webhooks/*': true,
'account/logout': true,
'view-homepage-or-redirect': true,
'view-faq': true,
'view-contact': true,
'view-get-started': true,
'view-pricing': true,
'legal/view-terms': true,
'legal/view-privacy': true,
'deliver-contact-form-message': true,
'view-query-detail': true,
'view-query-library': true,
'docs/*': true,
'handbook/*': true,
'download-sitemap': true,
'view-transparency': true,
'view-press-kit': true,
'view-platform': true,
'view-landing': true,
'deliver-demo-signup': true,
'articles/*': true,
'reports/*': true,
'view-sales-one-pager': true,
'try-fleet/view-register': true,
'try-fleet/view-sandbox-login': true,
'try-fleet/view-sandbox-teleporter-or-redirect-because-expired': true,
'create-or-update-one-newsletter-subscription': true,
'unsubscribe-from-all-newsletters': true,
'view-osquery-table-details': true,
'view-connect-vanta': true,
'view-vanta-authorization': true,
'create-vanta-authorization-request': true,
};