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

API.Authorizations configuration not effective or how to take effect #10333

Closed
3 tasks done
DDDJing opened this issue Feb 6, 2024 · 1 comment
Closed
3 tasks done
Labels
kind/feature A new feature

Comments

@DDDJing
Copy link

DDDJing commented Feb 6, 2024

Checklist

  • My issue is specific & actionable.
  • I am not suggesting a protocol enhancement.
  • I have searched on the issue tracker for my issue.

Description

Installation method

docker

Version

Kubo version: 0.17.0-dev-e50135a
Repo version: 12
System version: amd64/linux
Golang version: go1.19.1

I would like to ask how to control access permissions to the 5001 API. I would like all requests to verify that Authorization is configured correctly in config, rather than requiring a specific user. What I want is that all 5001 API requests require authentication access to solve the problem of accessing my private files by configuring API addresses on the webui interface

{

API:{

Authorizations:{

Alice:{

"AuthSecret": "basic: alice: password123",

"AllowedPaths": ["/app/v0/id", "/app/v0/files"]

},

Bob:{

"AuthSecret": "bearer: secret token123",

"AllowedPaths": ["/app/v0"]

}

}

}

}

Please help.

Tasks

No tasks being tracked yet.
@DDDJing DDDJing added the kind/feature A new feature label Feb 6, 2024
@aschmahmann
Copy link
Contributor

@DDDJing you seem to be running a fork of kubo v0.17.0 (released Nov 2022). The API.Authorizations feature was added in v0.25.0 (December 2023).

Going to close for now. Feel free to reopen if you're still experiencing this issue after updating to the latest kubo

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

No branches or pull requests

2 participants