How to set up "Connecting without an API key" when automating Seq setup? #2451
-
(I have searched "password change is required" and found two discussion threads, #1593 and #2326, related but not answering my case.) I've deployed Seq to AKS cluster using the Helm chart version 2025.1.1 (latest release): values:
extraEnvs:
- name: SEQ_FIRSTRUN_ADMINPASSWORD # TODO: Switch to firstRunAdminPassword as soon as chart 2025.2 is released
value: My@Password123
image:
pullPolicy: IfNotPresent
repository: datalust/seq
tag: "2025"
nodeSelector:
kubernetes.io/os: linux
persistence:
enabled: true
size: 16Gi # Double the default,/minimum https://github.com/datalust/helm.datalust.co/blob/21016831b9934b028a61ea3128f154e939b8c549/charts/seq/values.yaml#L174
storageClass: managed-csi Without heading to the Seq UI, I immediately started the procedure for Connecting without an API key in order, as it promises, to:
with aim to use So, I copied the PowerShell script and re-worked it into Bash script #!/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 This is what I get when I run the script: I'm confused, because this answer #1593 (comment) says
which, given date of that answer, I take as However, the answer says also this:
which confuses me even more. When that "before Seq has ever started up" is meant to happen during the sequence of deployment to Kubernetes? Getting back to the main issue, could anyone help me understand what am I doing wrong for Connecting without an API key or how to do script the following, without going via Seq UI?
That is, as said in datalust/seqcli#188 (comment), to:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @mloskot! If you use plain-text If you use the more secure It sounds like this might have caused some subsequent confusion - does this clarify it? |
Beta Was this translation helpful? Give feedback.
Hi @mloskot!
If you use plain-text
SEQ_FIRSTRUN_ADMINPASSWORD
, a password change is required. You won't be able to use the password immediately withapikey create
in this case.If you use the more secure
SEQ_FIRSTRUN_ADMINPASSWORDHASH
option instead, no password change is necessary, andapikey create
with username and password should just work.It sounds like this might have caused some subsequent confusion - does this clarify it?