Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions en/security/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,19 @@ $ vespa query \
curl -H "Authorization: Bearer $TOKEN" $ENDPOINT
```

Vespa CLI will automatically use a token if the `VESPA_CLI_DATA_PLANE_TOKEN` environment variable is set. This can be done by running:

```
$ export VESPA_CLI_DATA_PLANE_TOKEN=$TOKEN
```

Then there is no need to manually specify the token in the header:

```
vespa query \
'yql=select * from music where album contains "head"'
```

#### Using a browser

In Vespa guides, curl is used in examples, like:
Expand Down