Commit eaddb4be authored by nimrod's avatar nimrod
Browse files

Merge branch 'secure-templates'

parents 3d4dfbb4 bd12d853
Loading
Loading
Loading
Loading

.aws/credentials.j2

0 → 100644
+8 −0
Original line number Diff line number Diff line
# vim: ft=cfg
[shore]
aws_access_key_id = {{ run(["ph", "show", "--field", "UserName", "shore.co.il/AWS CLI"])["stdout"] }}
aws_secret_access_key = {{ run(["ph", "show", "--field", "Password", "shore.co.il/AWS CLI"])["stdout"] }}

[smile]
aws_access_key_id = {{ run(["ph", "show", "--field", "UserName", "Smile/AWS CLI"])["stdout"] }}
aws_secret_access_key = {{ run(["ph", "show", "--field", "Password", "Smile/AWS CLI"])["stdout"] }}

.bashrc.private.j2

0 → 100644
+7 −0
Original line number Diff line number Diff line
# vim: ft=bash
export GITLAB_TOKEN='{{ run(["ph", "show", "--field", "Password", "shore.co.il/GitLab token"])["stdout"] }}'
export GITLAB_PRIVATE_TOKEN="$GITLAB_TOKEN"
export GITLAB_REGISTRATION_TOKEN='{{ run(["ph", "show", "--field", "Password", "shore.co.il/GitLab runner registration token"])["stdout"] }}'
export GITHUB_TOKEN='{{ run(["ph", "show", "--field", "CLI token", "Web Sites/GitHub"])["stdout"] }}'
{% set nc_password = run(["ph", "show", "--field", "Password", "shore.co.il/LDAP"])["stdout"] %}
export RCLONE_CONFIG_NEXTCLOUD_PASS='{{ run(["rclone", "obscure", nc_password]) }}'

.bundle/config.j2

0 → 100644
+3 −0
Original line number Diff line number Diff line
# vim:ft=yaml
---
BUNDLE_HTTPS://RUBYGEMS__PKG__GITHUB__COM/SMILE-IO/: '{{ run(["ph", "show", "--field", "UserName", "Web Sites/GitHub"])["stdout"] }}:{{ run(["ph", "show", "--field", "Smile gem token", "Web Sites/GitHub"])["stdout"] }}'

.config/gem/gemrc.j2

0 → 100644
+10 −0
Original line number Diff line number Diff line
# vim: ft=yaml
---
:backtrace: false
:bulk_threshold: 1000
:sources:
- https://rubygems.org/
- https://{{ run(["ph", "show", "--field", "UserName", "Web Sites/GitHub"])["stdout"] }}:{{ run(["ph", "show", "--field", "Smile gem token", "Web Sites/GitHub"])["stdout"] }}@rubygems.pkg.github.com/smile-io/
:update_sources: true
:verbose: true
:concurrent_downloads: 8
+9 −0
Original line number Diff line number Diff line
# vim: ft=cfg
[global]
default = shore.co.il
ssl_verify = true

[shore.co.il]
url = https://git.shore.co.il/
private_token = {{ run(["ph", "show", "--field", "Password", "shore.co.il/GitLab token"])["stdout"] }}
api_version = 4
Loading