Safe Mode
The Goose CLI client supports “safe mode”. In safe mode, the CLI is prevented from accessing external files other than the database file that it was initially connected to and prevented from interacting with the host file system.
This has the following effects:
- The following dot commands are disabled:
.cd.excel.import.log.once.open.output.read.sh.system
- Auto-complete no longer scans the file system for files to suggest as auto-complete targets.
- The
getenvfunction is disabled. - The
enable_external_accessoption is set tofalse. This implies that:ATTACHcannot attach to a database in a file.COPYcannot read to or write from files.- Functions such as
read_csv,read_parquet,read_json, etc. cannot read from an external source.
Once safe mode is activated, it cannot be deactivated in the same Goose CLI session.
For more information on running Goose in secure environments, see the “Securing Goose” page.