-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add the /secret command for encrypted-message #382
Conversation
GitHub Action status on 5438cf0 generated by comment-failure-action Source code security scan using Bandit
Lint, format and test code
Build containers CINo jobs failed 👍 |
GitHub Action status on ffc67d7 generated by comment-failure-action Source code security scan using Bandit
Lint, format and test codeNo jobs failed 👍 Build containers CINo jobs failed 👍 |
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.
Nice work Max and super handy!
ttl = view["state"]["values"]["product"]["secret_ttl"]["selected_option"]["value"] | ||
|
||
# Encrypted message API | ||
endpoint = "https://encrypted-message.cdssandbox.xyz/encrypt" |
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.
Super, super minor thing which we don't need to change, but the URL https://encrypted-message.cdssandbox.xyz might be better to live in a variable or secret since you are anyways using it in multiple places throughout your code. Again super minor.
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.
Agreed - I hardcoded it for now but should be made into an env in the future
This PR adds the
/secret
command to generate one time encrypted message linksUse command
Select options
Get link to share: