-
Notifications
You must be signed in to change notification settings - Fork 28
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
[question] configuring 2 domains on same service, and other quirks #73
Comments
hi... thanks for your interest.... however i don't get clear what is the feature you mean, i admit in my previous post i asked for many features in a little messy way so my central point is... imagine you are subscribed to an online ddns service, with 2 different user accounts, to update 2 different domains each.... the .... so imagine a
another (non standard?) way i use in my freedns v2 plugin i sent the pull request #74 is
you will see the same service (machine freeserv_basic) with 2 different accounts/domains/tokens .... how can something like this currently be done natively? |
I see. I was referring to your request for having more than one section in the ddupdate config file for having ddupdate update several addresses (or address types) at once. Regarding .netrc I can't be of much help. But I believe it's out of scope of the ddupdate software and its developer to change how .netrc works. |
Hi Atesin, sorry for late reply. ENOTIME... There are some interesting ideas here. However, we cannot change the netrc format, this is a system service used not only by ddupdate with it's own manual page. See So, back to the drawing board: How could you have two different domains using a single service? Looking at
You might want to read more in that manpage. But the short story seems to be that you can do exactly what you described as theoretical, besides that you need to specify host. |
hi @leamas , thanks for your kind response you see i (tried to) write a plugin and made a pull request... you will see the new afraid.org api v2 is really powerful and simple support for different domains with single service is nice... but i was really thinking, what about multiple accounts with same service?... for example, imagine you offer webhosting for 2 different friends, each one with its own domain and dyndns account, and you have to configure both account+domain in same ddns service multiple [update] sections in ddupdate.conf could work for multiple domains in same ddns service, but under the same account... how can we make it work different domains in same ddns service but with different accounts (or tokens)? |
I might be missing something here, but what is the problem? Why is it not possible to define two different sections using the same service? |
yes 2 domains in same ddns service with same user account... but not in the same service with 2 DIFFERENT USER ACCOUNTS surely in i think that is because for example, imagine i give webhosting to 2 or more friends, and they have their own domain and ddns account in same service, how can i currently configure ddupdate with all accounts in same ddns service? a dirty workaround could be to create multiple linux user accounts, with one i did't knew it before i wrote afraid.org v2 plugin (pull request here -> #74) so i tried to surpass these limitations as i thought i can't get to understand, why did you choose to use |
Today, ddupdate is also able to use the keyring to handle credentials. However, the keyring is based on the same idea: It maps a key to a single value, so it's no difference. I think the keyring could be considered "modern", so this issue is not about a that. That said. I see your problem. I need some time I don't have to think about it. I'm open to ideas, as long as they don't break compatibility with current code. |
thanks... chances are i am not the only one that will have to face this difficulty try to think a simple solution, to program and to use it... i found the keyring one also complicated, i never use it and always disable and uninstall because i am the only user of my home server, same with those cloud based virtual machines (and same with selinux that brings me more problems than solutions)... if i have to create system accounts they are mainly used by processes imagine what will happen to someone that, rarely, still today uses ftp with there are countless posibilities to do this... for example ddupdate could have a custom and dedicated ini/conf/json, etc. i saw is easy to do with python (even ddupdate DOES with whatever custom mechanism could also store credentials encrypted some way ( i think the simplest and faster solution could be to add all auth info in same that system could reference auth credentials by a given name, unlike now that is reference by "machine name" (what prevents multi-user services)... and in i am full of ideas but lacked of knowledge.... i will sort some ideas and come back to tell you, if you like |
will not happen. Storing secrets in plain text files should be avoided. For those who needs it netrc makes the job, is reasonable well known and documented. Anything else has to to protected/encrypted. Says who? I do. This is not a question about how data is stored, it's a question about the actual key used to look up the secret. Neither netrc nor the keyring knows or cares about multiple user accounts, they are just a key->value mapping. Which of course could be used in all sorts of scenarios including yours. |
why don't just give an option to store service password in same why not simply give an arbitrary a name to [service,user,passord] auth configs? in csv format will be some like the question i really think is find a way to prevent same ddns credentials set by different linux users will collide when different ddupdate threads run (topic for another conversation) |
Again: this is not a question where passwords are. Let's just state that we will use also netrc and the keyring also in the future. If you have read up anything at all on security you would know that statements like . it is stored inside user home directory, that means nobody else could access it (but root of course)... are unacceptable and sort of disqualifies you. So, come back with a concrete suggestion based on using netrc or the keyring which also is compatible with existing installations and plugins. This is what his is about |
i agree with you... is not a question about paswords, where to store them and if should be encrypted or not.. but about single ddns services with multiple user accounts (or tokens) like title says... for example, in my case i have 4 domains in afraid.org, 2 mine and 2 of friends (that i am also technical contact) i.e. for shared linux environments there is keyring plugin, but anyway i don't know if in ddupdate with keyring mechanism, a single ddns service with many user accounts will be supported, with keyring, netrc, conf, database or whatever for example, i was reading about
would be fantastic if the function would also be |
hi...
currently my openwrt router manages all my ddns domain updates, but i like to migrate them to my home server, on one hand to release the work load on my router and move it to my more powerful server, and on the other hand because it sounds logical to me that the server will manage the same domains that SERVES (like http or any other service), that way i could take it to anywhere and run the services with minimal configurations
between my ddns configurations i have a service with 2 different domains... i had read ddupdate documentation but i couldn't think a way to configure this accordingly
... now a little of brainstorming and spitting ideas...
since a single domain running with 2 different services can't be setted up, i feel more logical to use the DOMAIN NAME as the unique identifier that ties configurations between all files and storages (ok, maybe a single domain with 2 different services could be set, but is maybe hard, unlikely, and silly)... so this way for example, a ddupdate.conf file theoretically would look like this:
(additionally, this way ddupdate.conf could be just appended instead of overwritten by
ddupdate-config
)... and suppose the corresponding .netrc file would be like:
so looking this file we could reach some conclussions:
www.freeserv.example
andwww2.freeserv.example
are updated under the same account onfreeserv_basic
minecraft.freeserv.example
is also updated onfreeserv_basic
, but under another user accountcooldomain_token
service doesn't uses a "user:password" auth pair, but just a single token instead (noteddupdate -p
or-C
doesn't offer the option to write just the password)now the main question, and supposing i won't create multiple linux user accounts just for this... how the heck could configurations like these being run in current ddupdate release?
p.s.
another quirk: command line options
--service-option
and other ones finished with '-option', together with ddupdate.conf optionsservice-options
and others, are written differently (note the trailing "S"), supposedly they are interchangeable... it catched my attention but is not clarified anywhere, is that ok or is a typo?... and how to use them?The text was updated successfully, but these errors were encountered: