-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site Accounts service for API keys (#1506)
- Loading branch information
1 parent
b942da4
commit 8d4cf01
Showing
57 changed files
with
2,759 additions
and
619 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,5 @@ | ||
Bugfix: Cloning of internal mesh data lost some values | ||
|
||
This update fixes a bug in Mentix that caused some (non-critical) values to be lost during data cloning that happens internally. | ||
|
||
https://github.com/cs3org/reva/pull/1457 |
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: Site Accounts service for API keys | ||
|
||
This update adds a new service to Reva that handles site accounts creation and management. Registered sites can be assigned an API key through a simple web interface which is also part of this service. This API key can then be used to identify a user and his/her associated (vendor or partner) site. | ||
|
||
Furthermore, Mentix was extended to make use of this new service. This way, all sites now have a stable and unique site ID that not only avoids ID collisions but also introduces a new layer of security (i.e., sites can only be modified or removed using the correct API key). | ||
|
||
https://github.com/cs3org/reva/pull/1506 |
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: 0 additions & 46 deletions
46
docs/content/en/docs/config/http/services/mentix/adminapi/_index.md
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
docs/content/en/docs/config/http/services/mentix/sitereg/_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,37 @@ | ||
--- | ||
title: "sitereg" | ||
linkTitle: "sitereg" | ||
weight: 10 | ||
description: > | ||
Configuration for site registration service | ||
--- | ||
|
||
{{% pageinfo %}} | ||
The site registration service is used to register new and unregister existing sites. | ||
{{% /pageinfo %}} | ||
|
||
The site registration service is used to register new and unregister existing sites. | ||
|
||
{{% dir name="endpoint" type="string" default="/sitereg" %}} | ||
The endpoint of the service. | ||
{{< highlight toml >}} | ||
[http.services.mentix.importers.sitereg] | ||
endpoint = "/reg" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="enabled_connectors" type="[]string" default="" %}} | ||
A list of all enabled connectors for the importer. | ||
{{< highlight toml >}} | ||
[http.services.mentix.importers.sitereg] | ||
enabled_connectors = ["localfile"] | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="ignore_sm_sites" type="bool" default="false" %}} | ||
If set to true, registrations from ScienceMesh sites will be ignored. | ||
{{< highlight toml >}} | ||
[http.services.mentix.importers.sitereg] | ||
ignore_sm_sites = true | ||
{{< /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
95 changes: 95 additions & 0 deletions
95
docs/content/en/docs/config/http/services/siteacc/_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,95 @@ | ||
--- | ||
title: "siteacc" | ||
linkTitle: "siteacc" | ||
weight: 10 | ||
description: > | ||
Configuration for the Site Accounts service | ||
--- | ||
|
||
{{% pageinfo %}} | ||
The site accounts service is used to store and manage site accounts. | ||
{{% /pageinfo %}} | ||
|
||
## General settings | ||
{{% dir name="prefix" type="string" default="accounts" %}} | ||
The relative root path of all exposed HTTP endpoints of the service. | ||
{{< highlight toml >}} | ||
[http.services.siteacc] | ||
prefix = "/siteacc" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="notifications_mail" type="string" default="" %}} | ||
An email address where all notifications are sent to. | ||
{{< highlight toml >}} | ||
[http.services.siteacc] | ||
notifications_mail = "[email protected]" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
## SMTP settings | ||
{{% dir name="sender_mail" type="string" default="" %}} | ||
An email address from which all emails are sent. | ||
{{< highlight toml >}} | ||
[http.services.siteacc.smtp] | ||
sender_mail = "[email protected]" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="sender_login" type="string" default="" %}} | ||
The login name. | ||
{{< highlight toml >}} | ||
[http.services.siteacc.smtp] | ||
sender_login = "hans" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="sender_password" type="string" default="" %}} | ||
The password for the login. | ||
{{< highlight toml >}} | ||
[http.services.siteacc.smtp] | ||
password = "secret" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="smtp_server" type="string" default="" %}} | ||
The SMTP server to use. | ||
{{< highlight toml >}} | ||
[http.services.siteacc.smtp] | ||
smtp_server = "smtp.example.com" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="smtp_port" type="int" default="25" %}} | ||
The SMTP server port to use. | ||
{{< highlight toml >}} | ||
[http.services.siteacc.smtp] | ||
smtp_port = 25 | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="disable_auth" type="bool" default="false" %}} | ||
Whether to disable authentication. | ||
{{< highlight toml >}} | ||
[http.services.siteacc.smtp] | ||
disable_auth = true | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
## Storage settings | ||
{{% dir name="driver" type="string" default="file" %}} | ||
The storage driver to use; currently, only `file` is supported. | ||
{{< highlight toml >}} | ||
[http.services.siteacc.storage] | ||
driver = "file" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
### Storage settings - File driver | ||
{{% dir name="file" type="string" default="" %}} | ||
The file location. | ||
{{< highlight toml >}} | ||
[http.services.siteacc.storage.file] | ||
file = "/var/reva/accounts.json" | ||
{{< /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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[http] | ||
address = "0.0.0.0:9600" | ||
|
||
[http.services.siteacc] | ||
# All notification emails are sent to this email | ||
notifications_mail = "[email protected]" | ||
|
||
# Set up the storage driver | ||
[http.services.siteacc.storage] | ||
driver = "file" | ||
[http.services.siteacc.storage.file] | ||
file = "/var/revad/accounts.json" | ||
|
||
# The SMTP server used for sending emails | ||
[http.services.siteacc.smtp] | ||
sender_mail = "[email protected]" | ||
smtp_server = "mail.example.com" | ||
smtp_port = 25 | ||
disable_auth = true |
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.