Skip to content

Decouple Cred Generation from file system depnedencies and side effects#458

Open
jmbarzee wants to merge 2 commits intohyperledger:mainfrom
jmbarzee:jmbarzee/cred-gen-lib
Open

Decouple Cred Generation from file system depnedencies and side effects#458
jmbarzee wants to merge 2 commits intohyperledger:mainfrom
jmbarzee:jmbarzee/cred-gen-lib

Conversation

@jmbarzee
Copy link

Type of change

  • Improvement (improvement to code, performance, etc)

Description

Just enables the client packages to be used as libraries without the file system side effects. This is critical for workflow systems that leverage ephemeral workflows to manipulate or rotate credentials.

Additional details

Changes are fully backwards compatible, and are covered entirely by existing tests.

Related issues

N/A

Release Note

lib/client now supports certificate generation without file system side effects.

Checklist (Pending Items):

  • Signed-off-by added to commits (required for DCO check to pass)

@jmbarzee jmbarzee requested a review from a team as a code owner July 15, 2025 18:20
move credential loading into client

split remaining file operations

expose key generation functions to be used without side effects

Signed-off-by: Jacob Barzee <jmbarzee@gmail.com>
@jmbarzee jmbarzee force-pushed the jmbarzee/cred-gen-lib branch from a3177a3 to 847b79d Compare July 15, 2025 18:29
Copy link
Member

@bestbeforetoday bestbeforetoday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution. Your changes look good to me, and the code structure is nice and clean.

My primary concern is that this module is not really intended to be consumed as a library. It is the implementation of the Fabric CA (binary) application and accompanying CLI commands. This change makes it more usable as a library, and I am not sure this is something we should be supporting. What do you think @denyeart?

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.

2 participants