-
Notifications
You must be signed in to change notification settings - Fork 57
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
docs: clarify different types of API access #535
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, but a couple of tweaks suggested.
docs/explanation/api-and-clients.md
Outdated
* `read`: these are allowed from any authenticated user, regardless of access level. They are usually read operations that use the HTTP `GET` method, such as listing services or viewing notices. | ||
* `admin`: these are only allowed from admin users. They are usually write or modify operations that use the HTTP `POST` method, such as adding a layer or starting a service. | ||
* **Open-access** - Allowed from any user, even unauthenticated users using the HTTP-over-TCP listener. | ||
* `GET /v1/system-info`, which returns the Pebble version and an identifier for the daemon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually an identifier for this specific boot. Could just say "Pebble version and other information", and leave details to Tiexin's API page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed - thanks!
docs/explanation/api-and-clients.md
Outdated
* `admin`: these are only allowed from admin users. They are usually write or modify operations that use the HTTP `POST` method, such as adding a layer or starting a service. | ||
* **Open-access** - Allowed from any user, even unauthenticated users using the HTTP-over-TCP listener. | ||
* `GET /v1/system-info`, which returns the Pebble version and an identifier for the daemon | ||
* `GET /v1/health`, which returns a boolean to indicate the state of Pebble's health checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make the meaning of true clearer:
* `GET /v1/health`, which returns a boolean to indicate the state of Pebble's health checks | |
* `GET /v1/health`, which returns a boolean to indicate whether Pebble's health checks are all healthy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed - thanks!
The purpose of this PR is make it easier to understand details about API security. (I'll create a separate PR to add a general security overview doc)
Summary of changes:
read
oradmin
access leveluntrusted
access levelPreview build: https://canonical-pebble--535.com.readthedocs.build/en/535/