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
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: default-cluster-admin | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: cluster-admin | |
subjects: | |
- kind: ServiceAccount |
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
kubernetes: | |
serviceLocatorMethod: | |
type: multiTenant | |
clusterLocatorMethods: | |
- type: config | |
clusters: | |
- url: ${K8S_MINIKUBE_URL} | |
name: minikube | |
authProvider: serviceAccount | |
skipTLSVerify: true |
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
# Use postgres/example user/password credentials | |
version: '3.1' | |
services: | |
db: | |
image: postgres | |
restart: always | |
environment: | |
POSTGRES_PASSWORD: example |
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
export POSTGRES_HOST=db | |
export POSTGRES_PORT=5432 | |
export POSTGRES_USER=postgres | |
export POSTGRES_PASSWORD=example | |
export AUTH_GITHUB_CLIENT_ID=[OMITTED] | |
export AUTH_GITHUB_CLIENT_SECRET=[OMITTED] | |
export GITHUB_APP_CREDENTIALS=`cat github-app-backstage-mybackstageapp-credentials.yaml` |
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
csp: | |
connect-src: ["'self'", 'http:', 'https:'] | |
# Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference | |
# Default Helmet Content-Security-Policy values can be removed by setting the key to false | |
img-src: ["'self'", 'data:', 'https://avatars.githubusercontent.com'] |
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
# Use postgres/example user/password credentials | |
version: '3.1' | |
services: | |
db: | |
image: postgres | |
restart: always | |
environment: | |
POSTGRES_PASSWORD: example |
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
.git | |
node_modules | |
packages | |
!packages/backend/dist | |
plugins | |
environment.sh | |
github-app-backstage-mybackstageapp-credentials.yaml |
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 dockerfile builds an image for the backend package. | |
# It should be executed with the root of the repo as docker context. | |
# | |
# Before building this image, be sure to have run the following commands in the repo root: | |
# | |
# yarn install | |
# yarn tsc | |
# yarn build | |
# | |
# Once the commands have been run, you can build the image using `yarn build-image` |
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
import { createRouter, createGithubProvider } from '@backstage/plugin-auth-backend'; | |
import { Router } from 'express'; | |
import { PluginEnvironment } from '../types'; | |
export default async function createPlugin({ | |
logger, | |
database, | |
config, | |
discovery, | |
tokenManager, |
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
catalog: | |
locations: | |
- type: url | |
target: https://github.com/backstage/software-templates/blob/main/scaffolder-templates/docs-template/template.yaml | |
rules: | |
- allow: [Template] | |
- type: github-org | |
target: https://github.com/MyBackstageApp | |
rules: | |
- allow: [Group, User] |