bcgov / vc-authn-oidc

Apache License 2.0
142 stars 74 forks source link

ngrok now requires a free account and authtoken #402

Closed russorat closed 8 months ago

russorat commented 9 months ago

PM from ngrok here. I'm opening this issue to let you know what ngrok has recently started requiring a free account and authtoken to start the agent. It looks like your software already works with an authtoken, but there might be users or integrations or docs that need to updated.

Please reach out to support@ngrok.com if you are having any issues.

Thanks again for using ngrok!

I've copied the original notice posted to twitter below:

As a part of our ongoing efforts to make ngrok more secure, starting on December 19, 2023, all usage of ngrok will require an account on either our free or paid tiers. 

To connect to the ngrok service via the agent, SDK, or ingress controller, you must add a valid authtoken that is linked to an active free or paid account. Any new or existing connections without a valid authtoken will result in error code 4018.

Learn more here: https://ngrok.com/docs/errors/err_ngrok_4018/
esune commented 9 months ago

To continue using the service with only one authtoken, some changes need to be implemented:

networks: vc_auth: driver: bridge

* create an `ngrok.yml` configurationf ile:
```yaml
version: 2
tunnels:
  controller-ngrok:
    addr: controller:${CONTROLLER_SERVICE_PORT}
    proto: http
    schemes:
      - https
  aca-py-ngrok:
    addr: aca-py:${AGENT_HTTP_PORT}
    proto: http
    schemes:
      - https
log: stdout
Laderlappen commented 9 months ago

Hi, I'm trying to run the vc-authn demo. Is this issue related to this problem I'm having when I run ./manage start (see screenshot image)? Screenshot from 2024-01-18 12-23-47 If so is there a workaround for this problem?

Laderlappen commented 9 months ago

@esune Do you have an example of the project with the changes implemented that you mentioned in your comment above? Apologies if this is not the right place for this discussion.

Laderlappen commented 9 months ago

I've implemented a quick hack using 2 ngrok keys in the mean time:

Screenshot from 2024-01-18 17-54-54

esune commented 8 months ago

@Laderlappen yes, the issue you're experiencing is the same described in this issue. We have not implemented a permanent fix quite yet, the two key workaround you are using can work in the meantime.