hide Secrets Recovery in HVD clusters (#10142) (#10155)

Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
This commit is contained in:
Vault Automation 2025-10-15 16:45:17 -04:00 committed by GitHub
parent 6886447328
commit c015c72f6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -16,7 +16,7 @@
data-test-sidebar-nav-link="Secrets Sync"
/>
{{/if}}
{{#unless this.cluster.dr.isSecondary}}
{{#unless (or this.cluster.dr.isSecondary this.flags.isHvdManaged)}}
<Nav.Link
@route="vault.cluster.recovery.snapshots"
@text="Secrets Recovery"

View file

@ -263,4 +263,15 @@ module('Integration | Component | sidebar-nav-cluster', function (hooks) {
assert.dom(GENERAL.navLink('Vault Usage')).exists();
});
test('it does NOT show Secrets Recovery when user is in HVD admin namespace', async function (assert) {
this.flags.featureFlags = ['VAULT_CLOUD_ADMIN_NAMESPACE'];
const namespace = this.owner.lookup('service:namespace');
namespace.setNamespace('admin');
await renderComponent();
assert.dom(GENERAL.navLink('Secrets Recovery')).doesNotExist();
});
});