# Third party caveat

**URL:** <https://forum.storj.io/t/third-party-caveat/14815>\
**Category:** DCS feature requests - voting\
**Created:** [August 4, 2021, 7:16am UTC](https://forum.storj.io/t/third-party-caveat/14815 "2021-08-04T07:16:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddy](https://storj.bcdn.literatehosting.com/letter_avatar/ddy/32/6_449c533f586939b6e5f246632a46421f.png) [@ddy](https://forum.storj.io/u/ddy)\
**Post date:** [August 4, 2021, 7:16am UTC](https://forum.storj.io/t/third-party-caveat/14815/1 "2021-08-04T07:16:01Z")

</div>

Hello,

I’m trying to build an app that gives access to a file stored on storj based on the fulfillment of a condition in a smart contract on ethereum. (I.e if this happens, then you can have access to this file).

I figured out that I could do that with macaroons and third party caveat (if user is authenticated on a this 3rd party DB - my smart contract - then you can read file)

Am I correct to think this ? If yes, is this functionnality available on storj ?

Thank you

---

<div class="post-metadata">

**Author:** ![bre](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/bre/32/69_2.png) [@bre](https://forum.storj.io/u/bre)\
**Post date:** [August 5, 2021, 2:53am UTC](https://forum.storj.io/t/third-party-caveat/14815/2 "2021-08-05T02:53:37Z")

</div>

Welcome to the forum @ddy !  
I’ll pass this question to the team and get you some answers.

---

<div class="post-metadata">

**Author:** ![kaloyan](https://storj.bcdn.literatehosting.com/letter_avatar/kaloyan/32/6_449c533f586939b6e5f246632a46421f.png) [@kaloyan](https://forum.storj.io/u/kaloyan)\
**Post date:** [August 5, 2021, 9:55am UTC](https://forum.storj.io/t/third-party-caveat/14815/3 "2021-08-05T09:55:42Z")

</div>

@ddy This is an excellent idea! I remember our CTO @jtolio mentioned something similar a while ago. We don’t have any specific plans to implement this yet, but this should be possible to implement from an architectural point of view.

Since there is interest in this, I’d suggest starting to discuss the potential design of such a solution. Usually, here at Storj, we start with a design doc called “Blueprint”. You can read more details about blueprints here: [storj/docs/blueprints at main · storj/storj · GitHub](https://github.com/storj/storj/tree/main/docs/blueprints#readme). There you can see existing blueprints as examples too.

@ddy Would you be willing to open a PR with an initial draft of a blueprint doc for Ethereum contract macaroon caveats? It does not need to be perfect. Just put your thoughts, so we have some base for discussion.

---

<div class="post-metadata">

**Author:** ![ddy](https://storj.bcdn.literatehosting.com/letter_avatar/ddy/32/6_449c533f586939b6e5f246632a46421f.png) [@ddy](https://forum.storj.io/u/ddy)\
**Post date:** [August 5, 2021, 8:17pm UTC](https://forum.storj.io/t/third-party-caveat/14815/4 "2021-08-05T20:17:44Z")

</div>

Will do ! Thanks for the answer ! I’m not a pro so it will be very high level ; but I’ll try to do something good.

---

<div class="post-metadata">

**Author:** ![TtheBC01](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/tthebc01/32/8390_2.png) [@TtheBC01](https://forum.storj.io/u/TtheBC01)\
**Post date:** [August 6, 2021, 5:44am UTC](https://forum.storj.io/t/third-party-caveat/14815/5 "2021-08-06T05:44:40Z")

</div>

this is a pretty cool idea, i hope it will work out
