Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create: Get-TssSecretState #17

Closed
wsmelton opened this issue Dec 23, 2020 · 0 comments
Closed

Create: Get-TssSecretState #17

wsmelton opened this issue Dec 23, 2020 · 0 comments
Assignees
Labels
secrets Endpoint tag secrets
Projects

Comments

@wsmelton
Copy link
Contributor

wsmelton commented Dec 23, 2020

Endpoint: /secrets/:id/state
Class name: TssSecretState

This endpoint was added in 10.9.32 and offers the ability to validate permissions against a given secret. The main property of interest is the secretState that is a special object type in the REST API:

SecretAccessRequired: string , x ∈ { None , RequiresApproval , RequiresCheckout , RequiresComment , RequiresDoubleLockPassword , CreateDoubleLockPassword , 
DoubleLockNoAccess , CannotView , RequiresUndelete , RequiresCheckoutPendingRPC , RequiresCheckoutAndComment }

Sample output of the endpoint:

{
    "id": 37,
    "secretName": "Secret Require Checkout",
    "folderId": 32,
    "folderName": "Demo",
    "secretState": "RequiresCheckout",
    "isCheckedOut": null,
    "checkedOutUserId": null,
    "checkOutMinutesRemaining": null,
    "checkedOutUserDisplayName": null,
    "isCheckedOutByCurrentUser": null,
    "checkOutIntervalMinutes": 5,
    "role": null,
    "actions": [
        "ViewAudit",
        "ViewGeneralDetails",
        "EditShare",
        "Edit",
        "ViewLaunchers",
        "Checkout",
        "ViewShare",
        "ViewSettings",
        "ViewSecurity",
        "ViewExpiration",
        "Delete",
        "EditSecurity",
        "EditExpiration",
        "Copy",
        "ConvertTemplate",
        "ViewDependencies",
        "EditDependencies",
        "ViewRpc",
        "EditRpc",
        "ViewHooks",
        "EditHooks",
        "Expire"
    ],
    "passwordChangePending": null,
    "isActive": null
}
@wsmelton wsmelton created this issue from a note in Secrets (To-Do) Dec 23, 2020
@wsmelton wsmelton self-assigned this Dec 23, 2020
@wsmelton wsmelton added the secrets Endpoint tag secrets label Dec 23, 2020
@wsmelton wsmelton added this to the 0.5 Release milestone Dec 23, 2020
@wsmelton wsmelton changed the title Create: Test-TssSecretState Create: Get-TssSecretState Dec 28, 2020
@wsmelton wsmelton moved this from To-Do to In Progress in Secrets Mar 2, 2021
@wsmelton wsmelton moved this from In Progress to Done in Secrets Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
secrets Endpoint tag secrets
Projects
No open projects
Secrets
  
Done
Development

No branches or pull requests

1 participant