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

Accessing meta notes #4

Open
cantino opened this issue Sep 26, 2019 · 2 comments
Open

Accessing meta notes #4

cantino opened this issue Sep 26, 2019 · 2 comments

Comments

@cantino
Copy link
Contributor

cantino commented Sep 26, 2019

Hey @samhld, I'm trying to test fine grained authorization and cannot figure out how to access the meta nodes.

I enabled authentication and added an admin user. However, when I run the following, I get curl: (6) Could not resolve host: meta2:

curl -s -L -XPOST "http://localhost:18091/influxdb/v2/acl/grants" \
  -u "admin:admin" \
  -H "Content-Type: application/json" \
  --data-binary '{
    "database": {"match": "exact", "value": "telegraf"},
    "measurement": {"match": "exact", "value": "cpu"},
    "permissions": ["read"],
    "users": [
      {"name": "restricted"}
    ]
  }'
@samhld
Copy link
Owner

samhld commented Sep 26, 2019

@cantino hmm. You can definitely exec into the container and hit the api. I think my own limited Docker knowledge is the underlying issue here, however. I have mapped port 18091 to 8091 in the container which, to me, would mean that you should have access via 18091 from the host. I'll have to research that further.

@cantino
Copy link
Contributor Author

cantino commented Sep 26, 2019

Maybe it's trying to redirect to meta2, which wouldn't route from outside the container. I'll try exec-ing in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants