Compare commits
7 Commits
acb13112c4
...
v0.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
0f0ba243d5
|
|||
|
03031b5ca8
|
|||
|
07a101488b
|
|||
|
69d6a42f5c
|
|||
|
d85f72fc92
|
|||
|
cabb8291cb
|
|||
|
135712e042
|
20
.github/workflows/build-release.yaml
vendored
20
.github/workflows/build-release.yaml
vendored
@@ -7,7 +7,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
- '.gitea/workflows/**'
|
- '.github/workflows/**'
|
||||||
- 'md-pdf.ron'
|
- 'md-pdf.ron'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -22,11 +22,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install Fonts
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y fonts-liberation
|
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
@@ -40,7 +35,7 @@ jobs:
|
|||||||
tar -xJf typst.tar.xz --strip-components=1 -C /usr/local/bin/ typst-x86_64-unknown-linux-musl/typst
|
tar -xJf typst.tar.xz --strip-components=1 -C /usr/local/bin/ typst-x86_64-unknown-linux-musl/typst
|
||||||
typst --version
|
typst --version
|
||||||
|
|
||||||
- name: Install Typst & md-pdf (Rust)
|
- name: Install md-pdf (Rust)
|
||||||
run: |
|
run: |
|
||||||
cargo install md-pdf
|
cargo install md-pdf
|
||||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||||
@@ -66,10 +61,19 @@ jobs:
|
|||||||
echo "tag=$NEW_TAG" >> $GITHUB_OUTPUT
|
echo "tag=$NEW_TAG" >> $GITHUB_OUTPUT
|
||||||
echo "Next version : $NEW_TAG"
|
echo "Next version : $NEW_TAG"
|
||||||
|
|
||||||
|
- name: Push Tag
|
||||||
|
run: |
|
||||||
|
git config user.name "Gitea Actions"
|
||||||
|
git config user.email "actions@gitea.local"
|
||||||
|
git tag ${{ steps.version.outputs.tag }}
|
||||||
|
git push origin ${{ steps.version.outputs.tag }}
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# Create release and upload PDF
|
# Create release and upload PDF
|
||||||
# Note: softprops works very well on recent Gitea
|
# Note: softprops works very well on recent Gitea
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v1
|
||||||
if: ${{ steps.version.outputs.tag != '' }} # Safety check
|
if: ${{ steps.version.outputs.tag != '' }} # Safety check
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.version.outputs.tag }}
|
tag_name: ${{ steps.version.outputs.tag }}
|
||||||
|
|||||||
18
README.md
18
README.md
@@ -1,3 +1,13 @@
|
|||||||
|
---
|
||||||
|
title: "PIS"
|
||||||
|
subtitle: "Policy for Internal Security"
|
||||||
|
author: "Rémi Heredero "
|
||||||
|
language: "en"
|
||||||
|
tags: ["gpg", "ssh", "x509", "YubiKey", "security"]
|
||||||
|
toc: false
|
||||||
|
template: "simple"
|
||||||
|
---
|
||||||
|
|
||||||
# Policy for Internal Security
|
# Policy for Internal Security
|
||||||
This repo describes my P.I.S. (**P**olicy for **I**nternal **S**ecurity).
|
This repo describes my P.I.S. (**P**olicy for **I**nternal **S**ecurity).
|
||||||
You'll find my personal guidelines for SSH / GPG on YubiKey and how to configure and create a key / certificate.
|
You'll find my personal guidelines for SSH / GPG on YubiKey and how to configure and create a key / certificate.
|
||||||
@@ -195,14 +205,6 @@ This creates the file `id_ed25519_sk-keyring-cert.pub` that is the certificate t
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# x509
|
|
||||||
|
|
||||||
## Master YubiKey
|
|
||||||
I create a certificate in PIV slot 9a with Yubico authenticator. This CA would be used as a Root CA for my server.
|
|
||||||
TODO fix with XCA
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
# Troubleshooting
|
# Troubleshooting
|
||||||
## GPG
|
## GPG
|
||||||
Sometimes, for unknown (for me) reason, you need to kill the gpg-agent to be able to use the YubiKey again.
|
Sometimes, for unknown (for me) reason, you need to kill the gpg-agent to be able to use the YubiKey again.
|
||||||
|
|||||||
Reference in New Issue
Block a user