On-Prem OSDU release/0.18 legal-bootstrap is failing
I have noticed when deploying osdu-onprem using docker-desktop that the legal-bootstrap-deployment is failing.
The issue occurs when deploying osdu-onprem from branch release/0.18
cd infra-gcp-provisioning/examples/simple_osdu_onprem
helm install -f custom-values.yaml -f custom-release.yaml osdu-onprem ../../helm/osdu-infra-onprem/
The logs shows that the issue is with the two Bearer
in the authorization header in the create legal tag
step.
+ echo 'Trying to create legal tag for initial data bootstrap'
+ cat
++ curl --location -g --request POST --url http://legal/api/legal/v1/legaltags --write-out '%{http_code}' --silent --output output.txt --header 'Content-Type: application/json' --header 'authorization: Bearer Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJrajN5VmFkTEpYRk5IRzFEcWd4dnNXNVB5U04tT3FvRjBSYUkxOEt2MDE0In0.eyJleHAiOjE2NzUyNTg5NDMsImlhdCI6MTY3NTI1NTM0MywiYXV0aF90aW1lIjowLCJqdGkiOiI4ODg5Zjc2MC0wYjAxLTQwMjQtODU3MS03YmI5NDYwYmU0NzkiLCJpc3MiOiJodHRwOi8va2V5Y2xvYWsvcmVhbG1zL29zZHUiLCJhdWQiOiJkYXRhZmllciIsInN1YiI6Ijg1NDhlZjVhLWNkNDEtNDlmMy05Y2IzLTcyOWVhMmM5MmIyMyIsInR5cCI6IklEIiwiYXpwIjoiZGF0YWZpZXIiLCJhdF9oYXNoIjoiandOYWRNUkRZNUhrMHpZQnZSeDE5ZyIsImFjciI6IjEiLCJjbGllbnRIb3N0IjoiMTI3LjAuMC42IiwiY2xpZW50SWQiOiJkYXRhZmllciIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LWRhdGFmaWVyIiwiY2xpZW50QWRkcmVzcyI6IjEyNy4wLjAuNiIsImVtYWlsIjoiZGF0YWZpZXJAc2VydmljZS5sb2NhbCJ9.cKhGwHMYHFITSSLRpcK4Iwvr72vMrLtD1hZ1Y0jAmRJSswlaw4VpRJEpBXDsBAVBR9StC5a0-AX8cFNSvpAnh570CzKulazIxCrmknh8sm_Dnjjs9Ho4CscE3DyVMIupQ4UBLzaSjp9SxGKGAI_3OnpJSBIKb7kG0faPXZgjlAOzW44VLAGsYi0UdEClTfWyaFdtfU7ukieG1ILJO1ENBgrS0KuuWtt6EfZXIPCTuRLdF3uu-NkKp03FA1XVh7Xzb49tZOHSJVoV-hE9VMnbO3t_cdG53lDH-jvR50f8S_-vNOvlPh_6u6Klz_o-_eqYP5cEowMX5p7qFs0bzjuccQ' --header 'data-partition-id: osdu' --data @/opt/default_legal_tag.json
+ status_code=401
+ '[' 401 == 201 ']'
+ '[' 401 == 409 ']'
+ cat /opt/output.txt
+ exit 1
{"code":401,"reason":"Access denied","message":"The user is not authorized to perform this action"}
It looks to me that the issue was already fixed in the master branch of the legal project: osdu/platform/security-and-compliance/legal!340 (merged)
My request is :
- cherry pick that merge request to the
release/0.18
branch of thelegal
project - update the https://community.opengroup.org/osdu/platform/deployment-and-operations/infra-gcp-provisioning/-/blob/v0.18.0/examples/simple_osdu_onprem/custom-release.yaml to use a new
gcp_legal_deploy.bootstrapImage
Edited by Fabien Bosquet