-
Notifications
You must be signed in to change notification settings - Fork 145
Delegated passticket API #4925
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
base: docs-staging
Are you sure you want to change the base?
Delegated passticket API #4925
Changes from 1 commit
fff495f
8ec850d
f218a66
0df2edb
8df9323
13a9a73
4291f0a
a6e5ccb
fa1da9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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`. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. priviledge -> privilege
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't be
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes my bad - thank you for picking that up
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes my bad for using 4 as I had done tab indents. |
||
| ``` | ||
|
|
||
| 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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch - fixed in the latest commit. |
||
| } | ||
| ``` | ||
|
|
||
| -**`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). | ||
|
|
||
There was a problem hiding this comment.
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.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch !
I've added a section to https://github.com/zowe/docs-site/pull/4925/changes#diff-4aa9da9e24586a19b2d4ccf057707a6f4b9f0f7cb559d83c4c8339e0ad437d39.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!