Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Version 3.15.0

Compare
Choose a tag to compare
@fmrsabino fmrsabino released this 11 Jan 11:29
3cf89d4

What's Changed

  • Some Safe Apps might set access restrictions (eg.: for the host that is accessing those same apps). Each Safe App now includes a collection of restrictions (if any exist) for a specific Safe App, allowing the clients the possibility of handling apps that are restricted in a different way #774
  • Current available types of restrictions:
    • NO_RESTRICTIONS – no restrictions set for this Safe App
    • DOMAIN_ALLOWLIST – only domains set in the returned collection are allowed to access the Safe App
  • Clients can use the query parameter ?client_url=<domain> to retrieve apps that are set to have no restrictions and restricted to that domain
GET /api/v1/chains/<chain_id>/safe-apps
{
  "accessControl": {
    "type": "NO_RESTRICTIONS" // No restrictions for this safe app
  },
}
GET /api/v1/chains/<chain_id>/safe-apps
{
  "accessControl": {
    "type": "DOMAIN_ALLOWLIST",
    "value": [
      "http://domain.com" // This domain is the only one allowed to access this Safe App. Accessing from any other is not guaranteed to work
    ]
  }
}

Full Changelog: v3.14.0...v3.15.0