-
Notifications
You must be signed in to change notification settings - Fork 10
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
Enabling SSL caused relay-agent registration to fail. #76
Comments
@britdm any luck resolving this issue? I ran into same issue while trying to register EKS cluster |
Not yet, but I do wonder if an IAM role is needed here with the correct permissions for the relay agent. EKS clusters can be locked down a bit, even to internal users. |
I was able to register the same cluster when SSL is not enabled. Post SSL only I am facing this issue. I am facing this issue in while importing other kubernetes clusters also, not just EKS |
I had the same problem after enabling SSL. It was overcome when in -boostrap.yaml I manually corrected the connection port from 80 to 443 for data:
clusterID: ad8710e7-****-****-****-86b555046661
relays: '[{"token":"**************","addr":"console.example.com :443","endpoint":"*.core-connector .example.com:443","name":"paralus-core-relay-agent","templateToken":"****************"}]' console.example.com :80 -> console.example.com :443 |
My bootstrap YAML has port 443 post enabling SSL , but still facing the error. I am attaching paralus config and relay-agent config. {"level":"error","ts":"2023-10-17T10:36:55.736Z","caller":"agent/agent.go:397","msg":"Relay Agent::failed to register relay agent error: Post "https://console.paralus.slvr-dig-platsvcmgt.awsdns.internal.das:443/v2/sentry/bootstrap/template%2Fcj3odvnddtem3po9aa7g/register\": tls: failed to verify certificate: x509: certificate signed by unknown authority ","stacktrace":"github.com/paralus/relay/pkg/agent.registerRelayAgent\n\t/build/pkg/agent/agent.go:397\ngithub.com/paralus/relay/pkg/agent.handleRelayNetworks\n\t/build/pkg/agent/agent.go:606"} =================================================================
|
You using self-signed certificates (AWS Private CA) ? |
This is a cross post from this issue
After applying the -boostrap.yaml for the relay-agent onto clusters that I want to import, the agent is not able to connect to Paralus to register clusters. I did some debugging and found that it was not Okta, but the relay application with this problem.
The certificate generated for SSL was created following the Deploy ClusterIssuer and Certificate Objects with cert-manager.
Expected vs actual behavior
Expect
SUCCESSFUL
when viewing the clusters in a projectActual
Method not allowed
[POST /v2/sentry/bootstrap/{templateToken}/register][501] Bootstrap_RegisterBootstrapAgent default &{Code:12 Details:[] Message:Method Not Allowed}
cluster registration stuck pending and Cluster Connection status reads
FAILURE
Steps to reproduce the bug
Are you using the latest version of the project?
What is your environment setup? Please tell us your cloud provider, operating system, and include the output of
kubectl version --output=yaml
andhelm version
. Any other information that you have, eg. logs and custom values, is highly appreciated!(optional) If you have ideas on why the bug happens or how it can be solved, please provide it here
The text was updated successfully, but these errors were encountered: