Skip to content

Normal users should not be able to create/end leases for other people #137

Open
@joshmarsh

Description

@joshmarsh

Is your feature request related to a problem? Please describe.
While authenticating with temporary sts credentials mapped to a cognito user called testuser, I observed the following behavior.

~ dce leases create --budget-amount 100.0 --budget-currency USD --email jane.doe@optum.com --principle-id jdoe99
Lease created: {"accountId":"XXX","budgetAmount":100,"budgetCurrency":"USD","budgetNotificationEmails":["jane.doe@optum.com"],"createdOn":1574347343,"expiresOn":1574952143,"id":"d7586b82-2b57-4ba0-9469-ba59d865e823","lastModifiedOn":1574347343,"leaseStatus":"Active","leaseStatusModifiedOn":1574347343,"leaseStatusReason":"Active","principalId":"jdoe99"}
~ dce leases end --account-id XXX --principle-id jdoe99
Lease ended

Describe the solution you'd like
Respond with 403 for any leases requests involving a principaID that is not your own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions