Skip to content

Commit

Permalink
Merge pull request #14 from zazuko/permissions
Browse files Browse the repository at this point in the history
Be more restrictive with default permissions
  • Loading branch information
ludovicm67 authored Oct 16, 2023
2 parents 6d769d1 + bd23ac8 commit 5b8f86e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .changeset/perfect-dodos-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"fuseki-geosparql": major
---

Require to be authenticated for endpoints with write access.

Starting this version, all routes that are ending with:

- `/data`
- `/upload`
- `/update`

are also protected and require authentication.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ All other routes that have are prefixed with `/$/` needs basic authentication:
- username: `admin`
- password: value of the `ADMIN_PASSWORD` environment variable

Some routes that are known to be used for write permissions are also protected; there are the ones ending with:

- `/data`
- `/upload`
- `/update`

All other routes are publicly available.

If you want to change this behavior, you will need to change the `config/shiro.ini` file.
Expand Down
3 changes: 3 additions & 0 deletions config/shiro.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ admin = ${ADMIN_PASSWORD}

## and the rest are restricted to admin user
/$/** = authcBasic,user[admin]
/**/data = authcBasic,user[admin]
/**/upload = authcBasic,user[admin]
/**/update = authcBasic,user[admin]

# Everything else
/**=anon

0 comments on commit 5b8f86e

Please sign in to comment.