Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot init a new Stack from cli using an "All Access" token #21997

Open
primeroz opened this issue Jan 7, 2021 · 1 comment
Open

Cannot init a new Stack from cli using an "All Access" token #21997

primeroz opened this issue Jan 7, 2021 · 1 comment
Labels
area/auth area/templates influxdb templates and pkger related issues area/2.x OSS 2.0 related issues and PRs

Comments

@primeroz
Copy link

primeroz commented Jan 7, 2021

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. Create a new InfluxDB 2.0.3 instance
  2. Create a token with "All Access" permissions
  3. Configure influx CLI to use the token and set the default org
  4. from the CLI run influx stacks init -n TEST

Expected behavior:
Stack is created and ID is returned

Actual behavior:
Error: Not authorized to create stack.

Interestingly though an "influx apply -f XXXX.json" works and create a new stack

Environment info:

Logs:

  • Token
influx auth list --id 06e370b23dbe4000
ID                      Description             Token                                                                       U
ser Name        User ID                 Permissions
06e370b23dbe4000        All Powerful Token      6n5bIojkPl78eQIjKQo4ki27zDJKJQwSNupuHfSg-50ug7PD3s4m4x5yKeiHZahJcY58QDmxZjUYL
eNMeDyumQ==     admin           06e37007a87e4000        [read:orgs/9a9e5751c4332d9b/authorizations write:orgs/9a9e5751c4332d9
b/authorizations read:orgs/9a9e5751c4332d9b/buckets write:orgs/9a9e5751c4332d9b/buckets read:orgs/9a9e5751c4332d9b/checks wri
te:orgs/9a9e5751c4332d9b/checks read:orgs/9a9e5751c4332d9b/dashboards write:orgs/9a9e5751c4332d9b/dashboards read:orgs/9a9e57
51c4332d9b/dbrp write:orgs/9a9e5751c4332d9b/dbrp read:orgs/9a9e5751c4332d9b/documents write:orgs/9a9e5751c4332d9b/documents r
ead:orgs/9a9e5751c4332d9b/labels write:orgs/9a9e5751c4332d9b/labels read:orgs/9a9e5751c4332d9b/notificationRules write:orgs/9
a9e5751c4332d9b/notificationRules read:orgs/9a9e5751c4332d9b/notificationEndpoints write:orgs/9a9e5751c4332d9b/notificationEn
dpoints read:orgs/9a9e5751c4332d9b read:orgs/9a9e5751c4332d9b/secrets write:orgs/9a9e5751c4332d9b/secrets read:orgs/9a9e5751c
4332d9b/scrapers write:orgs/9a9e5751c4332d9b/scrapers read:orgs/9a9e5751c4332d9b/sources write:orgs/9a9e5751c4332d9b/sources 
read:orgs/9a9e5751c4332d9b/tasks write:orgs/9a9e5751c4332d9b/tasks read:orgs/9a9e5751c4332d9b/telegrafs write:orgs/9a9e5751c4
332d9b/telegrafs read:users/06e37007a87e4000 write:users/06e37007a87e4000 read:orgs/9a9e5751c4332d9b/variables write:orgs/9a9
e5751c4332d9b/variables read:orgs/9a9e5751c4332d9b/views write:orgs/9a9e5751c4332d9b/views]
  • Influx CLI Config
influx config set -a -n LOCAL --org org --token 6n5bIojkPl78eQIjKQo4ki27zDJKJQwSNupuHfSg-50ug7PD3s4m4x5yKeiHZahJcY58QDmxZjUYLeNMeDyumQ==    
  • Error log
ts=2021-01-07T17:20:33.490509Z lvl=error msg="api error encountered" log_id=0RZRso3G000 handler=stacks error="not authorized to create stack"
@danxmoran danxmoran transferred this issue from influxdata/influxdb May 11, 2021
@danxmoran danxmoran transferred this issue from influxdata/influx-cli Jul 30, 2021
@danxmoran
Copy link
Contributor

Transferred back from influx-cli as I believe it's a server-side bug

@danxmoran danxmoran added area/2.x OSS 2.0 related issues and PRs area/auth area/templates influxdb templates and pkger related issues labels Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/auth area/templates influxdb templates and pkger related issues area/2.x OSS 2.0 related issues and PRs
Projects
None yet
Development

No branches or pull requests

2 participants