This repository contains the issue tracking and artifacts of the rd-SRAM-integration project. All intellectual property in this project, including source code, ideas, and documentation, is attributed to SURF.
The FederatedGroup application is the integration driver app that enables the ownCloud to connect to the SRAM and find out about federated group membership info using SCIM Controller. Also, this application enables the user to share a file with a federated group across the network of multiple ownCloud nodes.
Einstein on oc1.docker
can share a file with the federalists
group and the resulting shared file will be accessible by all users stored in oc1.docker, oc2.docker, oc3.docker,... and are registered as members of the federalists
group on SRAM.
Notes:
1- At the first step you should install and enable the OpenCloudMesh App on your OwnCloud instance to enable the remote sharing. please check this repository to find more details:
2- You can find more detail about the ownCloud administration here;
Copy federatedgroups
folder into the apps folder of your ownCloud.
Change sharing.managerFactory config entry to OCA\FederatedGroups\ShareProviderFactory inside config.php file.
'sharing.managerFactory' => 'OCA\\FederatedGroups\\ShareProviderFactory',
'sharing.remoteShareesSearch' => 'OCA\\OpenCloudMesh\\ShareeSearchPlugin',
'sharing.ocmController' => 'OCA\\OpenCloudMesh\\Controller\\OcmController',
'sharing.groupExternalManager' => 'OCA\\OpenCloudMesh\\GroupExternalManager',
Compatibility with ScienceMesh
If you have ScienceMesh installed, please use below config entries instead.
'sharing.managerFactory' => 'OCA\\FederatedGroups\\SmFgOcmShareProviderFactory',
'sharing.remoteShareesSearch' => 'OCA\\FederatedGroups\\Plugins\\SmFgOcmSearchPlugin',
'sharing.ocmController' => 'OCA\\OpenCloudMesh\\Controller\\OcmController',
'sharing.groupExternalManager' => 'OCA\\OpenCloudMesh\\GroupExternalManager',
there are two configurations that should be done in the oc_appconfig table:
+-----------------+-------------+--------------------------------------------------+
| appid | configkey | configvalue |
+-----------------+-------------+--------------------------------------------------+
| federatedgroups | allowed_ips | some comma seperated valid ips or (*) |
| federatedgroups | scim_token | some top secret random generated secrets |
+-----------------+-------------+--------------------------------------------------+
this configuration will be done with the first SCIM Api call but you can set them by these SQL commands:
insert into oc_appconfig (appid, configkey, configvalue) VALUES ('federatedgroups', 'scim_token', 'something-super-secret');
insert into oc_appconfig (appid, configkey, configvalue) VALUES ('federatedgroups', 'allowed_ips', '<* | desiered white listed ips (seperated by comma)>');
AND HERE WE GO!!!!! 🚀
you can test this application using this repository: https://github.com/pondersource/dev-stock
You should install Docker on your system as a requirement OR just using the Github Codespaces
Step 3 will throw an error but we think it can be safely ignored, see #235.
1- Clone the pondersource dev-stock repository.
2- Run ./init/rd-sram.sh
.
3- Run ./tests/rd-sram.sh
.
4- Run docker exec -it owncloud2.docker sh /curls/includeMarie.sh owncloud2.docker
5- Run docker exec -it owncloud1.docker sh /curls/includeMarie.sh owncloud1.docker
6- Optionally, tell the OC containers to trust access through VSCode exposed ports:
docker exec -it owncloud1.docker sed -i "14 i\ 3 => \$_SERVER['HTTP_HOST']," /var/www/html/config/config.php
docker exec -it owncloud2.docker sed -i "14 i\ 3 => \$_SERVER['HTTP_HOST']," /var/www/html/config/config.php
Compatibility with ScienceMesh
If you want to test RD-SRAM along with ScienceMesh, replace these steps instead of previous ones.
2- Run ./init/sm-sram-ocm.sh
.
3- Run ./tests/sm-sram-ocm.sh
.
After Running these commands you can browse localhost:5800 and see a headless browser. inside the headless browser, you can enter these two addresses: https://owncloud1.docker and https://owncloud2.docker.
login into these instances of ownCloud with these credentials:
owncloud1.docker:
username: einstein
password: relativity
owncloud2.docker:
username: marie
password: radioactivity
and finally, you can share a file with the TestGroup (uniharderwijk_surfdrive_test) (SRAM CO)
Group for example on owncloud1.docker.
then you can browse the owncloud2.docker and see the incoming share dialog.
If you can prefer you can use Reza's bootstrap script that executes steps 1-6.