Skip to content

Commit

Permalink
[COMPLIANCE] Add Copyright and License Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
hashicorp-copywrite[bot] authored Jul 1, 2024
1 parent 87f2fe3 commit 3599df5
Show file tree
Hide file tree
Showing 480 changed files with 1,518 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloud/eks-hcp-vault/postgres.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

---
apiVersion: v1
kind: Service
Expand Down
3 changes: 3 additions & 0 deletions cloud/eks-hcp-vault/product.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

---
apiVersion: v1
kind: Service
Expand Down
3 changes: 3 additions & 0 deletions cloud/terraform-hcp-vault/configure-vault/auth.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

#------------------------------------------------------------
# Enable userpass auth method in the 'admin/test' namespace
#------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions cloud/terraform-hcp-vault/configure-vault/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

#------------------------------------------------------------------------------
# The best practice is to use remote state file and encrypt it since your
# state files may contains sensitive data (secrets).
Expand Down
3 changes: 3 additions & 0 deletions cloud/terraform-hcp-vault/configure-vault/policies.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# Create an admins policy in the admin namespace
resource "vault_policy" "admin_policy" {
namespace = vault_namespace.test.path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# Manage auth methods broadly across Vault
path "auth/*"
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# Permits CRUD operation on kv-v2
path "kv-v2/data/*" {
capabilities = ["create", "read", "update", "delete", "list"]
Expand Down
3 changes: 3 additions & 0 deletions cloud/terraform-hcp-vault/configure-vault/policies/tester.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# Grant 'create', 'read' and 'update' permission to paths prefixed by 'secret/data/test/'
path "secret/data/test/*" {
capabilities = [ "create", "read", "update" ]
Expand Down
3 changes: 3 additions & 0 deletions cloud/terraform-hcp-vault/configure-vault/secrets.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# Enable kv-v2 secrets engine in the education namespace
resource "vault_mount" "kv-v2" {
depends_on = [vault_namespace.education]
Expand Down
3 changes: 3 additions & 0 deletions cloud/terraform-hcp-vault/hcp-vault-base/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

variable "hvn_id" {
description = "The ID of the HCP HVN."
type = string
Expand Down
3 changes: 3 additions & 0 deletions cloud/terraform-hcp-vault/hcp-vault-base/vault.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "hcp_hvn" "learn_hcp_vault_hvn" {
hvn_id = var.hvn_id
cloud_provider = var.cloud_provider
Expand Down
3 changes: 3 additions & 0 deletions cloud/terraform-hcp-vault/hcp-vault-vpc/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

variable "hvn_id" {
description = "The ID of the HCP HVN."
type = string
Expand Down
3 changes: 3 additions & 0 deletions cloud/terraform-hcp-vault/hcp-vault-vpc/vault.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "hcp_hvn" "learn_hcp_vault_hvn" {
hvn_id = var.hvn_id
cloud_provider = var.cloud_provider
Expand Down
3 changes: 3 additions & 0 deletions cloud/terraform-hcp-vault/hcp-vault-vpc/vpc-peering.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

provider "aws" {
region = var.region
}
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/vault-github-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

FROM ruby:2.6.2
MAINTAINER HashiCorp Vault Education <[email protected]>

Expand Down
3 changes: 3 additions & 0 deletions ecosystem/vault-github-action/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

source "https://rubygems.org"


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

name: ImageBuilder
# Run this workflow every time a new commit pushed to your repository
on: push
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

const https = require('https')
const fs = require('fs')
const http = require('http')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

const https = require('https')
const http = require('http')
const hostname = process.env['HOSTNAME'] || ''
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


user_id=`id -u`

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

const { spawn } = require('child_process');
// argv[0] = node
// argv[1] = macos-run-invoker.js
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/vault-github-action/actions-runner/bin/runsvc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


# convert SIGTERM signal to SIGINT
# for more info on how to propagate SIGTERM to a child process see: http://veithen.github.io/2014/11/16/sigterm-propagation.html
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/vault-github-action/actions-runner/config.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


user_id=`id -u`

Expand Down
3 changes: 3 additions & 0 deletions ecosystem/vault-github-action/actions-runner/env.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


varCheckList=(
'LANG'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#ifndef SRC_JS_NATIVE_API_H_
#define SRC_JS_NATIVE_API_H_

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#ifndef SRC_JS_NATIVE_API_TYPES_H_
#define SRC_JS_NATIVE_API_TYPES_H_

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#ifndef SRC_NODE_API_H_
#define SRC_NODE_API_H_

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#ifndef SRC_NODE_API_TYPES_H_
#define SRC_NODE_API_TYPES_H_

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#if defined(OPENSSL_NO_ASM)
# include "./bn_conf_no-asm.h"
#else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#undef OPENSSL_LINUX
#if defined(__linux) && !defined(__ANDROID__)
# define OPENSSL_LINUX 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#undef OPENSSL_LINUX
#if defined(__linux) && !defined(__ANDROID__)
# define OPENSSL_LINUX 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#if defined(OPENSSL_NO_ASM)
# include "./dso_conf_no-asm.h"
#else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#undef OPENSSL_LINUX
#if defined(__linux) && !defined(__ANDROID__)
# define OPENSSL_LINUX 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#undef OPENSSL_LINUX
#if defined(__linux) && !defined(__ANDROID__)
# define OPENSSL_LINUX 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#undef OPENSSL_LINUX
#if defined(__linux) && !defined(__ANDROID__)
# define OPENSSL_LINUX 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

/*
In OpenSSL, opensslconf.h was generated by Configure script with
specifying a target argument, where it includes several defines that
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

#if defined(OPENSSL_LINUX) && defined(__i386__)
# include "./archs/linux-elf/no-asm/include/openssl/opensslconf.h"
#elif defined(OPENSSL_LINUX) && defined(__ILP32__)
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/vault-github-action/actions-runner/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


# Validate not sudo
user_id=`id -u`
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/vault-github-action/actions-runner/svc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


SVC_NAME="actions.runner.rowansmithhc-vault-action-exampleapp.rowan-C02FW09HMD6R"
SVC_NAME=${SVC_NAME// /_}
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/vault-github-action/config.ru
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# This file is a configuration file for a Rackup application.

# Load the service file found in the lib directory.
Expand Down
3 changes: 3 additions & 0 deletions ecosystem/vault-github-action/lib/service.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

require "sinatra"
require "faraday"
require "json"
Expand Down
3 changes: 3 additions & 0 deletions encryption/vault-transit-rewrap/AppDb.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

using System;
using MySql.Data.MySqlClient;

Expand Down
3 changes: 3 additions & 0 deletions encryption/vault-transit-rewrap/DBHelper.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

using System;
using System.Collections.Generic;
using System.Data.Common;
Expand Down
3 changes: 3 additions & 0 deletions encryption/vault-transit-rewrap/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

using System;
using System.Collections.Generic;
using System.Net.Http;
Expand Down
3 changes: 3 additions & 0 deletions encryption/vault-transit-rewrap/Record.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

namespace RewrapExample
{
public class Name
Expand Down
3 changes: 3 additions & 0 deletions encryption/vault-transit-rewrap/VaultClient.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

using System;
using System.Collections.Generic;
using System.Text;
Expand Down
3 changes: 3 additions & 0 deletions encryption/vault-transit-rewrap/WebHelper.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

using System;
using System.Collections.Generic;
using System.Net.Http;
Expand Down
3 changes: 3 additions & 0 deletions encryption/vault-transit-rewrap/cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


# Disable transit secret engine
vault secrets disable transit
Expand Down
3 changes: 3 additions & 0 deletions encryption/vault-transit-rewrap/demo_setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


# INITIAL SETUP: RUN ONLY ONCE

Expand Down
3 changes: 3 additions & 0 deletions encryption/vault-transit-rewrap/rewrap_demo.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


#---------------
# Step 5
Expand Down
Loading

0 comments on commit 3599df5

Please sign in to comment.