Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
•
IT Security NachrichtenBetrüger phishen mit vermeintlicher Reisebestätigung - IT-Markt(24.09.2026 um 23:41 Uhr)
••
Sicherheitslücken (CVE)IT Security News Daily Summary 2026-09-24(24.09.2026 um 23:55 Uhr)
•
Sicherheitslücken (CVE)IT Security News Roundup: 2026-09-24(24.09.2026 um 23:57 Uhr)
•
Sicherheitslücken (CVE)IT Security News Hourly Summary 2026-09-25 00h : 9 posts(25.09.2026 um 00:00 Uhr)
•••
IT NachrichtenMicrosoft puts Brad Smith in charge of communications(25.09.2026 um 00:08 Uhr)
•••
IT Security NachrichtenBetrüger phishen mit vermeintlicher Reisebestätigung - IT-Markt(24.09.2026 um 23:41 Uhr)
••
Sicherheitslücken (CVE)IT Security News Daily Summary 2026-09-24(24.09.2026 um 23:55 Uhr)
•
Sicherheitslücken (CVE)IT Security News Roundup: 2026-09-24(24.09.2026 um 23:57 Uhr)
•
Sicherheitslücken (CVE)IT Security News Hourly Summary 2026-09-25 00h : 9 posts(25.09.2026 um 00:00 Uhr)
•••
IT NachrichtenMicrosoft puts Brad Smith in charge of communications(25.09.2026 um 00:08 Uhr)
••
Intelligence View
⚡ tsecurity.de Intelligence

1Password, GitHub, and Git CLI with Multiple Users

Do you use the git, github, and 1password CLI? I do! I want to be able to act as different users in certain directories to support my personal projects (~/code) and my work projects (~/oss) automatically, because, you know, developers…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Do you use the git, github, and 1password CLI? I do!



I want to be able to act as different users in certain directories to support my personal projects (~/code) and my work projects (~/oss) automatically, because, you know, developers automate everything.



This means I want to be able to run gh commands as the correct user, as well as have git commands pick the correct SSH key.



If you want to have a single dotfiles repo for both work and personal development, this should give you something to follow.




⚠️ If you use a single GitHub account for everything, this article might not be very helpful for you.







Prerequisites



Tools you’ll need to make all this work:





You’ll also want to designate some folders to hold projects. This guide will use the following structure:





  • ~/code - where I do personal development on my personal machine


  • ~/oss - where I do all my work open source code (repros, demos, etc.)






1) Set a global default (personal)



In ~/.gitconfig:




[user]
name = Sean Boult
email = [email protected]

[includeIf "gitdir:~/oss/"]
path = ~/.gitconfig-work






So we’ve added the default user in the [user] block and added an includeIf (docs) block that specifies that inside ~/oss we’ll make sure to load the config options in ~/.gitconfig-work.



Given that you need to be “inside a git directory” based on the gitdir clause, it means that ~/oss should be a valid Git directory.



To do that, run this in ~/oss:




# make ~/oss a valid git repo
git init






We will also want to create a .gitignore file to not track anything in this directory.




# ~/oss/.gitignore
# Sentinel repo: exists only so includeIf matches when cwd is ~/oss
# Ignore all subdirs (they're separate repos)
*









2) Put work identity in a separate config



Create ~/.gitconfig-work:




[user]
name = Sean Boult
email = <yourWorkEmail> # replace this with your email
# optional ssh key signing
# signingkey = ~/.ssh/id_rsa.pub









3) Make SSH key selection automatic



Now configure SSH so Git will pick the right key based on the repo you are in.



In ~/.ssh/config:




# Github and we default personal
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa.personal
IdentitiesOnly yes






Then, in ~/.gitconfig-work, add:




[core]
sshCommand = ssh -i ~/.ssh/id_rsa -o IdentitiesOnly=yes






At this point:




  • Any repo elsewhere uses your personal Git identity and personal SSH key.

  • Any repo under ~/oss uses your work Git identity and work SSH key.









1Password CLI Plugin



The next step is to allow the gh CLI to know what directory you’re in and use the right GitHub PAT (personal access token).



To put it simply, I have two PATs in my 1Password vault: gh-pat-cli (personal) and gh-pat-cli-sboult (work/oss). In the op setup, instruct 1Password to use the gh-pat-cli-sboult PAT so that when you’re in ~/oss, it uses the correct PAT to authenticate with the GitHub CLI.





Use 1Password to securely authenticate the GitHub CLI is a helpful doc if you get stuck.






Work repos (~/oss)



Example:




cd ~/oss

git clone [email protected]:awslabs/mcp.git
# or
# gh repo clone awslabs/mcp






Once the repo is under ~/oss/, Git uses:




  • your work user.name / user.email

  • your work SSH key



Then normal commands work:




git remote -v
git push

gh pr list









Personal repos



Outside of ~/oss, everything uses your default (personal) identity.



Example:




git clone [email protected]:Hacksore/test.git
# or
# gh repo clone test









That’s it! You should now be able to reproduce the setup I have.



Happy coding 😊!

SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - 1Password, GitHub, and Git CLI with Multiple Users
id: d67f0616-1eef-42fd-9bb0-eb25bdeaa192
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-25
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-25"
        description = "YARA Signature for "
    strings:
        $str = "1Password, GitHub, and Git CLI" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("1Password GitHub and Git CLI with Multip")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*1Password GitHub and Git CLI with Multip*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "1Password GitHub and Git CLI with Multip"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich 1Password, GitHub, and Git CLI with Mult.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten 1Password, GitHub, and Git CLI with Multiple Users

Thematisch verwandte Begriffe: 1Password, GitHub, with, Multiple · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-82585 | The Botslab G980H dash camera firmware transmits sensitive information o…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel • Rechts: nächster Artikel • unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...
↗ Original-Quelle