/hudu:passwordsfrom hudu
Manages Hudu secure credential storage: retrieving, creating, rotating, and auditing asset passwords with company scoping, folders, TOTP secrets, and API-key-level permissions.
Ships in hudu. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Passwords in Hudu (called "asset passwords" in the API) provide secure credential storage scoped to companies. They allow MSP technicians to store, organize, and retrieve credentials for client infrastructure, applications, and services. Password access can be restricted at the API key level, and all access is logged in Hudu's activity logs.
Critical API naming note: The Hudu UI calls these "Passwords," but the API endpoint is /api/v1/asset_passwords. Always use asset_passwords in API calls.
asset_passwords; use hudu-assets.itglue-api-patterns.cipp-users or m365-users. Editing
the record without changing the system leaves documentation that is
confidently wrong.Passwords are organized by:
Company: Acme Corporation
+-- Passwords
+-- Infrastructure
| +-- Domain Admin - ACME
| +-- Local Admin - Servers
| +-- vCenter Admin
+-- Network
| +-- Firewall Admin
| +-- Switch Admin
| +-- WiFi Controller
+-- Applications
| +-- ERP Admin
| +-- CRM Admin
+-- Cloud Services
+-- Microsoft 365 Global Admin
+-- AWS Root Account
API keys in Hudu can be configured to allow or deny password access:
| Permission | Effect |
|---|---|
| Enabled | API key can read/write password values |
| Disabled | API key cannot access password values (403 Forbidden) |
This is configured per API key in Admin > API Keys.
Hudu logs all password access in the activity logs (/api/v1/activity_logs) — who accessed it, when, and what action (view, create, update, delete):
GET /api/v1/activity_logs?resource_type=AssetPassword&resource_id=789
Core fields: company_id (required), name (required), username, password, url, description, password_type, otp_secret, password_folder_id.
See references/fields.md for the complete field reference.
| Operation | Request |
|---|---|
| List / filter | GET /api/v1/asset_passwords?company_id=123&name=Domain Admin&page=1 |
| Get one | GET /api/v1/asset_passwords/789 |
| Create | POST /api/v1/asset_passwords with { "asset_password": { ... } } |
| Update | PUT /api/v1/asset_passwords/789 |
| Delete | DELETE /api/v1/asset_passwords/789 (requires DELETE permission) |
GET on a single password returns the plaintext password value in the response body. Treat every response from this endpoint as sensitive.
See references/api.md for the complete endpoint catalog with request/response examples.
Never include actual password values in:
When displaying password information, always mask the actual value:
Password: Domain Admin - ACME
Username: [email protected]
Password: **************
URL: https://dc01.acme.local
async function createSecurePassword(companyId, data) {
const password = await createAssetPassword({
company_id: companyId,
name: data.name,
username: data.username,
password: data.password,
url: data.url,
description: `Created: ${new Date().toLocaleDateString()}\nPurpose: ${data.purpose}`,
password_type: data.type,
password_folder_id: data.folderId
});
return password;
}
Hudu keeps no rotation history of its own — append rotation dates to description so the audit trail survives.
async function rotatePassword(passwordId, newPassword, reason) {
// Get current password info (for logging, not the value)
const current = await getAssetPassword(passwordId);
// Update with new password
const updated = await updateAssetPassword(passwordId, {
password: newPassword,
description: `${current.description || ''}\nRotated: ${new Date().toLocaleDateString()} - ${reason}`
});
return updated;
}
The API filters only on name and company_id; matching against description or URL requires a client-side pass.
async function findPasswordsForServer(companyId, serverName) {
const passwords = await fetchAssetPasswords({ company_id: companyId });
return passwords.filter(p =>
p.name.toLowerCase().includes(serverName.toLowerCase()) ||
p.description?.toLowerCase().includes(serverName.toLowerCase()) ||
p.url?.toLowerCase().includes(serverName.toLowerCase())
);
}
async function findStalePasswords(companyId, daysOld = 90) {
const cutoffDate = new Date();
cutoffDate.setDate(cutoffDate.getDate() - daysOld);
const passwords = await fetchAssetPasswords({ company_id: companyId });
return passwords
.filter(p => new Date(p.updated_at) < cutoffDate)
.map(p => ({
id: p.id,
name: p.name,
username: p.username,
lastUpdated: p.updated_at,
daysSinceUpdate: Math.floor(
(new Date() - new Date(p.updated_at)) / (1000 * 60 * 60 * 24)
)
}));
}
async function generatePasswordReport(companyId) {
const passwords = await fetchAssetPasswords({ company_id: companyId });
const byType = {};
passwords.forEach(p => {
const type = p.password_type || 'Uncategorized';
if (!byType[type]) byType[type] = [];
byType[type].push({
name: p.name,
username: p.username,
url: p.url,
lastUpdated: p.updated_at
// NEVER include actual password values in reports
});
});
return byType;
}
asset_passwords, not passwords. The UI name and the API name differ; /api/v1/passwords does not exist.url appears twice in responses with different meanings: the credential's login URL on create/update, and the Hudu record URL in the read payload's metadata. Do not round-trip it blindly.company_id rather than sweeping the tenant.See references/errors.md for the complete error and validation table plus a secure error-handling pattern.
otp_secret fieldWhat SKILL.md sets; muted values are Claude Code's defaults
When storing, retrieving, rotating, or auditing credentials in Hudu, or when a request returns 403 on a password endpoint. Use when: hudu password, hudu credential, credential lookup, password management, secure credentials, hudu credentials, password storage, credential documentation, password access, or asset password.
Three short reads, in order
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin hudu6 skills in this plugin
/api-patternsHudu API PatternsHudu REST API fundamentals: x-api-key authentication, base URL and /api/v1/ structure, granular API key permission levels, UI-vs-API resource naming differences, query-parameter filtering, page-based pagination, the 300 req/min rate limit, and HTTP status/error semantics.
/articlesHudu ArticlesHudu knowledge base articles: HTML content format, company-scoped vs global articles, article folders (including nesting), drafts vs published, the /api/v1/articles endpoint surface, and search, templating, and documentation-health patterns.
/assetsHudu AssetsHudu assets and asset layouts: the layout-as-template model, custom field types, the `custom_fields` key/value array shape, archiving vs deletion, company scoping, and filter patterns across /api/v1/assets and /api/v1/asset_layouts.
/companiesHudu CompaniesHudu companies (clients/organizations): company field reference, parent/child hierarchy, PSA integration matching via id_in_integration, the /api/v1/companies CRUD plus archive/unarchive endpoints, onboarding and offboarding workflows, and how companies scope assets, passwords, articles, and websites.
/websitesHudu WebsitesHudu website records: CRUD via /api/v1/websites, monitoring and pause/disable fields, SSL/TLS certificate tracking, email security status (DMARC, DKIM, SPF), DNS record fields, company linkage, and website validation errors.
Other plugins' skills for the same job