Skip to content

feat: add ConfigSecret type and use it for aggregator blockfrost configuration#2919

Merged
Alenar merged 5 commits into
mainfrom
djo/2878/add-config-secret
Jan 13, 2026
Merged

feat: add ConfigSecret type and use it for aggregator blockfrost configuration#2919
Alenar merged 5 commits into
mainfrom
djo/2878/add-config-secret

Conversation

@Alenar

@Alenar Alenar commented Jan 13, 2026

Copy link
Copy Markdown
Collaborator

Content

This PR add a newConfigSecret type and use it for aggregator blockfrost configuration.

The ConfigSecret redact the wrapped value in print, logs, and serialization, but is only designed to fit the configuration de-serialization case.
As such it should be no used in other context, or if this is needed its security should be strengthened.

Note

This PR also remove the ability to serialize the aggregator and signer configuration structs since we only need to read them, not write, this has no impact as this capacity was not used.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Crates versions are updated (if relevant)
    • CHANGELOG file is updated (if relevant)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • All check jobs of the CI have succeeded
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested
  • Documentation
    • No new TODOs introduced

Issue(s)

Relates to #2878

To allow safe usage of secrets in configuration values. Before we needed
to introduce indirection to store them in another source (e.g. in a env
var which only the name was given to the config).
…ypes

As they are only meant to be read, not write.
…ct_id`

Instead of an indirection using an environement variable.
@Alenar
Alenar requested a review from jpraynaud January 13, 2026 11:23
@Alenar Alenar self-assigned this Jan 13, 2026
@github-actions

github-actions Bot commented Jan 13, 2026

Copy link
Copy Markdown

Test Results

    4 files  ± 0    169 suites  ±0   21m 43s ⏱️ +24s
2 311 tests + 5  2 311 ✅ + 5  0 💤 ±0  0 ❌ ±0 
7 273 runs  +20  7 273 ✅ +20  0 💤 ±0  0 ❌ ±0 

Results for commit cf60569. ± Comparison against base commit de25786.

♻️ This comment has been updated with latest results.

@jpraynaud jpraynaud left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 👍

@Alenar
Alenar temporarily deployed to testing-preview January 13, 2026 11:33 — with GitHub Actions Inactive
* mithril-aggregator from `0.8.7` to `0.8.8`
* mithril-common from `0.6.40` to `0.6.41`
* mithril-signer from `0.3.2` to `0.3.3`
@Alenar
Alenar temporarily deployed to testing-preview January 13, 2026 11:55 — with GitHub Actions Inactive
@Alenar
Alenar merged commit 922d69b into main Jan 13, 2026
55 checks passed
@Alenar
Alenar deleted the djo/2878/add-config-secret branch January 13, 2026 11:57
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