Skip to content

path_regex doesn't normalize paths with filepath.ToSlash #1036

Open
@tw1nk

Description

@tw1nk

Currently to support path_regexes that should work on windows and other systems you need to manually handle the different separators with (/|\\) like this.

- path_regex: staging(/|\\).*\.secret\.(yaml|json)$
  gcp_kms: projects/.../sops-key-staging

This is a bit cumbersome and a bit error prone to use and would be nicer if we could just use slashes like this:

- path_regex: staging/.*\.secret\.(yaml|json)$
  gcp_kms: projects/.../sops-key-staging

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions