Skip to content

Conversation

cforce
Copy link
Contributor

@cforce cforce commented Nov 10, 2024

Overriding the env vars in then vscode launch.,json ""env": .." section does not work because of load_azd_env.py
always gives the dot env presence. Therefore i changed load_dotenv(env_file_path, override=True) to
load_dotenv(env_file_path, override=False) to let the env var win in favor to dot env file setting

Summary: The script adlsgen2setup.py does not assign the "groups" ACL to individual files, and prepdocs.py does not check folder ACLs and created a copy of all folders in flat struture without any acls groups / rights. Consequently, the ACL is missing from the "group" field in the vector index —it remains empty. Files are accessible for anyone independent or the security group he is in

Azure-Samples#2109
@pamelafox
Copy link
Collaborator

Very interesting. I definitely understand why you made this change, but I worry then we'll end up with devs in the opposite situation: they accidentally have an environment variable in their global environment with the same name as the azd environment variable. I've run into that in the past, and that's why I do the override.
What if we have an environment variable for allowing override, and you could set that in launch.json when needed? Would that work?

@cforce
Copy link
Contributor Author

cforce commented Nov 13, 2024

Yes, that shall be sufficient

@pamelafox
Copy link
Collaborator

I've added the environment variable, along with an example in launch.json and comment about how to enable the mode you desire.

@pamelafox pamelafox merged commit 9e960ec into Azure-Samples:main Nov 19, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants