Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliases #526

Open
whyrusleeping opened this issue Jan 9, 2015 · 2 comments
Open

Aliases #526

whyrusleeping opened this issue Jan 9, 2015 · 2 comments
Labels
exp/novice Someone with a little familiarity can pick up kind/enhancement A net-new feature or improvement to an existing feature status/deferred Conscious decision to pause or backlog topic/commands Topic commands

Comments

@whyrusleeping
Copy link
Member

whyrusleeping commented Jan 9, 2015

Im just filing an issue for this so I dont forget it, by no means is this issue a priority one.
It would be nice to be able to specify aliases for both commands, and peer IDs.

i.e. ipfs routing ping -> ipfs ping

or for peer IDs

ipfs ping mars instead of ipfs ping QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ

@whyrusleeping whyrusleeping added the kind/enhancement A net-new feature or improvement to an existing feature label Jan 9, 2015
@jbenet jbenet added the topic/commands Topic commands label Mar 28, 2015
@daviddias
Copy link
Member

We can have a aliases repo on IPFS Repo or just use the config file for it.

@RichardLitt RichardLitt added exp/novice Someone with a little familiarity can pick up and removed difficulty: easy labels Feb 2, 2016
@hackergrrl
Copy link
Contributor

@whyrusleeping brought this up in IRC. Here's a excerpt from the logs:

whyrusleeping
thoughts on a good escape character for hash aliases?
like 'ipfs ping @mars'
or something

noffle
whyrusleeping: why not just "mars"? my understanding is that it's a pre-processing step, not real name resolution, so you could just be able to alias any string to any other string arbitrarily
much like how I can alias any string to any string in bash

whyrusleeping
right, but how will the cli know what is an alias and whats not?
if i do 'alias mars=Qmasdasd'
and then another hash contains mars somewhere down the road
or someone has a file named mars

noffle
having a sigil in front doesn't save you from that: I could have a file named @mars
it can always be ambigious

whyrusleeping
using the bash example:
to specify the file you would use \@mars

noffle
hm, maybe bash is a bad comparison, since you want to alias parameters, not a command
I can't think of an existing analog to this
what if they were just another multiaddress? like /alias/mars?

whyrusleeping
yeah... environment variables are what i'm looking at

noffle
why not just use env vars, anyways? what properties do they lack?

whyrusleeping
i'm looking for a tighter integration into ipfs
i want to be able to ship some default aliases, for the bootstrap nodes
i want logs to be able to use aliases to print

lgierth
do it with ipns
/ipns/mars.alias

whyrusleeping
lol, is .alias a tld?

lgierth
that's how we wanna integrate namecoin to isn't it?
oh no idea
/ipns/alias/mars?

noffle
it'd be nice if the solution was multiaddress-based, rather than a brand new shim layer on top
yeah

lgierth
and /ipns/alias would just be an object pointing to all the aliased objects
all-local

noffle
lgierth: like running the 'alias' command in bash
or just /alias/mars -- ipns seems like the wrong namespace?

lgierth
yeah maybe

noffle
is the /ipns namespace inherently tied to e.g. dht-based pki name resolution?

lgierth
no, it also e.g. resolves icann dns
and we want it to resolve .bit too (namecoin)
it's generally meant to map names to hashes
i.e. names to /ipfs/ paths

noffle
hm. aliases would be purely local, so either a new namespace (like /alias) might work, or heck, just have a /ipns/<your pubkey>/alias file
it should be namespaced to its 'owner' whatever that means

@RichardLitt RichardLitt added help wanted Seeking public contribution on this issue and removed help wanted Seeking public contribution on this issue labels May 31, 2016
@flyingzumwalt flyingzumwalt added status/deferred Conscious decision to pause or backlog and removed help wanted Seeking public contribution on this issue labels Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/novice Someone with a little familiarity can pick up kind/enhancement A net-new feature or improvement to an existing feature status/deferred Conscious decision to pause or backlog topic/commands Topic commands
Projects
None yet
Development

No branches or pull requests

6 participants