where to store application json

Patrick Venture venture at google.com
Sat Aug 17 00:18:35 AEST 2019


On Fri, Aug 16, 2019 at 6:33 AM Matt Spinler <mspinler at linux.ibm.com> wrote:
>
>
>
> On 8/15/2019 6:59 PM, Andrew Jeffery wrote:
> >
> > On Fri, 16 Aug 2019, at 07:01, Andrew Geissler wrote:
> >> As we start moving more and more of our applications to using runtime parsed
> >> json files, it seems like a good time to come up with a standard location to put
> >> the json files. I think a requirement is they be in a writeable filesystem
> >> (although that may bring security concerns) so that you can edit and restart
> >> services that use them on the fly for bringup and debug.
> >>
> >> /etc seems like the right spot. But if so, where in /etc
>
> While convenient to the developer for testing, to me it doesn't sound
> like good practice to put read
> only, critical files into a writeable spot?  How could we even trust
> data that comes back to us from
> the field when a user that can get into their BMC can just change
> these?  Or accidentally
> delete a file?
>
>
>
> >> ?
> >>
> >> Adriana pointed me to the FSH guidelines[1] in a review which has the following:
> >> "It is recommended that files be stored in subdirectories of /etc rather than
> >> directly in /etc.".
> >>
> >> /etc/opt ?
> >> /etc/opt/phosphor/ ?
> >> /etc/opt/phosphor/<repository name>/ ?
> > Where did the "/opt/" bit come from? Please lets drop that.
> >
> > IMO we should be using /etc/<application name>. Be mindful that one repository
> > can produce multiple applications, but what application sits in which repository
> > is a code organisation problem and not something that we should tie into system
> > configuration.
> >
> > Andrew

A lot of stuff is in /usr/share -- but I think /etc is a reasonable place too.

>


More information about the openbmc mailing list