Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Support explicit whitelist of exposed APIs #29

Description

@lidel

Originated from ipfs/ipfs-companion#478

Summary

There are contexts in which we don't want to expose sensitive APIs such as name.publish or config.

TODO

  • For now we can throw an error in pre hook provided to createProxyServer , but ideally only whitelisted APIs should be exposed via window.ipfs.
  • (optional, nice to have) We should add a method window.ipfs.availableApis which just exposes a list of available function names.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions