summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-08 16:28:27 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-08 16:28:27 -0800
commit16f2e78298dbd2231f5f337ea17c89a6a131a052 (patch)
tree6e72581e625e73c97cbab72d0f9c35665c99e5d7 /README.md
parenteb40a5f274f3608db34309cfd16739a7642ef5e7 (diff)
parentffb721f90c5d97ee80885209bf45feb85ca9625c (diff)
downloadfatcat-16f2e78298dbd2231f5f337ea17c89a6a131a052.tar.gz
fatcat-16f2e78298dbd2231f5f337ea17c89a6a131a052.zip
Merge branch 'bnewbold-crude-auth'
Fixed a conflict in: python/fatcat_export.py
Diffstat (limited to 'README.md')
-rw-r--r--README.md46
1 files changed, 14 insertions, 32 deletions
diff --git a/README.md b/README.md
index 1433e62b..4c75dffc 100644
--- a/README.md
+++ b/README.md
@@ -13,25 +13,30 @@ published written works (mostly journal articles), with a focus on tracking
the location and status of full-text copies to ensure "perpetual access".
The [RFC](./fatcat-rfc.md) is the original design document, and the best place
-to start for background. There is a work-in-progress "guide" at
+to start for technical background. There is a work-in-progress "guide" at
<https://guide.fatcat.wiki>; the canonical public location of this repository
is <https://github.com/internetarchive/fatcat>.
+The public production web interface is <https://fatcat.wiki>.
+
+See the `LICENSE` file for detailed permissions and licensing of both python
+and rust code. In short, the auto-generated client libraries are permissively
+released, while the API server and web interface are strong copyleft (AGPLv3).
+
+## Building and Tests
+
There are three main components:
- backend API server and database (in Rust)
- API client libraries and bots (in Python)
- front-end web interface (in Python; built on API and library)
-See the LICENSE file for details permissions and licensing of both python and
-rust code. In short, the auto-generated client libraries are permissively
-released, while the API server and web interface are strong copyleft (AGPLv3).
-
-## Building and Tests
-
Automated integration tests run on Gitlab CI (see `.gitlab-ci.yml`) on the
Internet Archive's internal (not public) infrastructure.
+See `./python/README.md` and `./rust/README.md` for details on building,
+running, and testing these components.
+
## Status
- SQL and HTTP API schemas
@@ -44,8 +49,8 @@ Internet Archive's internal (not public) infrastructure.
- HTTP API Server
- [x] base32 encoding of UUID identifiers
- [x] inverse many-to-many helpers (files-by-release, release-by-creator)
- - [ ] Authentication (eg, accounts, OAuth2, JWT)
- - [ ] Authorization (aka, roles)
+ - [x] Authentication (eg, accounts, OAuth2, JWT)
+ - [x] Authorization (aka, roles)
- Web Interface
- [x] Migrate Python codebase
- [ ] Creation and editing of all entities
@@ -57,26 +62,3 @@ Internet Archive's internal (not public) infrastructure.
- [ ] Sentry (error reporting)
- [ ] Metrics
-## Identifiers
-
-Fatcat entity identifiers are 128-bit UUIDs encoded in base32 format. Revision
-ids are also UUIDs, and encoded in normal UUID fashion, to disambiguate from
-edity identifiers.
-
-Python helpers for conversion:
-
- import base64
- import uuid
-
- def fcid2uuid(s):
- s = s.split('_')[-1].upper().encode('utf-8')
- assert len(s) == 26
- raw = base64.b32decode(s + b"======")
- return str(uuid.UUID(bytes=raw)).lower()
-
- def uuid2fcid(s):
- raw = uuid.UUID(s).bytes
- return base64.b32encode(raw)[:26].lower().decode('utf-8')
-
- test_uuid = '00000000-0000-0000-3333-000000000001'
- assert test_uuid == fcid2uuid(uuid2fcid(test_uuid))