energywebfoundation / ocn-node

Apache License 2.0
5 stars 4 forks source link

Define a "time to live" on proxied resources #14

Open ewf-devops opened 4 years ago

ewf-devops commented 4 years ago

Original report by Adam Staveley (Bitbucket: [Adam Staveley](https://bitbucket.org/Adam Staveley), GitHub: adamstaveley).


Resources (URLs) are stored and proxied when they require authorization on a counterparty server that the recipient does not have. For example, the response_url in commands RECEIVER requests, or paginated Link response headers.

Currently, the OCN Node stores these proxied resources until used. We could, however, defined a TTL on these resources, such that are deleted unless they are “redeemed” by a certain period (e.g. 24 hours).