Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/user-guide/api-mediation/configuration-authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ In Zowe's API Mediation Layer, system administrators can limit access to service

- [Limiting access to information or services in the API Catalog](./configuration-limiting-access-to-info-or-services-in-api-catalog.md)
- [Configuring SAF resource checking](./configuration-saf-resource-checking.md)
- [Configurint Health Endpoint Protection](./configuration-health-endpoint-protection.md)
- [Configuring Health Endpoint Protection](./configuration-health-endpoint-protection.md)
- [Configuring delegated passticket generation](./configuration-delegated-passticket.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Configuring Delegated Passticket Generation

:::info Role: system administrator
:::

As a system administrator, you can enable the endpoint of the API Gateway that allows passticket generation for a delegated e-mail. This API allows the authenticated user to create a passticket for another user, so has the potential be be misused for priviledge escalation or impersonation. For that reason the API authentication must be done with a client certificate for a userID who has `READ` access to the class `ZOWE.APIML.DELEGATE.PASSTICKET` and the endpoint must be enabled by setting `zowe.components.gateway.apiml.security.delegatePassticket` parameter to `true`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this property should also be listed here docs/appendix/zowe-yaml-configuration.md.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

priviledge -> privilege

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch - thank you. Fix in the latest PR commit.


Use the following procedure to enable the delegated passticket endpoint of the API Gateway:

1. Open the file `zowe.yaml`.
2. Configure the following property:

* `components.gateway.apiml.security.delegatedPassticket`
This property defines whether the endpoint `/gateway/api/v1/auth/delegate/passticket` is available

:::note
The default value of this parameter is `false`.
:::

**Example:**
```yaml
components:
gateway:
apiml:
gateway:
security:
delegatePassticket: false
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't be true in this example?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes my bad - thank you for picking that up

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an indentation of 4 spaces, which is fine. But we are usually using 2 spaces in examples. I would suggest to use 2 spaces.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes my bad for using 4 as I had done tab indents.
2 is the right indent for yaml so I've fixed this in the latest commit

```

The userID that makes the call to the API must have `READ` access to the class `ZOWE.APIML.DELEGATE.PASSTICKET`. For more information on how to configure this see [Configuring User permission call delegated passticket API](#configuring-user-permission-to-generate-delegated-passtickets)

## Configuring user permission to generate delegated passtickets

The delegated passticket API must be called with a client certificate. The z/OS user ID associated with the certificate must have `READ` permission for the `ZOWE.APIML.DELEGATE.PASSTICKET` class.

<details>

<summary>Click here for command details about configuring user access using RACF</summary>

In your ESM command line interface or other security environment, perform the following steps:

1. Define the resource class by running the command:

```racf
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we include the equivalent commands for TSS and ACF2 as well?

RDEFINE ZOWE APIML.DELEGATE.PASSTICKET UACC(NONE)
```

2. Permit the user associated with the client certificate `READ` access
```racf
PERMIT APIML.DELEGATE.PASSTICKET CLASS(ZOWE) ID(<userID>) ACCESS(READ)
SETROPTS RACLIST(ZOWE) REFRESH
```

- **`userID`**
The userID associated with the client certificate calling the API

3. (optional) To see the all permissions for users
```racf
RLIST ZOWE APIML.DELEGATE.PASSTICKET AUTHUSER
```

</details>

## Calling the /auth/delegate/passticket API

To call the API `GET` `/gateway/api/v1/auth/delegate/passticket` the body should be `JSON`

```
{
"applId": "APPLID",
"emailId": "email@domain.com"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch - fixed in the latest commit.
Thank you !

}
```

-**`APPLID`**
The applicationID associated with the address space the passticket is being generated for. As an example, to create a passticket for z/OSMF this value will be `IZUDFLT`

-**`emailId`**
The e-mail ID of the user that is associated with the z/OS userID, see [ESM configuration](../../extend/extend-apiml/api-mediation-oidc-authentication.md#esm-configuration-prerequisites).

Loading