-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The name flagstate is meant to be reminsicent of the fact that the service stores important information about containers - just as the "Flag State" is important information about a shipping vessel that would be stored in a shipping registry. But in the end, it's just a easy-to-search name.
- Loading branch information
Showing
14 changed files
with
47 additions
and
47 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
codehilite.css | ||
coverage.out | ||
metastore | ||
flagstate | ||
html |
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
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
PGPASSWORD=mypassword psql -h 127.0.0.1 -U metastore -p 7432 "$@" | ||
PGPASSWORD=mypassword psql -h 127.0.0.1 -U flagstate -p 7432 "$@" | ||
|
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
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 |
---|---|---|
|
@@ -10,8 +10,8 @@ trap cleanup EXIT | |
cd $work | ||
|
||
# Generate private keys | ||
openssl genrsa -out metastore_ca.key 2048 | ||
openssl genrsa -out metastore.key 2048 | ||
openssl genrsa -out flagstate_ca.key 2048 | ||
openssl genrsa -out flagstate.key 2048 | ||
|
||
# Generate CSRs | ||
cat > ca.config <<EOF | ||
|
@@ -24,8 +24,8 @@ req_extensions=v3_req | |
basicConstraints=critical,CA:TRUE,pathlen:0 | ||
[cadn] | ||
CN=Metastore CA | ||
OU=Metastore | ||
CN=Flagstate CA | ||
OU=Flagstate | ||
[email protected] | ||
EOF | ||
|
||
|
@@ -41,19 +41,19 @@ basicConstraints=critical,CA:FALSE | |
[certdn] | ||
CN=registry.local.fishsoup.net | ||
OU=Metastore | ||
OU=Flagstate | ||
[email protected] | ||
EOF | ||
|
||
openssl req -new -config ca.config -key metastore_ca.key -out metastore_ca.csr | ||
openssl req -new -config cert.config -key metastore.key -out metastore_cert.csr | ||
openssl req -new -config ca.config -key flagstate_ca.key -out flagstate_ca.csr | ||
openssl req -new -config cert.config -key flagstate.key -out flagstate_cert.csr | ||
|
||
# Generate Root Certificate | ||
openssl x509 -req -in metastore_ca.csr -days 365 -extfile ca.config -extensions v3_req -signkey metastore_ca.key -out metastore_ca.crt | ||
openssl x509 -req -in flagstate_ca.csr -days 365 -extfile ca.config -extensions v3_req -signkey flagstate_ca.key -out flagstate_ca.crt | ||
|
||
# Generate Server Certificate | ||
openssl x509 -req -in metastore_cert.csr -days 365 -extfile cert.config -extensions v3_req -CA metastore_ca.crt -CAkey metastore_ca.key -CAcreateserial -out metastore.crt | ||
openssl x509 -req -in flagstate_cert.csr -days 365 -extfile cert.config -extensions v3_req -CA flagstate_ca.crt -CAkey flagstate_ca.key -CAcreateserial -out flagstate.crt | ||
|
||
# Copy the files to the correct locations | ||
cp metastore.crt metastore_ca.crt /etc/pki/tls/certs | ||
cp metastore.key /etc/pki/tls/private/ | ||
cp flagstate.crt flagstate_ca.crt /etc/pki/tls/certs | ||
cp flagstate.key /etc/pki/tls/private/ |
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
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