Documented API key permissions to create other API keys for ingestion gives 403 Forbidden #2452
-
(This is continuation of #2451 about automated/non-interactive API key-based Seq setup in Kubernetes cluster.) As explained in that other thread, I'm after Connecting without an API key, so I create API key for administrative purposes with the list of permissions from the documentation, with tiny #!/bin/bash
SEQ_SERVER_URL=https://seq.example.com
SEQ_ADMIN_USER="admin"
SEQ_ADMIN_PASS="My@Password123"
echo $SEQ_ADMIN_PASS |
seqcli apikey create \
-t CLI \
--permissions="read,write,project,organization,system" \
--connect-username $SEQ_ADMIN_USER --connect-password-stdin \
--server $SEQ_SERVER_URL Next, I attempt to create API keys for my apps, to configure the logs ingestion from the apps, using a trivial #!/bin/bash
SEQ_ADMIN_APIKEY=HtLqXzJAkXBnUhuiicJm # created with seq-create-apikey-admin.sh
SEQ_SERVER_URL=https://seq.example.com
seqcli apikey list \
--apikey="${SEQ_ADMIN_APIKEY}" \
--server="${SEQ_SERVER_URL}"
seqcli apikey create \
--apikey="${SEQ_ADMIN_APIKEY}" \
--server="${SEQ_SERVER_URL}" \
--title="frontend-123" \
--permissions=Ingest \
--property="env=dev" \
--property="app=frontend-123" \ and here is what I'm getting: What am I doing wrong and why I'm receiving Shouldn't the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @mloskot An API key cannot create an API key with a permission that it does not have, so you need to give the first API key the 'Ingest' permission. |
Beta Was this translation helpful? Give feedback.
Hi @mloskot
An API key cannot create an API key with a permission that it does not have, so you need to give the first API key the 'Ingest' permission.