Files
Chris Farhood 46d59b48b5 chore: migrate repository to privilegedescalation organization
Updated all GitHub URLs from cpfarhood to privilegedescalation organization:
- Repository URLs in package.json and Artifact Hub metadata
- Documentation links and references
- Git remote updated

No functional changes - this is purely an organizational migration.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-12 10:50:30 -05:00

1.1 KiB

Headlamp Sealed Secrets API v0.2.0


Headlamp Sealed Secrets API / hooks/usePermissions / usePermissions

Function: usePermissions()

usePermissions(namespace?): object

Defined in: src/hooks/usePermissions.ts:26

Hook to check SealedSecret permissions for a namespace

Automatically fetches permissions on mount and when namespace changes. Returns loading state and permissions.

Parameters

namespace?

string

Optional namespace to check (cluster-wide if omitted)

Returns

object

Object with loading state, permissions, and error

loading

loading: boolean

permissions

permissions: ResourcePermissions

error

error: string

Example

const { loading, permissions, error } = usePermissions('default');
if (!loading && permissions?.canCreate) {
  // Show create button
}