Comments (6)
I was just trying to get it working, and using Service Account Tokens worked for me.
This is what I used:
./bin/grafana-kiosk -URL=https://myinstance.grafana.net/playlists/play/a979f316-4d58-4689-a510-2e6ef824a416 -login-method=apikey -apikey=<service_account_token> -kiosk-mode=full -playlists -autofit=true
In your config file, could you try removing the username
field under target
, and passing the Service Account's token in the apikey
field.
Also:
- I'm using Grafana Cloud
- Using a Service Account with the "Viewer" permission
- Created a Service Account Token (this value gets passed instead of the API key)
- You can test if your credentials work with
curl -H "Authorization: Bearer <service_account_token>" -X GET '<grafana_url>/api/access-control/user/permissions'
If that doesn't work, post the error message, the issue you notice.. someone else could have a solution.
from grafana-kiosk.
I tried executing your command on our server, but unfortunately, I got the following error.
root@01624:/opt/grafana-kiosk# /usr/local/bin/grafana-kiosk --URL=https://grafana.domain.com/playlists/play/1 --login-method=apikey --apikey=xxxxxxx --kiosk-mode=full --playlists -autofit=false
GrafanaKiosk Version: v1.0.6
2023/06/09 14:24:38 No config specified, using environment and args
2023/06/09 14:24:38 AutoFit: false
2023/06/09 14:24:38 LXDEEnabled: false
2023/06/09 14:24:38 LXDEHome: /home/pi
2023/06/09 14:24:38 Mode: full
2023/06/09 14:24:38 WindowPosition: 0,0
2023/06/09 14:24:38 WindowSize:
2023/06/09 14:24:38 URL: https://grafana.domain.com/playlists/play/1
2023/06/09 14:24:38 LoginMethod: apikey
2023/06/09 14:24:38 Username: guest
2023/06/09 14:24:38 Password: *redacted*
2023/06/09 14:24:38 IgnoreCertificateErrors: false
2023/06/09 14:24:38 IsPlayList: true
2023/06/09 14:24:38 UseMFA: false
2023/06/09 14:24:38 Fieldname AutoLogin: false
2023/06/09 14:24:38 Fieldname Username: username
2023/06/09 14:24:38 Fieldname Password: password
2023/06/09 14:24:38 DISPLAY not set, autosetting to :0.0
2023/06/09 14:24:38 DISPLAY= :0.0
2023/06/09 14:24:38 XAUTHORITY not set, autosetting
2023/06/09 14:24:38 XAUTHORITY= /root/.Xauthority
2023/06/09 14:24:38 method apikey
2023/06/09 14:24:38 Launching apikey kiosk
2023/06/09 14:24:38 Using temp dir: /tmp/chromedp-kiosk1346209397
panic: chrome failed to start:
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
BlueALSA detected - Disabling audio sandbox
No protocol specified
[0609/142440.029695:ERROR:elf_dynamic_array_reader.h(61)] tag not found
goroutine 1 [running]:
github.com/grafana/grafana-kiosk/pkg/kiosk.GrafanaKioskApikey(0x2532400, 0x242ed40)
/home/runner/work/grafana-kiosk/grafana-kiosk/pkg/kiosk/apikey_login.go:36 +0x7b8
main.main()
/home/runner/work/grafana-kiosk/grafana-kiosk/pkg/cmd/grafana-kiosk/main.go:232 +0xa74
OR via my config file:
general:
kiosk-mode: full
autofit: false
lxde: false
lxde-home: /home/pi
target:
login-method: apikey
apikey: "xxx"
playlists: true
URL: https://grafana.domain.com/playlists/play/1
ignore-certificate-errors: false
I still get the same error when the kiosk opens: Invalid basic auth header
from grafana-kiosk.
I get the same thing: Invalid Basic Auth Header
Configured very similar to nickjmv above, except I'm hitting AWS Managed Grafana. I've tried with API keys and Service Account tokens. Same result.
from grafana-kiosk.
Not that I have a solution, but tried searching for the above error (elf_dynamic_array_reader.h(61)] tag not found), and the only other places I found it were #50 and some issues in other projects dealing with Chromium.
What OS, browser, etc. are you'll using?
from grafana-kiosk.
@jetxr I'm using:
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
And for the browser:
Chromium 116.0.5845.102 Built on Raspbian, running on Raspbian 11
from grafana-kiosk.
Actually...the API key field is in its own YAML key:
grafana-kiosk/pkg/kiosk/config.go
Lines 34 to 36 in 8c5d489
So do this:
general:
kiosk-mode: full
autofit: true
target:
login-method: apikey
playlist: false
URL: https://grafana.foo.com
ignore-certificate-errors: false
apikey:
apikey: glsa_foobarbaz
from grafana-kiosk.
Related Issues (20)
- Support for Azure AD OAuth2 or local bypass HOT 1
- Windows - Open 2 kiosk browsers HOT 2
- Chrome or LXDE required? HOT 3
- Kiosk not start Version / oid command not found HOT 1
- Kiosk does not start after Grafana Update v10.1.2 HOT 7
- Grafana shared links, hidden left side, title navigation, especially how to display query criteria HOT 2
- 7 to 10 % CPU HOT 1
- windows, multiple displays HOT 2
- Raspi OS bookworm not working HOT 13
- Linux cli in bash, password with special keys for viewer account fails HOT 1
- Login through AWS looses login from federated idp on exit HOT 1
- Failure during network unavailability on windows HOT 1
- "Unsaved changes" popup at each playlist step since Grafana 9 update HOT 1
- Local Login Fail HOT 7
- ERROR: could not unmarshal event: unknown PrivateNetworkRequestPolicy value HOT 4
- grafana 9 playList id vs uid, unable to find playlist. HOT 3
- gcom login not working on grafana cloud v9.1.6
- grafana 9 sidebar shows when in kiosk=full mode HOT 3
- Stuck on "waiting for login dialog" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana-kiosk.