Discourse isn’t a document management system, it doesn’t protect uploaded files either.
Some sites do use Discourse to manage knowledge, transferring documentation into posts, rather than simply attaching files. There are obviously added benefits here, particularly around search.
It might be easier if you told us about the problem you’re trying to solve, rather than the way you’re thinking of solving it. Someone will be able to tell you if Discourse fits your use-case and if they’ve seen similar things done elsewhere. That approach will let you tap into the shared knowledge which makes Discourse (and this community) so great.