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

Credo integration #36

Conversation

jrhender
Copy link
Contributor

@jrhender jrhender commented Sep 24, 2024

This PR replaces didKit with Credo for core credential operations.

Remaining TODO items:

  • Decide DB strategy. It likely doesn't make sense to have the exchanges DB be in-memory but the Askar DB be a persistent sqlite.
  • Add ADR documenting the rationale for Credo
  • Adjust documentation
    • Key import/export should be updated for base58 -> opened additional issue to fix: Align Key Import/Export to base58 ids #39
    • Adjust database section of the README (perhaps noting default Askar db location of ~/.afj)
  • Test docker image build and execution, in particular database behaviour on container recreation

ShikharBhatt and others added 27 commits September 11, 2024 09:35
Signed-off-by: ShikharBhatt <[email protected]>
Signed-off-by: ShikharBhatt <[email protected]>
- mock credo service
- fix unit test cases
- remove sample.env file
- fix validation schema

Signed-off-by: ShikharBhatt <[email protected]>
Signed-off-by: mesaresachin <[email protected]>
Needed for rush-pnpm patch-commit to work

Signed-off-by: jrhender <[email protected]>
Ideally, a permanent upstream fix can be made in Credo.

Signed-off-by: jrhender <[email protected]>
Signed-off-by: ShikharBhatt <[email protected]>
…tion

- Fixed the test cases

Signed-off-by: mesaresachin <[email protected]>
- remove spruce dependency
-  fix didAuth test case

Signed-off-by: ShikharBhatt <[email protected]>
Signed-off-by: ShikharBhatt <[email protected]>
- fix lint issue for any return type

Signed-off-by: ShikharBhatt <[email protected]>
feat: integrate credo in credentials api
@jrhender jrhender marked this pull request as ready for review September 27, 2024 13:21
jrhender and others added 9 commits September 30, 2024 04:02
This gives more flexible on where the config values are loaded from
https://docs.nestjs.com/techniques/configuration

Signed-off-by: jrhender <[email protected]>
- replace better-sqlite3 with sqlite
- rename in-memory-db.ts to db-config.ts
- TypeOrmSQLiteModule to accept inMemory boolean param; helps in db initialization for app and unit tests

Signed-off-by: ShikharBhatt <[email protected]>
Signed-off-by: ShikharBhatt <[email protected]>
DB Strategy: Use common db for askar and exchanges
Changed from node-alpine to base node.
node-alpine was missing shared library ld-linux-x86-64.so.2.
This lib is required by Askar.

Also removed unneeded package installs.

Signed-off-by: jrhender <[email protected]>
@jrhender
Copy link
Contributor Author

jrhender commented Oct 3, 2024

Closing at #38 is merged instead

@jrhender jrhender closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants