Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rcfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
rcfiles
Commits
619ea42d
Commit
619ea42d
authored
3 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Permissions on secure templated files.
parent
040b32b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+28
-16
28 additions, 16 deletions
Makefile
with
28 additions
and
16 deletions
Makefile
+
28
−
16
View file @
619ea42d
...
...
@@ -5,15 +5,18 @@ download = $(curl) --output $@
mkd
=
mkdir
-p
$$(
dirname
$@
)
.PHONY
:
all
all
:
.ssh/gitlab_ed25519
all
:
.ssh/gitlab_fdo_ed25519
all
:
.ssh/gitlab_toptal_ed25519
all
:
.ssh/github_ed25519
all
:
.ssh/shore_ecdsa
all
:
.ssh/shore_ed25519
all
:
.ssh/shore_rsa
all
:
.ssh/smile_ed25519
all
:
.ssh/smile_rsa
all
:
ssh-keys
.PHONY
:
ssh-keys
ssh-keys
:
.ssh/gitlab_ed25519
ssh-keys
:
.ssh/gitlab_fdo_ed25519
ssh-keys
:
.ssh/gitlab_toptal_ed25519
ssh-keys
:
.ssh/github_ed25519
ssh-keys
:
.ssh/shore_ecdsa
ssh-keys
:
.ssh/shore_ed25519
ssh-keys
:
.ssh/shore_rsa
ssh-keys
:
.ssh/smile_ed25519
ssh-keys
:
.ssh/smile_rsa
.ssh/%_rsa
:
Documents/Database.kdbx
$(
mkd
)
...
...
@@ -51,38 +54,47 @@ all: .ssh/authorized_keys
$(
mkd
)
-$(
ansible-local
)
-m
authorized_key
-a
"user=
$$(
whoami
)
key='
$$(
cat .ssh/localhost.pub
)
' key_options='from=
\"
127.0.0.1/8
\"
'"
all
:
.gnupg/trustdb.gpg
.PHONY
:
secure-templates
all
:
secure-templates
secure-templates
:
.gnupg/trustdb.gpg
.gnupg/trustdb.gpg
:
Documents/Database.kdbx
ph show
--field
'Notes'
'GPG/D3B913DE36AB5565DCAC91C6A322378C61339ECD'
| gpg
--import
echo
'D3B913DE36AB5565DCAC91C6A322378C61339ECD:6:'
| gpg
--import-ownertrust
chmod
600
'$@'
all
:
.bashrc.private
secure-templates
:
.bashrc.private
.bashrc.private
:
.bashrc.private.j2 Documents/Database.kdbx
$(
mkd
)
template
'$<'
>
'$@'
chmod
600
'$@'
all
:
.config/python-gitlab.cfg
secure-templates
:
.config/python-gitlab.cfg
.config/python-gitlab.cfg
:
.config/python-gitlab.cfg.j2 Documents/Database.kdbx
$(
mkd
)
template
'$<'
>
'$@'
chmod
600
'$@'
all
:
.config/gem/gemrc
secure-templates
:
.config/gem/gemrc
.config/gem/gemrc
:
.config/gem/gemrc.j2 Documents/Database.kdbx
$(
mkd
)
template
'$<'
>
'$@'
chmod
600
'$@'
all
:
.bundle/config
secure-templates
:
.bundle/config
.bundle/config
:
.bundle/config.j2 Documents/Database.kdbx
$(
mkd
)
template
'$<'
>
'$@'
chmod
600
'$@'
all
:
.aws/credentials
secure-templates
:
.aws/credentials
.aws/credentials
:
.aws/credentials.j2 Documents/Database.kdbx
$(
mkd
)
template
'$<'
>
'$@'
chmod
600
'$@'
all
:
.netrc
secure-templates
:
.netrc
.netrc
:
.netrc.j2 Documents/Database.kdbx
$(
mkd
)
template
'$<'
>
'$@'
chmod
600
'$@'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment