Skip to content

Commit 29194c1

Browse files
committed
added security command
1 parent 3b171a6 commit 29194c1

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

src/features/commands.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,33 @@ Have a look at these resources on how to ask good questions:
373373
- [Coding Killed the Cat: "How to Ask for Programming Help"](http://wp.me/p2oIwo-26)
374374
- [Stack Overflow: "How do I ask a good question?"](https://stackoverflow.com/help/how-to-ask)
375375
- [Eric S. Raymond; "How To Ask Questions The Smart Way"](https://git.io/JKscV)
376+
`,
377+
color: EMBED_COLOR,
378+
},
379+
],
380+
});
381+
},
382+
},
383+
{
384+
words: [`!security`],
385+
help: `general information around managing security for a web application.`,
386+
category: "Reactiflux",
387+
handleMessage: (msg) => {
388+
msg.channel.send({
389+
embeds: [
390+
{
391+
title: "Security Tips",
392+
type: EmbedType.Rich,
393+
description: `Managing security in a web application requires a proactive approach.
394+
395+
Some points to consider:
396+
397+
- Don't use create-react-app it is [no longer recommended](https://react.dev/blog/2025/02/14/sunsetting-create-react-app).
398+
- Set up automated alerts via a service like [dependabot](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide) to be notified of new disclosures.
399+
- Review packages either by inspecting the code or use a service like [Snyk](https://security.snyk.io/vuln/npm).
400+
- Proactively keep your technology up to date – (everything not just packages).
401+
- Test your code – follow safe practices (like sanitising errors) and ensure you audit features and functionality before pushing to prod.
402+
- Set up multi-factor authentication and avoid re-using passwords by implementing something like a password manager to avoid credential stuffing attacks.
376403
`,
377404
color: EMBED_COLOR,
378405
},

0 commit comments

Comments
 (0)