RTradeLtd / Nexus

🦑 Nexus is the IPFS private network node orchestration and registry service for Temporal
https://dev.temporal.cloud/private
Apache License 2.0
14 stars 4 forks source link

TEM-226: subdomain-based proxying #22

Closed bobheadxi closed 5 years ago

bobheadxi commented 5 years ago

:construction_worker: Purpose

allow map proxying based only on host, without /network/feature paths

:rocket: Changes

:warning: Breaking Changes

all network names with . in it will break. I can make the parsing more intelligent, or we can ban . in names. 🤔

todo

bonedaddy commented 5 years ago

I think names with a . in it should be banned. - seems like a reasonable separator to have since it keeps it all on the same subdomain.

bobheadxi commented 5 years ago

Sounds good! That will have to be enforced elsewhere, probably in RTradeLtd/Temporal

codecov[bot] commented 5 years ago

Codecov Report

Merging #22 into master will increase coverage by 0.27%. The diff coverage is 89.89%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
+ Coverage   83.16%   83.43%   +0.27%     
==========================================
  Files          27       26       -1     
  Lines        1223     1291      +68     
==========================================
+ Hits         1017     1077      +60     
- Misses        144      153       +9     
+ Partials       62       61       -1
Impacted Files Coverage Δ
config/config.go 100% <100%> (ø) :arrow_up:
delegator/proxy.go 100% <100%> (ø) :arrow_up:
delegator/engine.go 85.23% <85.94%> (-0.58%) :arrow_down:
delegator/context.go 0% <0%> (-100%) :arrow_down:
network/ports.go 100% <0%> (+6.9%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1a4636e...0fb5baa. Read the comment docs.

bonedaddy commented 5 years ago

There might be an issue with the dependencies in go.sum:

solidity@dark:~/go/src/github.com/RTradeLtd/Nexus$ go mod tidy
verifying github.com/grpc-ecosystem/go-grpc-middleware@v1.0.0: checksum mismatch
        downloaded: h1:BWIsLfhgKhV5g/oF34aRjniBHLTZe5DNekSjbAjIS6c=
        go.sum:     h1:Iju5GlWwrvL6UBg4zJJt3btmonfrMlCDdsejg4CZE7c=
bonedaddy commented 5 years ago

@bobheadxi trying to browse a gateway (https://test.gateway.nexus.temporal.cloud/ipfs/QmdovZZW93WUzdJmDkvE4xkRu4SRGyt3cxdM4wHdN6zN9D)

bobheadxi commented 5 years ago

Ah I know the issue - will fix asap

bobheadxi commented 5 years ago

@postables can you try again with 05035ce ? I've pushed up a change that disables the custom path manipulation that was needed to get the old proxy to work, so now it either uses the subdomain routing or the path-based routing (but not both at the same time)

If this works, I'm thinking of probably deprecating the latter, since this way is much better and more consistent with multiaddr

let me know if it works!

bonedaddy commented 5 years ago

@bobheadxi sorry for the delay, going to try and debug the issues here