Giter VIP home page Giter VIP logo

Comments (3)

cole-h avatar cole-h commented on May 25, 2024 1

In spite of the warning, that is currently allowed and should work fine. I tested with the following config:

[[paths]]
glob = "t/a/*"
identities = [ "user" ]

[[paths]]
glob = "t/b/*"
identities = [ "user2" ]

[[paths]]
glob = "t/*/test"
identities = [ "machine" ]

and was able to decrypt t/a/test with both user and machine, and t/b/test with both user2 and machine.

from agenix-cli.

cole-h avatar cole-h commented on May 25, 2024

I feel like we shouldn't allow conflicting paths anyways -- so the ideal solution would be some kind of check to verify that none of the paths we're operating on have multiple matching patterns.

from agenix-cli.

pinpox avatar pinpox commented on May 25, 2024

@cole-h I just saw the warning, but what is actually done in this case? I was trying to match a file intentionally by multiple globs, is that supported?

E.g. I'd like to have three globs like

[[paths]]
glob = "hosts/host1/*"
identities = [ "host1" ]

[[paths]]
glob = "hosts/host2/*"
identities = [ "host2" ]

[[paths]]
glob = "hosts/*/backup-key"
identities = [ "backup-admin" ]

So that everything under /hosts/host1/* can be read by that host and additionally one or a subset of these files can be read by another identity.

from agenix-cli.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.