generated from canonical/is-charms-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgresql integration #2
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Initial config file for hockeypuck docker-compose/standalone deployments | ||
# Environment variables are substituted using golang template markup | ||
# See https://pkg.go.dev/text/template | ||
|
||
[hockeypuck] | ||
loglevel="INFO" | ||
indexTemplate="/hockeypuck/lib/templates/index.html.tmpl" | ||
vindexTemplate="/hockeypuck/lib/templates/index.html.tmpl" | ||
statsTemplate="/hockeypuck/lib/templates/stats.html.tmpl" | ||
webroot="/hockeypuck/lib/www" | ||
hostname="${FQDN}" | ||
contact="${FINGERPRINT}" | ||
adminKeys=[ | ||
# List your admin key fingerprint(s) here. | ||
# It is NOT RECOMMENDED to use the same key for both contact and admin. | ||
] | ||
|
||
[hockeypuck.hkp] | ||
bind=":11371" | ||
logRequestDetails=false | ||
|
||
# prevent abusively large keys | ||
[hockeypuck.openpgp] | ||
maxPacketLength=8192 | ||
maxKeyLength=1048576 | ||
# Full fingerprints of keys to ignore, minus the leading 0x | ||
blacklist=[ | ||
# "DEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF", | ||
] | ||
|
||
[hockeypuck.openpgp.db] | ||
driver="postgres-jsonb" | ||
dsn="database=hkp host=${POSTGRES_HOST} user=${POSTGRES_USER} password=${POSTGRES_PASSWORD} port=${POSTGRES_PORT} sslmode=disable" | ||
|
||
[hockeypuck.conflux.recon] | ||
allowCIDRs=["127.0.0.1/8"] | ||
|
||
[hockeypuck.conflux.recon.leveldb] | ||
path="/hockeypuck/data/ptree" | ||
|
||
# Gossip peers | ||
#[hockeypuck.conflux.recon.partner.keyserver_example_com] | ||
#httpAddr="keyserver.example.com:11371" | ||
#reconAddr="keyserver.example.com:11370" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,15 @@ | ||||||||||||
#!/bin/bash | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
|
||||||||||||
TEMPLATE_FILE="/hockeypuck/etc/hockeypuck.conf.tmpl" | ||||||||||||
OUTPUT_FILE="/hockeypuck/etc/hockeypuck.conf" | ||||||||||||
|
||||||||||||
if [[ ! -f $TEMPLATE_FILE ]]; then | ||||||||||||
echo "Template file $TEMPLATE_FILE not found." | ||||||||||||
exit 1 | ||||||||||||
fi | ||||||||||||
|
||||||||||||
envsubst < "$TEMP_FILE" > "$OUTPUT_FILE" | ||||||||||||
|
||||||||||||
echo "Substitution complete. Output written to $OUTPUT_FILE." | ||||||||||||
|
||||||||||||
exec /hockeypuck/bin/hockeypuck -config $OUTPUT_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,43 @@ | ||||||||||||
# Copyright 2025 Canonical Ltd. | ||||||||||||
# See LICENSE file for licensing details. | ||||||||||||
|
||||||||||||
name: hockeypuck | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
base: [email protected] | ||||||||||||
version: 0.9 | ||||||||||||
summary: Hockeypuck is an OpenPGP public keyserver. | ||||||||||||
description: | | ||||||||||||
Hockeypuck is an openPGP public keyserver or a software tool | ||||||||||||
used to manage public key infrastructure for PGP (Pretty Good Privacy), | ||||||||||||
which is a system for securing communication through encryption and | ||||||||||||
digital signatures. | ||||||||||||
platforms: | ||||||||||||
amd64: | ||||||||||||
build-on: | ||||||||||||
- amd64 | ||||||||||||
build-for: | ||||||||||||
- amd64 | ||||||||||||
parts: | ||||||||||||
hockeypuck: | ||||||||||||
plugin: make | ||||||||||||
source: https://github.com/hockeypuck/hockeypuck.git | ||||||||||||
source-tag: 2.2.2 | ||||||||||||
source-type: git | ||||||||||||
source-depth: 1 | ||||||||||||
build-snaps: | ||||||||||||
- go | ||||||||||||
organize: | ||||||||||||
usr/bin/hockeypuck: hockeypuck/bin/hockeypuck | ||||||||||||
usr/bin/hockeypuck-dump: hockeypuck/bin/hockeypuck-dump | ||||||||||||
usr/bin/hockeypuck-load: hockeypuck/bin/hockeypuck-load | ||||||||||||
usr/bin/hockeypuck-pbuild: hockeypuck/bin/hockeypuck-pbuild | ||||||||||||
var/lib/hockeypuck/*: hockeypuck/lib/ | ||||||||||||
stage-packages: | ||||||||||||
- gettext-base | ||||||||||||
copy-files: | ||||||||||||
plugin: dump | ||||||||||||
source: . | ||||||||||||
organize: | ||||||||||||
hockeypuck.conf.tmpl: hockeypuck/etc/hockeypuck.conf.tmpl | ||||||||||||
hockeypuck_wrapper.sh: hockeypuck/bin/hockeypuck_wrapper.sh | ||||||||||||
prime: | ||||||||||||
- hockeypuck/* |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Inclusive naming check] reported by reviewdog 🐶
[warning]
blacklist
may be insensitive, usedenylist
,blocklist
instead