Error downloading Sentinel policy

I’ve configured a sentinel policy and enabled it to run on a specific workspace in TFE. I get the following error. any ideas…

An error occurred: 1 error occurred:
	* Error downloading policy archive: <nil>: Failed to read file; The configuration file "/tmp/tfe-sentinel-worker790476106/temp966561548/tf-envs-in-regions/sentinel.hcl" could not be read.

Hey Kalyan, this sounds like a TFE-specific issue. Best way to resolve this would be to put in a ticket with support.

Thanks!

I resolved the issue. The issue was with creation of policy, policy sets and relevant assignments to the workspace. It is working now.

Hello. I realize this was quite a while ago, but was wondering what the issue was more specifically. Seeing a similar issue right now as well. Thank you!

The Sentinel Policy Set was not found / downloaded from VCS (i.e. GitHub)

In case you have the same issue, check the following:

In TFE

  • Go to Admin / Settings / Policy Sets / Your Policy Set
  • In Policy Set Source:
    • Expand the More Options section and check the value of “Policies Path”
    • Click the :arrow_upper_right: pointing to the VCS
    • In the VCS check that:
      • You have a “sentinel.hcl” file
      • The location matches the “Policies Path” in TFE
1 Like