Deployment Architecture

Parsing default.meta with python

kbroeker
New Member

Hi,

in our deployment pipeline we want to check the config of an app.
At the moment I try to parse the default.meta file.
For the other confs we use the configparser and python to check our quality.

The first problem was the nameless stanza ("[]"). I don't found a way that the configparser parse stanzas without name.
The workaround was, that I "rename" the stanza before using configparser. If someone has a better variant I would be very pleased.

My problem now is, that I want to check that the "access":
access = read : [ * ], write : [ admin, power ]
I want to check if the right groups are permitted.

Any of you know what format that's written in?
Unfortunately I haven't found anything yet.

Thanks for your help.

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...