You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve written a lot of PowerShell scripts over the years—some for quick fixes, others that still run in production today. And like most people, I’ve had moments where convenience won out over best practice. Hardcoding a password “just this once,” or dropping an API key into an environment variable because it was easier than setting up something more secure. It worked… until I started thinking about what could happen if one of those scripts ever leaked. That’s when I found [1Password’s CLI](https://developer.1password.com/docs/cli), and it completely changed how I handle credentials in my automation.
13
+
I’ve written a lot of PowerShell scripts over the years—some for quick fixes, others that still run in production today. And like most people, I’ve had moments where convenience won out over best practice. Hard-coding a password “just this once,” or dropping an API key into an environment variable because it was easier than setting up something more secure. It worked… until I started thinking about what could happen if one of those scripts ever leaked. That’s when I found [1Password’s CLI](https://developer.1password.com/docs/cli), and it completely changed how I handle credentials in my automation.
14
14
15
-
### Why Hardcoding or Env Vars Aren’t Safe
15
+
### Why Hard-coding or Env Vars Aren’t Safe
16
16
17
17
I won’t lie—using environment variables or plaintext passwords in scripts feels easy at first. You don’t need to think much, and your automation “just works.” But convenience comes at a cost:
18
18
@@ -24,7 +24,7 @@ Every time I reviewed old scripts, I cringed a little at what I had left lying a
24
24
25
25
### Enter 1Password CLI
26
26
27
-
The 1Password Command Line Interface (CLI) lets you interact with your 1Password vault directly from scripts. No more hardcoding, no more risky environment variables. Instead, you can:
27
+
The 1Password Command Line Interface (CLI) lets you interact with your 1Password vault directly from scripts. No more hard-coding, no more risky environment variables. Instead, you can:
28
28
29
29
- Retrieve credentials on the fly with PowerShell.
30
30
- Keep all secrets in one secure, audited location.
@@ -77,6 +77,6 @@ This workflow keeps both my scripts and my sanity intact.
77
77
78
78
### Final Thoughts
79
79
80
-
I’ve learned the hard way that convenience can be costly when it comes to secrets. Hardcoding passwords or using environment variables might feel fine today, but they’re a ticking time bomb for tomorrow. 1Password CLI has become an essential part of my PowerShell toolkit, letting me automate securely without compromise.
80
+
I’ve learned the hard way that convenience can be costly when it comes to secrets. Hard-coding passwords or using environment variables might feel fine today, but they’re a ticking time bomb for tomorrow. 1Password CLI has become an essential part of my PowerShell toolkit, letting me automate securely without compromise.
81
81
82
82
If you’re still embedding credentials in your scripts, give [1Password CLI](https://developer.1password.com/docs/cli) a try. It might just change the way you think about automation, like it did for me.
Copy file name to clipboardExpand all lines: _posts/2025-10-11-task-management-with-todoist-and-outlook.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,3 +21,5 @@ Retrieves all your upcoming meetings for the next 7 days.
21
21
Connects to Todoist.
22
22
Pulls all your tasks for the next 7 days.
23
23
Compares each Outlook meeting with Todoist tasks, and if a task with the same name as the Outlook meeting is not found, it creates one in Todoist.
24
+
25
+
You can get the module from my Git repo [Outlook to Todoist](https://github.com/ATXcoder/Outlook-to-Todoist){:data-umami-event="Visit GitHub" target="_blank" rel="noopener" data-umami-event-url="https://github.com/ATXcoder/Outlook-to-Todoist"}
0 commit comments