Skip to content

Basic Auth

By default, a Funnel server allows open access to its API endpoints, but it can be configured to require basic password authentication. To enable this, include users and passwords in your config file:

Server:
  BasicAuth:
    - User: admin
      Password: someReallyComplexSecret
      Admin: true
    - User: funnel
      Password: abc123

  TaskAccess: OwnerOrAdmin

The TaskAccess property configures the visibility and access-mode for tasks:

  • All (default) - all tasks are visible to everyone
  • Owner - tasks are visible to the users who created them
  • OwnerOrAdmin - extends Owner by allowing Admin-users (Admin: true) access everything

As new tasks are created, the username behind the request is recorded as the owner of the task. Depending on the TaskAccess property, if owner-based acces-mode is enabled, the owner of the task is compared to username of current request to decide if the user may see and interact with the task.

If you are using BoltDB or Badger, the Funnel worker communicates to the server via gRPC so you will also need to configure the RPC client.

RPCClient:
  Credential:
    User: funnel
    Password: abc123

Beginning with Funnel v0.11.8, User and Password must be nested under RPCClient.Credential. Configurations created for earlier releases need to be updated to use this structure.

Make sure to properly protect the configuration file so that it's not readable by everyone:

$ chmod 600 funnel.config.yml

To use the password, set the FUNNEL_SERVER_USER and FUNNEL_SERVER_PASSWORD environment variables:

$ export FUNNEL_SERVER_USER=funnel
$ export FUNNEL_SERVER_PASSWORD=abc123
$ funnel task list

API audit logs

The server writes structured AUDIT entries at Info level for unary gRPC API requests, including calls through the HTTP gateway and authentication failures. Entries record the method, user ID, result code, and task ID when available. Public or unauthenticated requests use ANONYMOUS; internal calls without a user context use SYSTEM. Request bodies, bearer tokens, and raw error or panic values are excluded. The configured logger controls output and log level; these entries use the same logging destination as other server messages.