Skip to content

bug: Local SSL Certificate now unable to download #11428

@olliebatch

Description

@olliebatch

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

This only started over the last few days, i believe it's unrelated to code and just an existing permission change.
Now unable to access the local https endpoints that get created in api gateway. And i believe this might also impact using the localstack website to access resource browsers. As SSL connections now fail, with invalid certificates.

This is just running a standard run command of the docker localstack

2024-08-29T08:21:32.353 DEBUG --- [ MainThread] localstack.utils.ssl : Attempting to download local SSL certificate file 2024-08-29T08:21:34.872 INFO --- [ MainThread] localstack.utils.http : Unable to download Github artifact from https://cdn.jsdelivr.net/gh/localstack/localstack-artifacts@master/local-certs/server.key to /var/lib/localstack/cache/server.test.pem: Failed to download https://cdn.jsdelivr.net/gh/localstack/localstack-artifacts@master/local-certs/server.key, response code 403 Traceback (most recent call last): File "/opt/code/localstack/localstack-core/localstack/utils/http.py", line 290, in do_download download(download_url, target_file, timeout=timeout, request_headers=request_headers) File "/opt/code/localstack/localstack-core/localstack/utils/http.py", line 202, in download raise Exception("Failed to download %s, response code %s" % (url, r.status_code)) Exception: Failed to download https://cdn.jsdelivr.net/gh/localstack/localstack-artifacts@master/local-certs/server.key, response code 403

Expected Behavior

I expect that the download of SSL when starting local stack succeeds and therefore allows access to https routes locally

How are you starting LocalStack?

With a docker run command

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

docker run localstack/localstack

This fails during initial run

Environment

- OS: MacOS
- LocalStack:
  LocalStack version: 3.6.0
  LocalStack Docker image sha: fb8addaddc00
  LocalStack build date:
  LocalStack build git hash:

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions