diff --git a/.gitignore b/.gitignore index a93bf7e..f1b3e14 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,7 @@ kubernetes/.packaged/ *.pem dist/ +# files built by make binaries +/.version +/boot-script-service +/bss-init diff --git a/Makefile b/Makefile index 62fbbad..2bc30ad 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ version: .PHONY: clean clean: - rm -f $(BINARIES) + rm -f $(BINARIES) .version .PHONY: snyk snyk: diff --git a/cmd/boot-script-service/oauth.go b/cmd/boot-script-service/oauth.go index 5cd3308..8467b5f 100644 --- a/cmd/boot-script-service/oauth.go +++ b/cmd/boot-script-service/oauth.go @@ -1,15 +1,24 @@ -// Copyright © 2024 Triad National Security, LLC. All rights reserved. +// MIT License // -// This program was produced under U.S. Government contract 89233218CNA000001 -// for Los Alamos National Laboratory (LANL), which is operated by Triad -// National Security, LLC for the U.S. Department of Energy/National Nuclear -// Security Administration. All rights in the program are reserved by Triad -// National Security, LLC, and the U.S. Department of Energy/National Nuclear -// Security Administration. The Government is granted for itself and others -// acting on its behalf a nonexclusive, paid-up, irrevocable worldwide license -// in this material to reproduce, prepare derivative works, distribute copies to -// the public, perform publicly and display publicly, and to permit others to do -// so. +// Copyright © 2024-2025 Contributors to the OpenCHAMI Project +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. package main diff --git a/cmd/bss-init/main.go b/cmd/bss-init/main.go index 532a343..874d583 100644 --- a/cmd/bss-init/main.go +++ b/cmd/bss-init/main.go @@ -1,14 +1,24 @@ -// Copyright © 2023 Triad National Security, LLC. All rights reserved. +// MIT License // -// This program was produced under U.S. Government contract 89233218CNA000001 for -// Los Alamos National Laboratory (LANL), which is operated by Triad National -// Security, LLC for the U.S. Department of Energy/National Nuclear Security -// Administration. All rights in the program are reserved by Triad National -// Security, LLC, and the U.S. Department of Energy/National Nuclear Security -// Administration. The Government is granted for itself and others acting on its -// behalf a nonexclusive, paid-up, irrevocable worldwide license in this material -// to reproduce, prepare derivative works, distribute copies to the public, -// perform publicly and display publicly, and to permit others to do so. +// Copyright © 2024-2025 Contributors to the OpenCHAMI Project +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. /* * Boot Script Server Initializer @@ -30,7 +40,6 @@ import ( "strings" "time" - _ "github.com/lib/pq" "github.com/golang-migrate/migrate/v4" db "github.com/golang-migrate/migrate/v4/database" pg "github.com/golang-migrate/migrate/v4/database/postgres" diff --git a/internal/postgres/bootparams.go b/internal/postgres/bootparams.go index 5962974..022bc60 100644 --- a/internal/postgres/bootparams.go +++ b/internal/postgres/bootparams.go @@ -1,15 +1,24 @@ -// Copyright © 2024 Triad National Security, LLC. All rights reserved. +// MIT License // -// This program was produced under U.S. Government contract 89233218CNA000001 -// for Los Alamos National Laboratory (LANL), which is operated by Triad -// National Security, LLC for the U.S. Department of Energy/National Nuclear -// Security Administration. All rights in the program are reserved by Triad -// National Security, LLC, and the U.S. Department of Energy/National Nuclear -// Security Administration. The Government is granted for itself and others -// acting on its behalf a nonexclusive, paid-up, irrevocable worldwide license -// in this material to reproduce, prepare derivative works, distribute copies to -// the public, perform publicly and display publicly, and to permit others to do -// so. +// Copyright © 2024-2025 Contributors to the OpenCHAMI Project +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. package postgres @@ -18,10 +27,10 @@ import ( "fmt" "strings" + "github.com/Cray-HPE/hms-xname/xnames" "github.com/OpenCHAMI/bss/pkg/bssTypes" "github.com/docker/distribution/uuid" "github.com/jmoiron/sqlx" - "github.com/Cray-HPE/hms-xname/xnames" _ "github.com/lib/pq" ) diff --git a/internal/postgres/common.go b/internal/postgres/common.go index 1dd183d..fed1c0e 100644 --- a/internal/postgres/common.go +++ b/internal/postgres/common.go @@ -1,15 +1,24 @@ -// Copyright © 2024 Triad National Security, LLC. All rights reserved. +// MIT License // -// This program was produced under U.S. Government contract 89233218CNA000001 -// for Los Alamos National Laboratory (LANL), which is operated by Triad -// National Security, LLC for the U.S. Department of Energy/National Nuclear -// Security Administration. All rights in the program are reserved by Triad -// National Security, LLC, and the U.S. Department of Energy/National Nuclear -// Security Administration. The Government is granted for itself and others -// acting on its behalf a nonexclusive, paid-up, irrevocable worldwide license -// in this material to reproduce, prepare derivative works, distribute copies to -// the public, perform publicly and display publicly, and to permit others to do -// so. +// Copyright © 2024-2025 Contributors to the OpenCHAMI Project +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. package postgres diff --git a/internal/postgres/endpoints.go b/internal/postgres/endpoints.go index 6eae5d4..f767ea9 100644 --- a/internal/postgres/endpoints.go +++ b/internal/postgres/endpoints.go @@ -1,15 +1,24 @@ -// Copyright © 2024 Triad National Security, LLC. All rights reserved. +// MIT License // -// This program was produced under U.S. Government contract 89233218CNA000001 -// for Los Alamos National Laboratory (LANL), which is operated by Triad -// National Security, LLC for the U.S. Department of Energy/National Nuclear -// Security Administration. All rights in the program are reserved by Triad -// National Security, LLC, and the U.S. Department of Energy/National Nuclear -// Security Administration. The Government is granted for itself and others -// acting on its behalf a nonexclusive, paid-up, irrevocable worldwide license -// in this material to reproduce, prepare derivative works, distribute copies to -// the public, perform publicly and display publicly, and to permit others to do -// so. +// Copyright © 2024-2025 Contributors to the OpenCHAMI Project +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. package postgres @@ -100,8 +109,8 @@ func (bddb BootDataDatabase) LogEndpointAccess(name string, endpointType bssType ts := time.Now() ea := EndpointAccess{ - Name: name, - Endpoint: string(endpointType), + Name: name, + Endpoint: string(endpointType), LastEpoch: ts.Unix(), } diff --git a/internal/postgres/errors.go b/internal/postgres/errors.go index 2a3b15a..1d6b952 100644 --- a/internal/postgres/errors.go +++ b/internal/postgres/errors.go @@ -1,15 +1,24 @@ -// Copyright © 2024 Triad National Security, LLC. All rights reserved. +// MIT License // -// This program was produced under U.S. Government contract 89233218CNA000001 -// for Los Alamos National Laboratory (LANL), which is operated by Triad -// National Security, LLC for the U.S. Department of Energy/National Nuclear -// Security Administration. All rights in the program are reserved by Triad -// National Security, LLC, and the U.S. Department of Energy/National Nuclear -// Security Administration. The Government is granted for itself and others -// acting on its behalf a nonexclusive, paid-up, irrevocable worldwide license -// in this material to reproduce, prepare derivative works, distribute copies to -// the public, perform publicly and display publicly, and to permit others to do -// so. +// Copyright © 2024-2025 Contributors to the OpenCHAMI Project +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. package postgres diff --git a/migrations/postgres/1_create_db_init.down.sql b/migrations/postgres/1_create_db_init.down.sql index 528b311..3efd52e 100644 --- a/migrations/postgres/1_create_db_init.down.sql +++ b/migrations/postgres/1_create_db_init.down.sql @@ -1,13 +1,23 @@ --- Copyright © 2023 Triad National Security, LLC. All rights reserved. --- --- This program was produced under U.S. Government contract 89233218CNA000001 for --- Los Alamos National Laboratory (LANL), which is operated by Triad National --- Security, LLC for the U.S. Department of Energy/National Nuclear Security --- Administration. All rights in the program are reserved by Triad National --- Security, LLC, and the U.S. Department of Energy/National Nuclear Security --- Administration. The Government is granted for itself and others acting on its --- behalf a nonexclusive, paid-up, irrevocable worldwide license in this material --- to reproduce, prepare derivative works, distribute copies to the public, --- perform publicly and display publicly, and to permit others to do so. +-- MIT License +-- +-- Copyright © 2024-2025 Contributors to the OpenCHAMI Project +-- +-- Permission is hereby granted, free of charge, to any person obtaining a copy +-- of this software and associated documentation files (the "Software"), to deal +-- in the Software without restriction, including without limitation the rights +-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +-- copies of the Software, and to permit persons to whom the Software is +-- furnished to do so, subject to the following conditions: +-- +-- The above copyright notice and this permission notice shall be included in all +-- copies or substantial portions of the Software. +-- +-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +-- SOFTWARE. -- DROP SCHEMA IF EXISTS bssdb; diff --git a/migrations/postgres/1_create_db_init.up.sql b/migrations/postgres/1_create_db_init.up.sql index 4e0109f..3a5d23a 100644 --- a/migrations/postgres/1_create_db_init.up.sql +++ b/migrations/postgres/1_create_db_init.up.sql @@ -1,13 +1,23 @@ --- Copyright © 2023 Triad National Security, LLC. All rights reserved. --- --- This program was produced under U.S. Government contract 89233218CNA000001 for --- Los Alamos National Laboratory (LANL), which is operated by Triad National --- Security, LLC for the U.S. Department of Energy/National Nuclear Security --- Administration. All rights in the program are reserved by Triad National --- Security, LLC, and the U.S. Department of Energy/National Nuclear Security --- Administration. The Government is granted for itself and others acting on its --- behalf a nonexclusive, paid-up, irrevocable worldwide license in this material --- to reproduce, prepare derivative works, distribute copies to the public, --- perform publicly and display publicly, and to permit others to do so. +-- MIT License +-- +-- Copyright © 2024-2025 Contributors to the OpenCHAMI Project +-- +-- Permission is hereby granted, free of charge, to any person obtaining a copy +-- of this software and associated documentation files (the "Software"), to deal +-- in the Software without restriction, including without limitation the rights +-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +-- copies of the Software, and to permit persons to whom the Software is +-- furnished to do so, subject to the following conditions: +-- +-- The above copyright notice and this permission notice shall be included in all +-- copies or substantial portions of the Software. +-- +-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +-- SOFTWARE. -- CREATE SCHEMA IF NOT EXISTS bssdb; diff --git a/migrations/postgres/2_create_version1.down.sql b/migrations/postgres/2_create_version1.down.sql index f996efa..8994cd4 100644 --- a/migrations/postgres/2_create_version1.down.sql +++ b/migrations/postgres/2_create_version1.down.sql @@ -1,14 +1,24 @@ --- Copyright © 2023 Triad National Security, LLC. All rights reserved. +-- MIT License -- --- This program was produced under U.S. Government contract 89233218CNA000001 for --- Los Alamos National Laboratory (LANL), which is operated by Triad National --- Security, LLC for the U.S. Department of Energy/National Nuclear Security --- Administration. All rights in the program are reserved by Triad National --- Security, LLC, and the U.S. Department of Energy/National Nuclear Security --- Administration. The Government is granted for itself and others acting on its --- behalf a nonexclusive, paid-up, irrevocable worldwide license in this material --- to reproduce, prepare derivative works, distribute copies to the public, --- perform publicly and display publicly, and to permit others to do so. +-- Copyright © 2024-2025 Contributors to the OpenCHAMI Project +-- +-- Permission is hereby granted, free of charge, to any person obtaining a copy +-- of this software and associated documentation files (the "Software"), to deal +-- in the Software without restriction, including without limitation the rights +-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +-- copies of the Software, and to permit persons to whom the Software is +-- furnished to do so, subject to the following conditions: +-- +-- The above copyright notice and this permission notice shall be included in all +-- copies or substantial portions of the Software. +-- +-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +-- SOFTWARE. BEGIN; diff --git a/migrations/postgres/2_create_version1.up.sql b/migrations/postgres/2_create_version1.up.sql index 92b306f..502e956 100644 --- a/migrations/postgres/2_create_version1.up.sql +++ b/migrations/postgres/2_create_version1.up.sql @@ -1,14 +1,24 @@ --- Copyright © 2023 Triad National Security, LLC. All rights reserved. --- --- This program was produced under U.S. Government contract 89233218CNA000001 for --- Los Alamos National Laboratory (LANL), which is operated by Triad National --- Security, LLC for the U.S. Department of Energy/National Nuclear Security --- Administration. All rights in the program are reserved by Triad National --- Security, LLC, and the U.S. Department of Energy/National Nuclear Security --- Administration. The Government is granted for itself and others acting on its --- behalf a nonexclusive, paid-up, irrevocable worldwide license in this material --- to reproduce, prepare derivative works, distribute copies to the public, --- perform publicly and display publicly, and to permit others to do so. +-- MIT License +-- +-- Copyright © 2024-2025 Contributors to the OpenCHAMI Project +-- +-- Permission is hereby granted, free of charge, to any person obtaining a copy +-- of this software and associated documentation files (the "Software"), to deal +-- in the Software without restriction, including without limitation the rights +-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +-- copies of the Software, and to permit persons to whom the Software is +-- furnished to do so, subject to the following conditions: +-- +-- The above copyright notice and this permission notice shall be included in all +-- copies or substantial portions of the Software. +-- +-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +-- SOFTWARE. BEGIN; diff --git a/migrations/postgres/3_create_version2.down.sql b/migrations/postgres/3_create_version2.down.sql index 4516c7b..e8fb8fe 100644 --- a/migrations/postgres/3_create_version2.down.sql +++ b/migrations/postgres/3_create_version2.down.sql @@ -1,14 +1,24 @@ --- Copyright © 2024 Triad National Security, LLC. All rights reserved. +-- MIT License -- --- This program was produced under U.S. Government contract 89233218CNA000001 for --- Los Alamos National Laboratory (LANL), which is operated by Triad National --- Security, LLC for the U.S. Department of Energy/National Nuclear Security --- Administration. All rights in the program are reserved by Triad National --- Security, LLC, and the U.S. Department of Energy/National Nuclear Security --- Administration. The Government is granted for itself and others acting on its --- behalf a nonexclusive, paid-up, irrevocable worldwide license in this material --- to reproduce, prepare derivative works, distribute copies to the public, --- perform publicly and display publicly, and to permit others to do so. +-- Copyright © 2024-2025 Contributors to the OpenCHAMI Project +-- +-- Permission is hereby granted, free of charge, to any person obtaining a copy +-- of this software and associated documentation files (the "Software"), to deal +-- in the Software without restriction, including without limitation the rights +-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +-- copies of the Software, and to permit persons to whom the Software is +-- furnished to do so, subject to the following conditions: +-- +-- The above copyright notice and this permission notice shall be included in all +-- copies or substantial portions of the Software. +-- +-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +-- SOFTWARE. BEGIN; diff --git a/migrations/postgres/3_create_version2.up.sql b/migrations/postgres/3_create_version2.up.sql index 2d25c98..c626347 100644 --- a/migrations/postgres/3_create_version2.up.sql +++ b/migrations/postgres/3_create_version2.up.sql @@ -1,14 +1,24 @@ --- Copyright © 2024 Triad National Security, LLC. All rights reserved. +-- MIT License -- --- This program was produced under U.S. Government contract 89233218CNA000001 for --- Los Alamos National Laboratory (LANL), which is operated by Triad National --- Security, LLC for the U.S. Department of Energy/National Nuclear Security --- Administration. All rights in the program are reserved by Triad National --- Security, LLC, and the U.S. Department of Energy/National Nuclear Security --- Administration. The Government is granted for itself and others acting on its --- behalf a nonexclusive, paid-up, irrevocable worldwide license in this material --- to reproduce, prepare derivative works, distribute copies to the public, --- perform publicly and display publicly, and to permit others to do so. +-- Copyright © 2024-2025 Contributors to the OpenCHAMI Project +-- +-- Permission is hereby granted, free of charge, to any person obtaining a copy +-- of this software and associated documentation files (the "Software"), to deal +-- in the Software without restriction, including without limitation the rights +-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +-- copies of the Software, and to permit persons to whom the Software is +-- furnished to do so, subject to the following conditions: +-- +-- The above copyright notice and this permission notice shall be included in all +-- copies or substantial portions of the Software. +-- +-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +-- SOFTWARE. BEGIN;