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

snaptool as a docker service -- auth-token.json permissions concern #32

Open
vrragosta opened this issue Sep 27, 2023 · 0 comments
Open

Comments

@vrragosta
Copy link
Collaborator

vrragosta commented Sep 27, 2023

When snaptool is ran using docker, as outlined on docs.weka.io, at the following link, there seem to be some oddities regarding the placement of the auth-token.json file. Can these be confirmed?

https://docs.weka.io/monitor-the-weka-cluster/snapshot-management#option-2-install-the-snaptool-package-in-docker

In snaptool.yml, the cluster configuration is as follows:
cluster:
auth_token_file: auth-token.json
hosts: 172.31.11.135,172.31.1.65,172.31.14.21,172.31.1.132,172.31.11.215,172.31.10.18
force_https: True # only 3.10+ clusters support https
verify_cert: False # default cert cannot be verified

It appears that the auth-token.json file can only be read if the following conditions are met:

  • The auth-token.json file is placed at /root/.weka/auth-token.json
  • The permissions on the /root/.weka/auth-token.json path must be "world" readable

Please confirm the above is accurate.

If so, why is there no mechanism for specifying auth-token.json, at an arbitrary location on the filesystem, or incorporating it into the snaptool docker environment itself?

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

1 participant