-
Notifications
You must be signed in to change notification settings - Fork 143
RDBTC-179 Emergency Access to RavenDB #2231
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
Conversation
| If your RavenDB instance connection is lost in the following situations: | ||
| - The certificate expired and was not renewed | ||
| - The certificate was deleted | ||
| - You were authenticating with a 2EKU server certificate, and it was renewed with 1EKU [(context)](https://ravendb.net/articles/ravendb-global-changes-in-lets-encrypt) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to explicitly mention it's about the Client Certificate
|
|
||
| - use an existing, non-expired one | ||
| - contact your system administrator to generate one for you | ||
| - generate a new self-signed certificate (example below) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - generate a new self-signed certificate (example below) | |
| - generate a new self-signed certificate yourself (example below) |
|
|
||
| You will need to connect directly to the server environment where Raven.Server process is running. | ||
|
|
||
| We need to send the new certificate to the production environment - so it's "reachable" for the `rvn` executable, which is located inside your RavenDB distribution package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| We need to send the new certificate to the production environment - so it's "reachable" for the `rvn` executable, which is located inside your RavenDB distribution package. | |
| We need make the new certificate accessible by RavenDB through the file system - so that it's "reachable" for the `rvn` executable, which is located inside your RavenDB distribution package. |
|
|
||
| We need to send the new certificate to the production environment - so it's "reachable" for the `rvn` executable, which is located inside your RavenDB distribution package. | ||
|
|
||
| You can use `scp`, copy via remote desktop (rdp), or any other relevant method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| You can use `scp`, copy via remote desktop (rdp), or any other relevant method. | |
| You can use `scp`, copy via remote desktop (RDP), or any other relevant method. |
| e.g. | ||
|
|
||
| ```bash | ||
| scp certs/client.pfx user@my-server:/path/to/ravendb/RavenDB/Server/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not advise to put that cert in the server directory. Just home dir would do
|
|
||
| Go to the directory where you have extracted/installed RavenDB, and run the `rvn` tool with `admin-channel` command. | ||
|
|
||
| The `rvn admin-channel` will connect directly to the local RavenDB server process using IPC pipe. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The `rvn admin-channel` will connect directly to the local RavenDB server process using IPC pipe. | |
| The `rvn admin-channel` will connect directly to the local RavenDB server process using IPC. |
|
|
||
| The `rvn admin-channel` will connect directly to the local RavenDB server process using IPC pipe. | ||
|
|
||
| Once you're connected, use `trustClientCert` command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we specify parameters for this command?
gregolsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see m,y comments
https://issues.hibernatingrhinos.com/issue/RDBTC-179/Emergency-Access-to-RavenDB