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

Localias on GitHub Actions #43

Open
iloveitaly opened this issue Nov 22, 2024 · 4 comments
Open

Localias on GitHub Actions #43

iloveitaly opened this issue Nov 22, 2024 · 4 comments
Labels
feature feature request needs-more-info needs more information from the reporter

Comments

@iloveitaly
Copy link

👋 what a cool project. Love it.

I'm trying to get this working on GitHub actions with the goal of enabling the test suite to mirror production as closely as possible.

https://github.com/iloveitaly/python-starter-template/actions/runs/11965441527/job/33359452515

It's close (I have a couple PRs coming for some tweaks I've made) but the certs are not installing properly. One especially strange thing is:

localias debug cert --print

Results in:

error: open /home/runner/.local/state/localias/caddy/pki/authorities/local/root.crt: no such file or directory

Another interesting error is:

{"level":"info","ts":1732243175.972077,"msg":"not NSS security databases found"}

Which doesn't seem like the core issue?

I'm not familiar with the linux certificate store, so I wanted to check in with you in case you had any pointers before I start hunting in the dark for what's going on here in ubuntu.

@peterldowns peterldowns changed the title Localaias on GitHub Actions Localias on GitHub Actions Nov 22, 2024
@peterldowns peterldowns added the needs-more-info needs more information from the reporter label Nov 22, 2024
@peterldowns
Copy link
Owner

Hey @iloveitaly nice to run into you on Github! Just to make sure I understand — your goal is to run the localias daemon inside of a Github Actions workflow, so that other steps in the workflow can make requests that get proxied by localias? If so, that's not something I had ever considered, but sounds cool and I'd be happy to accept PRs that help make it happen.

I don't know anything about the Github Actions environment re: cert stuff, and I don't use linux so I'm not really familiar with how to deal with common certificate stores. I've been lucky to mainly piggyback on the hard work of the Caddy project and have this stuff mostly Just™ Work™ 😅 .

If you have any questions about how to make the necessary change in Localias to support what you're doing, I hope to be more helpful.

@peterldowns peterldowns added the feature feature request label Nov 22, 2024
@iloveitaly
Copy link
Author

Got this mostly working! There were some very weird issues I had to workaround:

https://github.com/iloveitaly/github-action-localias

@peterldowns
Copy link
Owner

Very cool! Thanks for taking a look at Localias and for working to extend it! Did making it all work end up requiring any patches to localias?

@iloveitaly
Copy link
Author

No patches to localias! There were some very weird issues with "SSL cert warming" which would cause an SSL error to be reported the first time you request a domain.

This would sometimes happen repeatedly, even after requesting the domain once, which is why we have a backoff for both curl and an optional chromium test.

I have no idea why this is the case—there's something funky going on with how ubuntu handles self-signed SSL certs.

Cool with adding to the readme?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature feature request needs-more-info needs more information from the reporter
Projects
None yet
Development

No branches or pull requests

2 participants