-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support site authorization status in Mentix (#1398)
- Loading branch information
1 parent
47119be
commit 3ebc86f
Showing
27 changed files
with
441 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Enhancement: Support site authorization status in Mentix | ||
|
||
This enhancement adds support for a site authorization status to Mentix. This way, sites registered via a web app can now be excluded until authorized manually by an administrator. | ||
|
||
Furthermore, Mentix now sets the scheme for Prometheus targets. This allows us to also support monitoring of sites that do not support the default HTTPS scheme. | ||
|
||
https://github.com/cs3org/reva/pull/1398 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
docs/content/en/docs/config/http/services/mentix/adminapi/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: "adminapi" | ||
linkTitle: "adminapi" | ||
weight: 10 | ||
description: > | ||
Configuration for the AdminAPI of the Mentix service | ||
--- | ||
|
||
{{% pageinfo %}} | ||
The AdminAPI of Mentix is a special importer that can be used to administer certain aspects of Mentix. | ||
{{% /pageinfo %}} | ||
|
||
The AdminAPI importer receives instructions/queries through a `POST` request. | ||
|
||
The importer supports one action that must be passed in the URL: | ||
``` | ||
https://sciencemesh.example.com/mentix/admin/?action=<value> | ||
``` | ||
Currently, the following actions are supported: | ||
- `authorize`: Authorizes or unauthorizes a site | ||
|
||
For all actions, the site data must be sent as JSON data. If the call succeeded, status 200 is returned. | ||
|
||
{{% dir name="endpoint" type="string" default="/admin" %}} | ||
The endpoint where the mesh data can be sent to. | ||
{{< highlight toml >}} | ||
[http.services.mentix.importers.adminapi] | ||
endpoint = "/data" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="is_protected" type="bool" default="false" %}} | ||
Whether the endpoint requires authentication. | ||
{{< highlight toml >}} | ||
[http.services.mentix.importers.adminapi] | ||
is_protected = true | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="enabled_connectors" type="[]string" default="" %}} | ||
A list of all enabled connectors for the importer. Must always be provided. | ||
{{< highlight toml >}} | ||
[http.services.mentix.importers.adminapi] | ||
enabled_connectors = ["localfile"] | ||
{{< /highlight >}} | ||
{{% /dir %}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.