Follow the instructions at https://github.com/fcrepo4-labs/fcrepo4-vagrant for setting up the Fedora 4 Vagrant Virtual Machine. These are essentially:
Clone the fcrepo4-vagrant Git repository
git clone https://github.com/fcrepo4-labs/fcrepo4-vagrant.git |
install_files/config
file and change the FEDORA_AUDIT
value to true
.install_files/config
file and change the FEDORA_AUDIT_LOCATION
value to desired location
.install_files/config
file and change the FEDORA_AUTH
value to true
.Start the Vagrant VM:
vagrant up |
Follow the instructions at https://github.com/fcrepo4-labs/fcrepo-webapp-plus for building an audit capable fedora webapp. These are essentially:
Clone the fcrepo-webapp-plus Git repository
git clone git@github.com:fcrepo4-labs/fcrepo-webapp-plus.git |
Build the webapp using the audit profile with/without authentication features.
# Only audit capability # Audit capability with Role based Authentication. # Audit capability with XACML based Authentication. |
Perform some auditable operations using the Fedora 4 HTML UI at http://localhost:8080/fcrepo/rest or using the REST API on the command-line:
curl -u fedoraAdmin:secret3 -X POST -H "Slug: object1" http: //127 .0.0.1:8080 /fcrepo/rest curl -u fedoraAdmin:secret3 -X POST -H "Slug: file1" --data-binary "test content" http: //127 .0.0.1:8080 /fcrepo/rest/object1 curl -u fedoraAdmin:secret3 -X PATCH -H "Content-type: application/sparql-update" --data-binary "insert data { <> <http://purl.org/dc/elements/1.1/title> \"new title\" . }" http: //127 .0.0.1:8080 /fcrepo/rest/object1 curl -u fedoraAdmin:secret3 -X DELETE http: //127 .0.0.1:8080 /fcrepo/rest/object1/file1 curl -u fedoraAdmin:secret3 -X DELETE http: //127 .0.0.1:8080 /fcrepo/rest/object1 |