Skip to content

Commit

Permalink
Merge branch 'main' into jc-add-healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
jchartrand authored Aug 16, 2024
2 parents 0ba6eca + feed0ae commit e4db582
Show file tree
Hide file tree
Showing 24 changed files with 786 additions and 310 deletions.
17 changes: 7 additions & 10 deletions .coordinator.env
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# default port is 4005
# PORT=4005
# PORT=4005

# ONLY for development when we need https; default is false
# ENABLE_HTTPS_FOR_DEV=false
# ENABLE_HTTPS_FOR_DEV=false

# default is false
# ENABLE_ACCESS_LOGGING=true
# default is false
# ENABLE_STATUS_SERVICE=true
# default is false
ENABLE_STATUS_SERVICE=true

# set the service endpoints
# defaults are as follows,
# and point at the service names
# within the docker compose network
# STATUS_SERVICE_ENDPOINT=STATUS:4008
# SIGNING_SERVICE_ENDPOINT=SIGNER:4006
# defaults are as follows
# SIGNING_SERVICE=SIGNER:4006
# STATUS_SERVICE=STATUS:4008

# Tokens for protecting tenant endpoints.
# Add a token for any tenant name,
Expand All @@ -33,4 +31,3 @@ TENANT_TOKEN_RANDOM_TESTING=UNPROTECTED
# (for tenant name econ101):
# http://myhost.org/instance/econ101/credentials/issue
# http://myhost.org/instance/econ101/credentials/status

9 changes: 4 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PORT=4005 #default port is 4005
ENABLE_HTTPS_FOR_DEV=false # ONLY for development when need https; default is false
ENABLE_ACCESS_LOGGING=true
ENABLE_HTTPS_FOR_DEV=false # ONLY for development when need https; default is false
ENABLE_ACCESS_LOGGING=true
ENABLE_STATUS_SERVICE=false

STATUS_SERVICE_ENDPOINT=localhost:4008
SIGNING_SERVICE_ENDPOINT=localhost:4006
SIGNING_SERVICE=localhost:4006
STATUS_SERVICE=localhost:4008

# Tokens for protecting tenant endpoints.
# Add a token for any tenant name,
Expand All @@ -18,4 +18,3 @@ TENANT_TOKEN_TESTING=ohno
# The tenant name is specified in the issuing/status invocations like so:
# http://myhost.org/instance/econ101/credentials/issue
# http://myhost.org/instance/econ101/credentials/status

6 changes: 3 additions & 3 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
"env": {
"node": true,
"mocha": true
env: {
node: true,
mocha: true
},
extends: [
'standard'
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ typings/
.env.test
.signing-service.env
.coordinator.env
.status-service.env
.status-service-db.env
.status-service-git.env

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down
6 changes: 3 additions & 3 deletions .signing-service.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#default port is 4006
#PORT=4006
#PORT=4006
# ONLY for dev when need https; default is false
#ENABLE_HTTPS_FOR_DEV=false

# DID seeds for generating signing keys.
# One seed per 'tenant'.
# Add DID SEEDS with the pattern TENANT_SEED_[tenant name]
Expand All @@ -15,4 +15,4 @@
# will be destroyed on restart
TENANT_SEED_UN_PROTECTED_TEST=z1AoLPRWHSKasPH1unbY1A6ZFF2Pdzzp7D2CkpK6YYYdKTN
TENANT_SEED_PROTECTED_TEST=z1AhT5czCXgNw8fjgz8y3s8AHjBYcpRKH8i9YYbjdCwVRak
TENANT_SEED_RANDOM_TESTING=generate
TENANT_SEED_RANDOM_TESTING=generate
18 changes: 18 additions & 0 deletions .status-service-db.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
PORT=4008 # default port is 4008
ENABLE_HTTPS_FOR_DEV=false # ONLY for dev when need https; default is false

# Database specific environment variables
CRED_STATUS_SERVICE=mongodb
CRED_STATUS_DID_SEED=z1AackbUm8U69ohKnihoRRFkXcXJd4Ra1PkAboQ2ZRy1ngB
STATUS_CRED_SITE_ORIGIN=https://credentials.example.edu
CRED_STATUS_DB_URL=mongodb+srv://user:[email protected]?retryWrites=false
CRED_STATUS_DB_HOST=domain.mongodb.net # ignored if CRED_STATUS_DB_URL is configured
CRED_STATUS_DB_PORT=27017 # ignored if CRED_STATUS_DB_URL is configured
CRED_STATUS_DB_USER=testuser # ignored if CRED_STATUS_DB_URL is configured
CRED_STATUS_DB_PASS=testpass # ignored if CRED_STATUS_DB_URL is configured
CRED_STATUS_DB_NAME= # autogenerated if omitted
STATUS_CRED_TABLE_NAME= # autogenerated if omitted
USER_CRED_TABLE_NAME= # autogenerated if omitted
CONFIG_TABLE_NAME= # autogenerated if omitted
EVENT_TABLE_NAME= # autogenerated if omitted
CRED_EVENT_TABLE_NAME= # autogenerated if omitted
12 changes: 12 additions & 0 deletions .status-service-git.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
PORT=4008 # default port is 4008
ENABLE_HTTPS_FOR_DEV=false # ONLY for dev when need https; default is false

# Git specific environment variables
CRED_STATUS_SERVICE=github
CRED_STATUS_DID_SEED=z1AackbUm8U69ohKnihoRRFkXcXJd4Ra1PkAboQ2ZRy1ngB
CRED_STATUS_REPO_OWNER=digitalcredentials
CRED_STATUS_REPO_NAME=credential-status-test-jc
CRED_STATUS_REPO_ID=12345678 # only required when CRED_STATUS_SERVICE = 'gitlab'
CRED_STATUS_META_REPO_NAME=credential-status-metadata-test-jc
CRED_STATUS_META_REPO_ID=87654321 # only required when CRED_STATUS_SERVICE = 'gitlab'
CRED_STATUS_ACCESS_TOKEN=REPLACE_THIS_WITH_A_GITHUB_ACCESS_TOKEN
14 changes: 0 additions & 14 deletions .status-service.env

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# issuer-coordinator Changelog

## 0.3.0 - TBD

### Changed
- Convert Status List 2021 to Bitstring Status List.
- Differentiate between database status service and Git status service.
- Rename environment variables.
- Update revocation and suspension instructions.

## 0.2.0 - 2024-04-22

### Changed
- add did-web-generator and did-key-generator endpoints
- update README
Expand Down
Loading

0 comments on commit e4db582

Please sign in to comment.