Commit 8624877c authored by Marc Burnie [AWS]'s avatar Marc Burnie [AWS]
Browse files

enabling opa for aws and replacing ConfigProps with Value annotation

parent 9f0cd4fb
Pipeline #112300 failed with stages
in 115 minutes and 33 seconds
......@@ -34,6 +34,7 @@ In order to run the service locally or remotely, you will need to have the follo
| `LEGALTAG_BASE_URL` | `http://localhost:8083` or `https://some-hosted-url` | yes | Specify the base url for a legal service instance. Can be run locally or remote | no |
| `CRS_CONVERSION_BASE_URL` | `http://localhost:8084` or `https://some-hosted-url` | yes | Specify the base url for a CRS Conversion service instance. Can be run locally or remote | no |
| `POLICY_BASE_URL` | `http://localhost:8085` or `https://some-hosted-url` | yes | Specify the base url for a Policy service instance. Can be run locally or remote | no |
| `OPA_URL` | `http://opa-agent` | yes | Specify the url for the OPA agent. | no |
| `DISABLE_CACHE` | `true` | no | Set to true to disable caching to redis. Either set this or configure cache config env vars | no |
| `CACHE_CLUSTER_ENDPOINT` | `true` | no | Redis endpoint uri. Either set this or DISABLE_CACHE | no |
| `CACHE_CLUSTER_PORT` | `6379` | no | Redis port. Either set this or DISABLE_CACHE | no |
......
......@@ -54,9 +54,8 @@ POLICY_API=${POLICY_BASE_URL}/api/policy/v1
POLICY_ID=storage
PARTITION_API=${PARTITION_BASE_URL}/api/partition/v1
aws.environment=${ENVIRONMENT}
OPA_API=${OPA_URL}
opa.opa-endpoint=notused
opa.enabled=false
opa.opa-endpoint=${OPA_URL}
opa.enabled=true
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration
# https://community.opengroup.org/osdu/platform/system/storage/-/issues/122
......
......@@ -46,9 +46,9 @@ import java.util.Map;
import java.util.stream.Collectors;
@Service
@ConfigurationProperties(prefix = "opa")
public class OPAServiceImpl implements IOPAService {
@Value("${opa.opa-endpoint}")
private String opaEndpoint;
@Autowired
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment