Skip to content

feat: optional signing providers - #2295

Open
pawelstepien-da wants to merge 17 commits into
mainfrom
pawel/optional-signing-providers
Open

feat: optional signing providers#2295
pawelstepien-da wants to merge 17 commits into
mainfrom
pawel/optional-signing-providers

Conversation

@pawelstepien-da

Copy link
Copy Markdown
Contributor

No description provided.

@pawelstepien-da pawelstepien-da changed the title task: optional signing providers feat: optional signing providers Aug 18, 2026
Signed-off-by: Pawel Stepien <[email protected]>
…tional-signing-providers

Signed-off-by: Pawel Stepien <[email protected]>
…tional-signing-providers

Signed-off-by: Pawel Stepien <[email protected]>

# Conflicts:
#	wallet-gateway/remote/src/user-api/rpc-gen/index.ts
Signed-off-by: Pawel Stepien <[email protected]>
@pawelstepien-da pawelstepien-da linked an issue Aug 19, 2026 that may be closed by this pull request
@pawelstepien-da pawelstepien-da linked an issue Aug 19, 2026 that may be closed by this pull request
@pawelstepien-da
pawelstepien-da marked this pull request as ready for review August 19, 2026 09:35
@pawelstepien-da
pawelstepien-da requested a review from a team as a code owner August 19, 2026 09:35
}

const hasSigningDb = process.argv.slice(2).includes('signing-db')
// TODO check if I can get rid db and signing-db arguments.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@mjuchli-da Do you think we can remove arguments 'db' and 'signing-db'? If not, then I will just remove TODO comment.

Comment on lines +7 to +15
Each signing provider can be explicitly disabled by setting its corresponding
environment variable to `true`:

- `WALLET_KERNEL_SIGNING_DISABLED`
- `PARTICIPANT_SIGNING_DISABLED`
- `FIREBLOCKS_SIGNING_DISABLED`
- `BLOCKDAEMON_SIGNING_DISABLED`
- `DFNS_SIGNING_DISABLED`
- `SECUROSYS_SIGNING_DISABLED`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why environment variables rather than set from the config file? I think we should aim to use the config whenever possible since it is self-documenting (with JSON schema). The only time we cant put something in the config file is if it has to be a secret (like an API key)

I suggest we add a new root-level config block for providers so users can do something like

{
  providers: {
    wallet_kernel: {
      enable: false
    },
    participant: {
      enable: false
   },
   fireblocks: {
      enable: true,
      api_path: "https://api.fireblocks.io/v1",
   },
   blockdaemon: {
     enable: true,
     capi2: "canton:testnet"
   }
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think I wanted to have everything that controls whether signing driver is registered in one place.
I agree that it's better have non-sensitive signing provider configuration in WG config while keeping sensitive in env vars. I will rewrite it.

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.

Make signing store optional Make all signing drivers optional via environment variables

2 participants