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

(chatbot): support guardrails #20788

Closed
2 tasks
stevetile opened this issue Jun 19, 2022 · 1 comment · Fixed by #24114 · 4 remaining pull requests
Closed
2 tasks

(chatbot): support guardrails #20788

stevetile opened this issue Jun 19, 2022 · 1 comment · Fixed by #24114 · 4 remaining pull requests
Labels
@aws-cdk/aws-chatbot Related to AWS Chatbot feature-request A feature should be added or improved. p2

Comments

@stevetile
Copy link

Describe the feature

In the chatbot UI in AWS I'm able to set guardrails as below.

Screen Shot 2022-06-19 at 6 02 11 PM

However, this does not seem possible in CDK under SlackChannelConfiguration as per https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_chatbot.SlackChannelConfiguration.html.

Please add the ability to specify guardrails.

Use Case

To provide a safety net such that chatbot isn't able to perform dangerous actions on my account

Proposed Solution

Allow adding guardrails as part of the config e.g.

const slackChannel = new chatbot.SlackChannelConfiguration(this, slackName, {
      slackChannelConfigurationName: 'X',
      slackWorkspaceId: 'Y',
      slackChannelId: 'Z',
      logRetention: RetentionDays.ONE_WEEK,

      guardrails: ['AWSAccountActivityAccess', 'CloudWatchReadOnlyAccess']
    });

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.28.1

Environment details (OS name and version, etc.)

OSX, NodeJS (Typescript)

@stevetile stevetile added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jun 19, 2022
@github-actions github-actions bot added the @aws-cdk/aws-chatbot Related to AWS Chatbot label Jun 19, 2022
@kaizencc kaizencc changed the title (chatbot.SlackChannelConfiguration): (Add Support for guardrails) (chatbot): support guardrails Jun 20, 2022
@kaizencc kaizencc added p2 and removed needs-triage This issue or PR still needs to be triaged. labels Jun 20, 2022
@kaizencc kaizencc removed their assignment Jun 20, 2022
@mergify mergify bot closed this as completed in #24114 Feb 12, 2023
mergify bot pushed a commit that referenced this issue Feb 12, 2023
Support defining guardrail policies when creating a SlackChannelConfiguration
Closes #20788

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment