[prev in list] [next in list] [prev in thread] [next in thread]
List: openssh-unix-dev
Subject: Re: SNI-like routing
From: SERVANT Cyril <cyril.servant () cea ! fr>
Date: 2022-09-26 12:15:20
Message-ID: 2d8b514e-8de1-38c2-1e57-18848c024b6a () cea ! fr
[Download RAW message or body]
Le 26/09/2022 à 12:21, Brian Candler a écrit :
> On 26/09/2022 10:48, SERVANT Cyril wrote:
> > And then, in /etc/sshproxy/sshproxy.yaml :
> >
> > users:
> > - foo
> > routes:
> > default:
> > dest: [ip.of.foo.vm]
> > - bar
> > routes:
> > default:
> > dest: [ip.of.bar.vm]
>
> FWIW, that isn't valid YAML <http://www.yamllint.com/>, but it's OK once you add a \
> colon after each username.
> users:
> - foo:
> routes:
> default:
> dest: [ip.of.foo.vm]
> - bar:
> routes:
> default:
> dest: [ip.of.bar.vm]
You're 100% correct, my bad. This is the right syntax.
> Regards,
>
> Brian.
>
> P.S. I can't see why the YAML config uses an extra level of object nesting. I \
> would have expected the top level to be either a list (of rules to be tried in \
> sequence):
> ---
> users:
> - username: foo
> routes:
> default:
> dest: [ip.of.foo.vm]
> - username: bar
> routes:
> default:
> dest: [ip.of.bar.vm]
It makes sense. I really like this.
> or an object (for direct lookup of username into a map):
>
> ---
> users:
>
> foo:
> routes:
> default:
> dest: [ip.of.foo.vm]
>
> bar:
> routes:
> default:
> dest: [ip.of.bar.vm]
I need an ordered list, so your fist proposal is better in this case.
Thanks for the input.
--
Cyril
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic