Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove database artifacts #7

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
fa4bca6
adds support for mongodb credential status manager
kezike Jan 31, 2024
d4e12a2
adds service based environment variable files; updates readme instruc…
kezike Jan 31, 2024
82fad7d
fixes status credential site origin spec; adds instructions for traff…
kezike Jan 31, 2024
6c2a15e
minor copy simplification
kezike Jan 31, 2024
b83c205
uses github branch dependency for db status manager
kezike Jan 31, 2024
95227b7
minor copy fix
kezike Feb 7, 2024
f023a2a
uses error logging and error handling middleware to detect errors wit…
kezike Feb 9, 2024
5c58314
adds next to status credential controller to navigate to middleware
kezike Feb 9, 2024
39e527d
configures database and table names for db status manager; enables st…
kezike Mar 1, 2024
6f07fcc
removes database artifacts; ignores lock files; applies minor copy re…
kezike Mar 1, 2024
ffe3f41
retitles readme
kezike Mar 1, 2024
3c72dd4
applies copy refinements; applies lint refinements
kezike Mar 1, 2024
44661f2
adds ENABLE_ACCESS_LOGGING environment variable; renames LOG_ALL_FILE…
kezike Mar 2, 2024
e846573
converts Status List 2021 to Bitstring Status List; fixes tests; adds…
kezike Apr 23, 2024
7a46507
use node 20 in github action
kezike Apr 23, 2024
6d6d5e4
updates format of "credentialStatus" credential field to include susp…
kezike Apr 24, 2024
d7ecdf9
additional cleanup
kezike Apr 24, 2024
e01f702
adds sample curl request for status update
kezike Apr 24, 2024
1cd50d1
adds env var for meta repo; modifies getBooleanValue implementation
kezike May 1, 2024
df8caaa
replaces CRED_STATUS_OWNER with CRED_STATUS_REPO_OWNER
kezike May 1, 2024
f02e6fb
adds docker-compose file
kezike May 23, 2024
5b58e0f
removed docker-compose.yaml, as it should not be necessary with Docke…
kezike May 23, 2024
9ca0aa7
renames CRED_STATUS_REPO_OWNER env var to CRED_STATUS_OWNER_ACCOUNT_NAME
kezike Jun 11, 2024
1899cb5
allocates only revocation status by default
kezike Jun 12, 2024
6b07937
Merge branch 'main' into remove-database-artifacts
alexfigtree Oct 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# see the README for an explanation of all env values

PORT=4008 # default port is 4008

# replace the following with your own values
# General environment variables
CRED_STATUS_SERVICE=github
CRED_STATUS_REPO_OWNER=digitalcredentials
CRED_STATUS_REPO_NAME=credential-status-test-jc
CRED_STATUS_META_REPO_NAME=credential-status-metadata-test-jc
CRED_STATUS_ACCESS_TOKEN=REPLACE_THIS_WITH_A_GITHUB_ACCESS_TOKEN
CRED_STATUS_DID_SEED=z1AackbUm8U69ohKnihoRRFkXcXJd4Ra1PkAboQ2ZRy1ngB

LOG_ALL_FILE=logs/all.log
PORT=4008 # default port is 4008
ENABLE_ACCESS_LOGGING=true
ENABLE_HTTPS_FOR_DEV=false
ERROR_LOG_FILE=logs/error.log
ALL_LOG_FILE=logs/all.log
CONSOLE_LOG_LEVEL=silly # default is silly, i.e. log everything - see the README for allowed levels
LOG_LEVEL=silly # default is silly
LOG_LEVEL=silly # default is silly

# Git specific environment variables
CRED_STATUS_OWNER_ACCOUNT_NAME=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_REPO_ACCESS_TOKEN=REPLACE_THIS_WITH_A_GITHUB_ACCESS_TOKEN
CRED_STATUS_META_REPO_ACCESS_TOKEN=REPLACE_THIS_WITH_A_GITHUB_ACCESS_TOKEN
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: Run test with Node.js ${{ matrix.node-version }}
run: npm run test
env:
CI: true
CI: true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Library lock files
package-lock.json
yarn.lock

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ WORKDIR /app
COPY . .
RUN npm install
CMD ["node", "server.js"]
EXPOSE 4008
EXPOSE 4008
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Digital Credentials Consortium
Copyright (c) 2023-2024 Digital Credentials Consortium

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
215 changes: 121 additions & 94 deletions README.md

Large diffs are not rendered by default.

Loading
Loading