Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

ProvisionApi Access Denied on register #86

Open
Khaeshah opened this issue Jul 22, 2020 · 0 comments
Open

ProvisionApi Access Denied on register #86

Khaeshah opened this issue Jul 22, 2020 · 0 comments

Comments

@Khaeshah
Copy link

When doing the register process, the following messages appear and the tunnel is not working, it seems that the certificate is not generated as expected.

Master version:

[2020-07-22 13:25:40] [BeameStore] INFO: Credential Key Pair for XXXXXXX.v1.p.beameio.net created successfully...
[2020-07-22 13:25:40] [BeameStore] INFO: Requesting certificates for credential XXXXXXX.v1.p.beameio.net ...
[2020-07-22 13:25:44] [BeameStore] INFO: Credential XXXXXXX.v1.p.beameio.net certificates received, saving to disk ...
[2020-07-22 13:25:44] [BeameStore] INFO: Credential updating metadata XXXXXXX.v1.p.beameio.net...
[2020-07-22 13:25:45] [ProvisionApi] ERROR: API Get on https://YYYYYYYY.ZZZZZZZ.v1.p.beameio.net/api/v1/node/get/meta:: Access Denied
[2020-07-22 13:25:45] [BeameStore] ERROR: Updating metadata for XXXXXXX.v1.p.beameio.net failed
[2020-07-22 13:25:46] [BeameStore] INFO: Credential updating metadata XXXXXXX.v1.p.beameio.net...
[2020-07-22 13:25:47] [ProvisionApi] ERROR: API Get on https://YYYYYYYY.ZZZZZZZ.v1.p.beameio.net/api/v1/node/get/meta:: Access Denied
[2020-07-22 13:25:47] [BeameStore] ERROR: Updating metadata for XXXXXXX.v1.p.beameio.net failed

Development version:

[2020-07-22T13:40:07.597] [INFO] Credential - Credential updating metadata XXXXXXX.v1.p.beameio.net...
[2020-07-22T13:40:08.221] [WARN] BeameRequest - API GET error on https://YYYYYYYY.ZZZZZZZ.v1.p.beameio.net/api/v1/node/get/meta
[2020-07-22T13:40:08.221] [WARN] BeameRequest - {
  error: null,
  url: 'https://YYYYYYYY.ZZZZZZZ.v1.p.beameio.net/api/v1/node/get/meta'
}
[2020-07-22T13:40:08.222] [ERROR] BeameRequest - API Get on https://YYYYYYYY.ZZZZZZZ.v1.p.beameio.net/api/v1/node/get/meta:: Access Denied
[2020-07-22T13:40:08.222] [ERROR] Credential - Updating metadata for XXXXXXX.v1.p.beameio.net failed
[2020-07-22T13:40:08.222] [ERROR] Credential - {
  message: 'Access Denied',
  _module: 'BeameRequest',
  data: {
    url: 'https://YYYYYYYY.ZZZZZZZ.v1.p.beameio.net/api/v1/node/get/meta'
  },
  code: 'ApiRestError',
  status: 403
}

If I do a curl to the generated tunnel, we get the following message:

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it.

I've tried it on different machines and networks and different operating systems and I've been able to reproduce it. Tried on Ubuntu 18.04/20.04 and Linux mint 19.3/20. The time and timezone is set correctly, and I am able to work with old fqdn's.

It's been tested with node 8 and node 12, also it's been tested with the latest release on your development branch and the same issue appeared

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant