Class: Infrawrench::CredentialHygieneNamespace
- Inherits:
-
Object
- Object
- Infrawrench::CredentialHygieneNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.credential_hygiene
Instance Method Summary collapse
-
#get(org_id: nil, window_days: nil, request_options: nil) ⇒ Hash
Credential hygiene report.
-
#initialize(transport) ⇒ CredentialHygieneNamespace
constructor
private
A new instance of CredentialHygieneNamespace.
Constructor Details
#initialize(transport) ⇒ CredentialHygieneNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CredentialHygieneNamespace.
5335 5336 5337 |
# File 'lib/infrawrench/client.rb', line 5335 def initialize(transport) @transport = transport end |
Instance Method Details
#get(org_id: nil, window_days: nil, request_options: nil) ⇒ Hash
Credential hygiene report
API keys nobody uses, SSH keys nothing references, and members holding write permissions they have never exercised — derived entirely from data the server already holds. No provider call and nothing to enable.
The audit log only witnesses writes. Reading a resource list or a cost
graph leaves no audit row by design, so this report draws no conclusion
about read permissions: an absence of evidence about them proves nothing.
permissionFindingsWithheld is set when the organization does not yet
have enough audit history for the unused-permission finding to be
meaningful. Both are load-bearing — a governance report that overclaims is
worse than none.
Gated on audit:read rather than a permission of its own: every fact here
is already reachable by anyone who can read the audit log, so this is a
lens rather than a new disclosure.
Requires permission: audit:read.
GET /api/org/orgId/credential-hygiene
Raises on 400: Bad request
5369 5370 5371 5372 5373 5374 5375 5376 5377 |
# File 'lib/infrawrench/client.rb', line 5369 def get(org_id: nil, window_days: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/credential-hygiene", path_params: { "orgId" => org_id }, query: { "windowDays" => window_days }, request_options: ) end |