Skip to content

Logging for prover role#928

Merged
esune merged 19 commits intoopenwallet-foundation:mainfrom
Gavinok:logging-for-prover-role
Jan 22, 2026
Merged

Logging for prover role#928
esune merged 19 commits intoopenwallet-foundation:mainfrom
Gavinok:logging-for-prover-role

Conversation

@Gavinok
Copy link
Contributor

@Gavinok Gavinok commented Dec 2, 2025

This PR resolves #898

This code should be merged after #917 as it relies on it to add the testing code to assist in testing and assigning the credential to the vc-auth acapy agent. This implementation uses the bootstrap script to also test this credential. This can be done with the following command.

TEST_PROVER_ROLE=true LEDGER_URL=http://test.bcovrin.vonx.io TAILS_SERVER_URL=https://tails-test.vonx.io ENDORSER_ENV=testing ACAPY_ENDPOINT=http://host.docker.internal:8050 LOG_WITH_JSON=FALSE NGROK_AUTHTOKEN="2RIeK5O6H1xKZptHQ5zp75aujwx_36bwAyDBdZm8zyZq3LqNq" USE_REDIS_ADAPTER="true" ./manage bootstrap

Gavinok and others added 10 commits November 25, 2025 12:32
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
@Gavinok Gavinok requested review from esune and loneil December 2, 2025 19:39
@coveralls
Copy link

coveralls commented Dec 2, 2025

Pull Request Test Coverage Report for Build 21252760243

Details

  • 17 of 17 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.08%) to 88.818%

Totals Coverage Status
Change from base Build 21252741719: 0.08%
Covered Lines: 2089
Relevant Lines: 2352

💛 - Coveralls

Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
@Gavinok Gavinok force-pushed the logging-for-prover-role branch from c8dd7e6 to bd00880 Compare December 2, 2025 20:08
@esune
Copy link
Member

esune commented Dec 3, 2025

Will re-review after #917 is merged so we can see the diff related to this change only. It would be good to add documentation - likely a separate file under the docs folder - with details/instructions about this functionality and the testing feature.

Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
Gavinok and others added 6 commits January 8, 2026 10:16
Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
- Updated Docker Compose configuration to use a new image for the issuer agent.
- Refactored logging and methods in `bootstrap-trusted-verifier.py` to implement a mutual authentication pattern between the issuer and VC-AuthN.
- Added comprehensive logging for each phase of the mutual authentication process.
- Enhanced error handling and cleanup verification for presentation records.
- Removed deprecated test logic related to prover role, focusing on the new mutual authentication approach.

Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
- Update `post_topic` to delete presentation records for terminal states: "done", "abandoned", and "declined".
- Implement error handling for deletion failures, logging appropriate messages for both failure cases and exceptions.
- Add unit tests to verify deletion behavior for different states and ensure graceful handling of delete errors.

Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
- Handle CONTROLLER_API_KEY being empty an empty string in the env file
- Changed issuer-aca-py Docker image to `ghcr.io/openwallet-foundation/acapy-agent:py3.12-1.4.0`.
- Removed the `ACAPY_AUTO_RESPOND_PRESENTATION_REQUEST` environment variable from the Docker configuration. Not needed for the issuer
- Improved the `configureEnvironment` function in the manage script to use better condition checks for environment variables.
- Added a new function `get_verifier_pres_ex_id` to retrieve the presentation exchange ID for the prover role in bootstrap script
- Updated the prover role test to check if the VC-AuthN presentation cleanup is successful and log appropriate messages.
- Enhanced error handling in cleanup verification process.

Signed-off-by: Gavin Jaeger-Freeborn <gavinfreeborn@gmail.com>
@Gavinok Gavinok requested a review from esune January 15, 2026 18:13
@esune esune merged commit 76a17fb into openwallet-foundation:main Jan 22, 2026
5 checks passed
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.

Add logging for prover-role presentation webhooks

3 participants