Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCIR authentication #21

Open
DonMichel opened this issue Apr 14, 2023 · 0 comments
Open

OCIR authentication #21

DonMichel opened this issue Apr 14, 2023 · 0 comments

Comments

@DonMichel
Copy link

Hi Team.

I was failing to deploy this solution oci-idcs-monitoring either using the marketplace APP or via Terraform.
It seems that the code is not authenticating before uploading the image to the container registry, so it fails with “Denied: Anonymous users are only allowed read access on public repos”
I was not able to deploy via resource manager or terraform.
Then, with Terraform I just previously executed the docker login command with the credentials and the solution was deployed smoothly.

2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): 8e159402cbb8: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): 9684b89cfbc1: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): e392a63d032a: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): c9264e9aa767: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): c9264e9aa767: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): e392a63d032a: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): denied: Anonymous users are only allowed read access on public repos
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] Error: local-exec provisioner error
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] with null_resource.IdcsAuditLogPush2OCIR,
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] on main.tf line 31, in resource "null_resource" "IdcsAuditLogPush2OCIR":
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 31: provisioner "local-exec" {
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] Error running command 'docker push
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] phx.ocir.io/NAMESPACE/loganalytics/postauditlogs:0.0.1': exit status 1.
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] Output: The push refers to repository
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] [phx.ocir.io/NAMESPACE/loganalytics/postauditlogs]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 3427d0aaff85: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] c69ed9288d51: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] bbcfa0d2dcd1: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 8e159402cbb8: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 9684b89cfbc1: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] e392a63d032a: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] c9264e9aa767: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] c9264e9aa767: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] e392a63d032a: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] denied: Anonymous users are only allowed read access on public repos
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]

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

No branches or pull requests

1 participant