diff --git a/authentik/blueprints/v1/tasks.py b/authentik/blueprints/v1/tasks.py index 41733b0b9..3a278ef3c 100644 --- a/authentik/blueprints/v1/tasks.py +++ b/authentik/blueprints/v1/tasks.py @@ -101,7 +101,10 @@ def blueprints_find(): """Find blueprints and return valid ones""" blueprints = [] root = Path(CONFIG.y("blueprints_dir")) - for path in root.glob("**/*.yaml"): + for path in root.rglob("**/*.yaml"): + # Check if any part in the path starts with a dot and assume a hidden file + if any(part for part in path.parts if part.startswith(".")): + continue LOGGER.debug("found blueprint", path=str(path)) with open(path, "r", encoding="utf-8") as blueprint_file: try: