Skip to content

Conversation

bstasyszyn
Copy link
Contributor

The allowed origins are currently specified as a startup parameter and cannot be changed without restarting the Orb instance. This commit stores allowed origins in the database and supplies an API to update/retrieve the anchor origins.

closes #1377

Signed-off-by: Bob Stasyszyn Bob.Stasyszyn@securekey.com

The allowed origins are currently specified as a startup parameter and cannot be changed without restarting the Orb instance. This commit stores allowed origins in the database and supplies an API to update/retrieve the anchor origins.

closes trustbloc#1377

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
@cla-bot cla-bot bot added the cla-signed label Jun 23, 2022
@codecov
Copy link

codecov bot commented Jun 23, 2022

Codecov Report

Merging #1380 (38c3d3b) into main (752c7d5) will decrease coverage by 0.02%.
The diff coverage is 90.84%.

@@            Coverage Diff             @@
##             main    #1380      +/-   ##
==========================================
- Coverage   87.89%   87.87%   -0.03%     
==========================================
  Files         200      201       +1     
  Lines       18729    18846     +117     
==========================================
+ Hits        16462    16561      +99     
- Misses       1454     1466      +12     
- Partials      813      819       +6     
Impacted Files Coverage Δ
cmd/orb-server/startcmd/start.go 67.82% <47.61%> (-0.10%) ⬇️
...erationparser/validators/anchororigin/validator.go 90.47% <92.59%> (-0.83%) ⬇️
cmd/orb-server/startcmd/params.go 82.07% <100.00%> (+0.12%) ⬆️
...owedorigins/allowedoriginsmgr/allowedoriginsmgr.go 100.00% <100.00%> (ø)
...orbclient/resolutionverifier/resolutionverifier.go 92.15% <100.00%> (-0.11%) ⬇️
...tocolversion/versions/test/v_test/client/client.go 100.00% <100.00%> (+6.66%) ⬆️
...colversion/versions/test/v_test/factory/factory.go 100.00% <100.00%> (ø)
pkg/protocolversion/versions/v1_0/client/client.go 100.00% <100.00%> (+6.66%) ⬆️
...g/protocolversion/versions/v1_0/factory/factory.go 100.00% <100.00%> (ø)
pkg/pubsub/amqp/publisherpool.go 100.00% <100.00%> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 752c7d5...38c3d3b. Read the comment docs.

@bstasyszyn bstasyszyn merged commit 8ce5dd4 into trustbloc:main Jun 23, 2022
@bstasyszyn bstasyszyn deleted the 1377 branch June 23, 2022 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store allowed anchor origins in database
2 participants