-
Notifications
You must be signed in to change notification settings - Fork 8
Update release with new fabrica-based services; remove old services #50
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
Draft
travisbcotton
wants to merge
65
commits into
main
Choose a base branch
from
trcotton/tokensmith-container
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+324
−399
Draft
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
78faa66
added tokensmith basic config file; update env file
travisbcotton 9521654
added tokensmith bootstrap token script
travisbcotton 639f1dc
removed old services; added new ones
travisbcotton df2ed75
updating some container files
travisbcotton c1020f3
renamed .service files to .container
travisbcotton 6f3eb1c
actually remove the .service files
travisbcotton 2c05c17
update boot-service description
travisbcotton 4988684
remove hydra dependency
travisbcotton f16b084
update SMD env vars
travisbcotton b5591a4
update where tokesmith config file is mounted from
travisbcotton 794f992
updated spec file to include tokensmith bootstrap script
travisbcotton 29d3177
update spec again and renamed script to remove .sh ending
travisbcotton d45e3a0
update spec to hopefully fix rpm not building
travisbcotton 0a4adaf
update spec yet again to add tokensmith_bootstrap_token to the config…
travisbcotton 91b1c46
update ExecStartPre to use renamed tokensmith bootstrap script
travisbcotton d030f20
added boostrap secret to metadata-service
travisbcotton 00eb5cd
updated openchami.target with new services; removed old ones
travisbcotton 39d4005
updated tokensmith_bootstrap_token script to match updated tokensmith…
travisbcotton 3b7d272
use v0.4.0 for tokensmith
travisbcotton a0d59ee
update tokensmith container
travisbcotton 1789faa
update bootstrap_token to read the container env for token directory
travisbcotton 3813f90
make boot-service require tokensmith
travisbcotton 2fbbbb8
add persistent volume for tokensmith data
travisbcotton e13035e
updated tokensmith Exec, boot-service exec, some dependencies
travisbcotton 4745776
remove opaal stuff from bootstrap_openchami.sh
travisbcotton 2eb8996
update tokensmith container to mount the correct config file path
travisbcotton 88c10b0
update tokensmith container to mount the correct config file path for…
travisbcotton 13e4e48
ok now set the correct path for mounting inside the tokensmith contai…
travisbcotton b905e51
try to fix volume mount BS
travisbcotton 289849f
use correct path for tokensmith bootstrap script in boot-service and …
travisbcotton 6a7e1a4
use pr-7 for metadata
travisbcotton 408e67a
update haproxy config
travisbcotton 242773b
haproxy.cfg needs a newline at the end of the file? removed commented…
travisbcotton 920d1d5
work on making bootstrap token scrit better
travisbcotton 7c54ae3
minor updates to container files
travisbcotton b21c9f9
update haproxy.cfg
travisbcotton d9d2e7f
update openchami.target
travisbcotton 6f4ce02
updated haproxy.cfg, removed more references to opaal
travisbcotton 8f937f3
update some quadlet dependencies
travisbcotton d01b948
change target service from hsm to smd
travisbcotton 22776a1
update boot-service container to use v0.1.5
travisbcotton 03eeec3
remove hydra stuff from bootstrap+openchami.sh
travisbcotton d784192
remove cloud-init vars, revisit when metadata-service is in a better …
travisbcotton a763e13
set metadata-service to use port 8080 in haproxy since it's the default
travisbcotton 0c8e315
remove the tokensmith flag for now, use pr-8 for the image
travisbcotton 4b7c780
rename cloud-init-data volume to metadata-data, set metadata-service.…
travisbcotton 9633ca9
fix volume name for metadata
travisbcotton 3022616
bump tokensmith version and update Exec in container file
travisbcotton 9309ecf
added SMD_URL=http://smd:27779 back since metadata-service seems to u…
travisbcotton 16ef006
bump smd container version to v2.20.0
travisbcotton 6ec4562
removed opaal refernce from openchami-certificate-update
travisbcotton eda3d55
added comment about OIDC provider in openchami.env file
travisbcotton 93f4bf3
added usage to tokensmith_bootstrap_token, will print when missing cl…
travisbcotton 6767e88
set metadata-service container image version to v0.1.0
travisbcotton b663e65
update coredhcp.yaml to match CoreSMD rules in v0.6.*
synackd 36956de
bump coresmd to v0.6.1
synackd 30ff0b5
use xname for bmc hostname pattern
synackd 2e239c6
bump smd to v2.20.3
synackd f4e572e
remove unused secrets
synackd 4bbf325
remove extra newline in coredhcp.yaml
synackd 95ef228
bump coresmd to v0.6.3
synackd 6442d3e
bump boot-service to v0.1.6 for client debug messages
synackd 9a99f8c
bump metadata-service to v0.1.1
synackd 76177ff
add --tokensmith-url back to metadata-service
synackd 4f94aef
gen_access_token: use tokensmith user-token
synackd 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
|
davidallendj marked this conversation as resolved.
|
This file contains hidden or 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,31 @@ | ||
| #!/bin/bash | ||
| usage() { | ||
| echo "usage: $0 CLIENT" | ||
| echo | ||
| echo 'CLIENT: name of client service to generate token for' | ||
| } | ||
|
|
||
| CLIENT="${1}" | ||
|
travisbcotton marked this conversation as resolved.
|
||
| SERVICE="smd" | ||
|
|
||
| if [[ -z "$CLIENT" ]] | ||
| then | ||
| echo "Empty client" | ||
| usage >&2 | ||
| exit 1 | ||
| fi | ||
|
travisbcotton marked this conversation as resolved.
|
||
|
|
||
| echo "Generating bootstrap token for service client ${CLIENT}" | ||
| TOKENSMITH_BOOTSTRAP_TOKEN=$(podman exec -e SERVICE=$SERVICE -e CLIENT=$CLIENT tokensmith /bin/sh -c "\ | ||
| /usr/local/bin/tokensmith bootstrap-token create \ | ||
| --bootstrap-store \${TOKENSMITH_RFC8693_BOOTSTRAP_STORE} \ | ||
| --subject \${CLIENT} \ | ||
| --audience \${SERVICE} \ | ||
| --scopes "read" \ | ||
| --output-format json | jq -r '.bootstrap_token' | ||
| ") | ||
|
|
||
| SECRET_NAME="${CLIENT}-bootstrap-token" | ||
| echo "Creating secret ${CLIENT}-bootstrap-token" | ||
| printf '%s' "$TOKENSMITH_BOOTSTRAP_TOKEN" | podman secret rm -i ${SECRET_NAME} 2>/dev/null || true | ||
| printf '%s' "$TOKENSMITH_BOOTSTRAP_TOKEN" | podman secret create ${SECRET_NAME} - | ||
This file contains hidden or 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,18 +1,95 @@ | ||
| # Based on https://github.com/coredhcp/coredhcp/blob/master/cmds/coredhcp/config.yml.example | ||
| # See there for more extensive CoreDHCP configuration documentation. | ||
|
|
||
| server4: | ||
| # You can configure the specific interfaces that you want OpenCHAMI to listen on by | ||
| # uncommenting the lines below and setting the interface | ||
| # listen: | ||
| # - "%virbr-openchami" | ||
| # Optionally define how CoreDHCP binds to an interface or address. If unset, | ||
| # the server will bind to all interfaces (0.0.0.0). | ||
| # | ||
| #listen: | ||
| # - "%virbr-openchami" | ||
| plugins: | ||
| # You are able to set the IP address of the system in server_id as the place to look for a DHCP server | ||
| # DNS is able to be set to whatever you want but it is much easier if you keep it set to the server IP | ||
| # Router is also able to be set to whatever you network router address is | ||
| # - server_id: 172.16.0.254 | ||
| # - dns: 172.16.0.254 | ||
| # - router: 172.16.0.254 | ||
| # Set DHCP Server Identifier to help resolve situations when there are | ||
| # multiple DHCP servers on a network. | ||
| #- server_id: 172.16.0.254 | ||
|
|
||
| # Advertise list of DNS resolvers to use for hosts on network. | ||
| #- dns: 172.16.0.254 | ||
|
|
||
| # REQUIRED: Advertise address of default router on network. | ||
| #- router: 172.16.0.254 | ||
|
|
||
| # Advertise network mask of assigned IPs on network. | ||
| - netmask: 255.255.255.0 | ||
| # The lines below define where the system should assign ip addresses for systems that do not have | ||
| # mac addresses stored in SMD | ||
| # - coresmd: https://demo.openchami.cluster:8443 http://172.16.0.254:8081 /root_ca/root_ca.crt 30s 1h false | ||
| # - bootloop: /tmp/coredhcp.db default 5m 172.16.0.200 172.16.0.250 | ||
|
|
||
| # | ||
| # OpenCHAMI CONFIGURATION | ||
| # | ||
|
|
||
| # Assign IP addresses to devices known to OpenCHAMI based on MAC address. | ||
| #- coresmd: | | ||
| # /* Base URI for contacting SMD */ | ||
| # svc_base_uri=https://demo.openchami.cluster:8443 | ||
| # | ||
| # /* Base URI for contacting boot-service for boot scripts */ | ||
| # ipxe_base_uri=http://172.16.0.254:8081 | ||
| # | ||
| # /* | ||
| # * Path to root CA certificate in container to use for TLS | ||
| # * verification for communication with SMD | ||
| # */ | ||
| # ca_cert=/root_ca/root_ca.crt | ||
| # | ||
| # /* Refresh interval for CoreSMD's component cache */ | ||
| # cache_valid=30s | ||
| # | ||
| # /* Duration DHCP leases should be valid */ | ||
| # lease_time=1h | ||
| # | ||
| # /* Toggle TFTP single-port mode */ | ||
| # single_port=false | ||
| # | ||
| # /* | ||
| # * RICH RULES | ||
| # * | ||
| # * These are used to set DHCP options based on certain selectors. | ||
| # * See: https://github.com/OpenCHAMI/coresmd/blob/main/examples/coredhcp/rules.md | ||
| # */ | ||
| # | ||
| # /* Domain to append to set hostnames (able to be overridden) | ||
| # domain=openchami.cluster | ||
| # | ||
| # /* | ||
| # * Log level for rules. | ||
| # * | ||
| # * none: do not log | ||
| # * info: log rule matches | ||
| # * debug: log rule matches and non-matches | ||
| # */ | ||
| # rule_log=info | ||
| # | ||
| # /* Set hostname based on type (node or BMC, respectively) */ | ||
| # rule=type:Node,hostname:n{02d} | ||
| # rule=type:NodeBMC,hostname:{id} | ||
|
|
||
| # Optional catch-all for extra devices. This plugin is meant to assign | ||
| # temporary IPs via a very short lease to devices not tracked in SMD, e.g. | ||
| # for BMCs to be discoverable via Redfish so they _can_ be added to SMD. | ||
| # Non-BMC devices are served an iPXE script that instructs them to reboot | ||
| # (by default, this is customizable, hence the name 'bootloop') so that | ||
| # they will constantly try to get a new lease. The idea is that once they | ||
| # are added to SMD, CoreSMD above will catch it. | ||
| #- bootloop: | | ||
| # /* Where to store leases (sqlite) | ||
| # lease_file=/tmp/coredhcp.db | ||
| # | ||
| # /* iPXE script to use ('default' reboots) | ||
| # script_path=default | ||
| # | ||
| # /* Duration of short-lived lease */ | ||
| # lease_time=5m | ||
| # | ||
| # /* Beginning IP of assignable IPv4 addresses */ | ||
| # ipv4_start=172.16.0.200 | ||
| # | ||
| # /* Ending IP of assignable IPv4 addresses */ | ||
| # ipv4_end=172.16.0.250 |
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.