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

[WR-317] access policy plugin data #267

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

house9
Copy link
Contributor

@house9 house9 commented Dec 1, 2021

@@ -1025,6 +1025,9 @@ type AccessPolicy struct {
ApprovalRoles []Role `json:"approval_roles"`
RequiredApprovals int `json:"required_approvals"`
MaximumAccessDurationSeconds int `json:"max_access_duration_seconds"`
PluginType string `json:"plugin_type"`
PluginID string `json:"plugin_id"`
PluginSource string `json:"plugin_source"`
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: now that I think about it more, PluginApprovalSource seems more intention revealing to me (and less confusing without comments to help distinguish between Type/Source)

Copy link
Contributor

Choose a reason for hiding this comment

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

PluginProcessLocation it is both approval and creation of requests. So maybe more broad than approval source. I am ending up with 5 word names. PluginFlowManagementDataReferenceLocation 🤣

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PluginFlowManagementDataReferenceLocation 🤣

😄

I am fine with anything at this point, I did comment the attributes in identity service api just not here.
Only downside to PluginApprovalSource is it doesn't tell the entire story (creation), but at the same time its probably enough info to know what it is for.

are either of these any better or maybe more confusing?
PluginMPCFlowSource, PluginMPCProcessingSource

Copy link
Contributor

Choose a reason for hiding this comment

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

both PluginMPCFlowSource, PluginMPCProcessingSource introduce new concepts / names (Flow and Processing), so at least to me are more confusing then Approval. For TozID mpc requests, the approval source is a role, I'd argue for Jira the approval source is a board.

Copy link
Contributor

Choose a reason for hiding this comment

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

after more thunking....PluginMPCFlowSource is a better name, and any confusion can be mitigated with a helpful comment

@house9 house9 merged commit 88a26b5 into feature/mpc-jira-plugin Dec 2, 2021
@house9 house9 deleted the WR-317-pam-settings-plugin branch December 2, 2021 17:37
pirtleshell pushed a commit that referenced this pull request Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants