REL-850418: Add rotate-api-key user guide for Environment Watch#69
REL-850418: Add rotate-api-key user guide for Environment Watch#69amithshet wants to merge 6 commits into
Conversation
Documents all CLI use cases for the rotate-api-key command including interactive, cluster-targeted, quiet, dry-run, and invalid cluster scenarios, with supporting screenshots for both the InfraWatch and DataGrid clusters. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…idence Replaces all screenshots (except Dev Tools invalidated key verification) with images from the July 12 feedback doc. Adds interactive mode screenshots and covers dry-run, quiet mode, cluster flag, and short alias use cases. Removes Secret Store and Kibana before/after screenshots not in the feedback evidence, consolidating Kibana verification into a single combined image. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Transcribes all command-prompt screenshots into rendered code blocks matching the project documentation style. Removes the eight CLI PNG files from resources. Kibana and Dev Tools verification screenshots are retained. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
dinesh1010101
left a comment
There was a problem hiding this comment.
@amithshet Once Api-Key is rotated, does Audit were working without any service restart?
@dinesh1010101 , no, it requires Elasticsearch service restarts. |
Thanks for the info, is this added somewhere in documentation i haven't notice this info? Coming to Audit, are you saying it works if elasticsearch is restarted? Do we know why elasticsearch restart is required, normally for Api-Key no restart will be required. Also, what's the trigger point for customer to follow this page? Usually i think when customer api-key expires, they have to come to this page, so technically, there has to be some content in troubleshooting page which navigates to this new page. |
anujavinash
left a comment
There was a problem hiding this comment.
Documentation review against the live implementation in server-relativity-environmentwatch. Found four issues: one correctness bug (copyright year), one UX gap (quiet mode description), one outdated term, and one missing output snippet. All findings are anchored to specific lines and verified against the source code.
- Fix --quiet options table description to accurately reflect that only confirmation and expiry prompts are suppressed (not cluster selection) - Add abort output snippet for the interactive n-path - Revert Secret Store prerequisite to match sibling doc wording Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Thanks for the review @anujavinash! Here's what was addressed: Finding 2 — Finding 4 — Missing abort output ✅ Applied Finding 1 — Finding 3 — Copyright year |
…laude Addressed the following items identified during code review: - Title corrected from plural "Keys" to singular "an Elasticsearch API Key" to accurately reflect that each command invocation rotates one key - Secret Store verification reworded to instruct reading the secret both before and after rotation, removing the assumption that a baseline was already captured - Kibana verification step updated from "approximately six months" to "approximately 180 days" for consistency with the rest of the document - External Secret Store help link updated from Server2024 to Server2025 to match the version referenced across the rest of the repo - CLI version banner updated across all code examples from 100.0.28 / Copyright (c) 2025 to 102.1.18 / Copyright (c) 2026 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
anujavinash
left a comment
There was a problem hiding this comment.
@amithshet
Screenshot having API Keys are local created. As per me no security concern.
Approving the PR
cc: @satishdayala-relativity
…ting docs - elastic-stack-setup-03-audit.md: Added 'API Key Expiry and Rotation' section with the rotate-api-key command for the DataGrid cluster and a link to the full rotate-api-key guide and the new DataGrid audit troubleshooting guide. - datagrid-audit-troubleshooting.md (new): Documents the two-stage failure sequence after DataGrid API key rotation — auth error resolved by restarting kCura services, followed by 'no results' resolved by restarting Elasticsearch and waiting 1-5 minutes before reloading the Audit tab. - monitoring-agent-and-otel-collector.md: Added 'Environment Watch Not Working After API Key Rotation' section — restart EW Windows service, wait 2-5 min; if unresolved, restart Elasticsearch, Kibana, and APM Server. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
elastic-stack-rotate-api-key-environment-watch.mddocumenting allrotate-api-keyCLI use cases: interactive,--cluster,-cshort alias,--quiet,--dryrun, and invalid cluster errorTest plan
RotateApiKey-Kibana-After.png,RotateApiKey-InfraWatch-DevTools-OldKey.png,RotateApiKey-InfraWatch-DevTools-NewKey.png)elastic-stack-setup-02-environment-watch.mdandrelativity-server-cli.mdresolve🤖 Generated with Claude Code