Access Control Configuration

      +
      Pre-3.0 Legacy Configuration Equivalents

      This content describes configuration for Sync Gateway 3.0 and higher — for legacy configuration, see: Legacy Pre-3.0 Configuration

      Introduction

      The sync function is crucial to the security of your application. It is in charge of data validation, access control and routing. The function executes every time a new revision/update is made to a document.

      For more on the Sync Function and access control see: Sync Function Overview

      Set Database Sync Function

      To set or update the sync function for a database, see {keyspace}/_config/sync.