permitio / opal

Policy and data administration, distribution, and real-time updates on top of Policy Agents (OPA, Cedar, ...)
https://opal.ac
Apache License 2.0
5.14k stars 180 forks source link

Missing wget binary #655

Open ojecborec opened 2 months ago

ojecborec commented 2 months ago

When running the latest permitio/opal-client:0.7.12 image as docker compose with following command

sh -c "exec ./wait-for.sh http://opal-server:7002/healthcheck --timeout=60 -- ./start.sh"

the ./start.sh script is never executed. The reason is that wget binary does not exists therefor

wget --timeout=1 -q "$HOST" -O /dev/null > /dev/null 2>&1

returns 127 exit code.

gemanor commented 2 months ago

/bounty $100

algora-pbc[bot] commented 2 months ago

💎 $100 bounty • Permit.io

Steps to solve:

  1. Start working: Comment /attempt #655 with your implementation plan
  2. Submit work: Create a pull request including /claim #655 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to permitio/opal!

Add a bounty • Share on socials

Attempt Started (GMT+0) Solution
🟢 @ojecborec Sep 18, 2024, 10:57:17 AM #662
algora-pbc[bot] commented 2 months ago

💡 @ojecborec submitted a pull request that claims the bounty. You can visit your bounty board to reward.

ojecborec commented 2 months ago

/attempt #655 https://github.com/permitio/opal/pull/662

Abiji-2020 commented 1 month ago

@ojecborec @gemanor any progress on this issue?

ojecborec commented 1 month ago

@Abiji-2020 Still waiting for @obsd to help us with failing tests on #662

Abiji-2020 commented 1 month ago

@Abiji-2020 Still waiting for @obsd to help us with failing tests on #662

okay, incase if you need another hand, i am ready for it .

ojecborec commented 1 month ago

The log file reads

- Create .env file
- Clone tests policy repo to create test's branch
Cloning into 'opal-tests-policy-repo'...
Load key "/home/runner/work/opal/opal/app-tests/opal-tests-policy-repo-key": error in libcrypto
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

I've only added wget package to apt-get install statement. This fail seems to be unrelated to my change. Do you have any idea what is going on?

Abiji-2020 commented 1 month ago

The log file reads

- Create .env file
- Clone tests policy repo to create test's branch
Cloning into 'opal-tests-policy-repo'...
Load key "/home/runner/work/opal/opal/app-tests/opal-tests-policy-repo-key": error in libcrypto
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

I've only added wget package to apt-get install statement. This fail seems to be unrelated to my change. Do you have any idea what is going on?

I had checked several PR's in the repo and all of them has this issue, it is not a problem with the code, it is a problem with the docker workflow:

https://github.com/permitio/opal/blob/master/.github/workflows/tests.yml#117 the error is that issue with the SSH key used to clone the repository, which is likely caused by a missing or misconfigured SSH key.

ojecborec commented 1 month ago

Thank you for the explanation. Is there anything I can help with?

Abiji-2020 commented 1 month ago

Thank you for the explanation. Is there anything I can help with?

we can ask the maintainers to check on the secrets the correct values are given in the repository. As all the PR currently opened are facing this issue in the docker test.

danyi1212 commented 1 month ago

Hey, we have an issue with the CI at the moment, some expired token of some sort. I'm waiting for someone else's help, hopefully I will be able to resolve it soon and get this merged 🌟

ojecborec commented 2 weeks ago

It is pending 1 reviewer at the moment.