Skip to content

Commit 187cf5a

Browse files
authored
Merge pull request #1 from sysdiglabs/dev-backlink
Add backlinking
2 parents a4ef86f + 3c8b33d commit 187cf5a

File tree

11 files changed

+379
-319
lines changed

11 files changed

+379
-319
lines changed

.DS_Store

-6 KB
Binary file not shown.

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ yarn --cwd packages/app add @sysdig/backstage-plugin-sysdig
3535

3636
```bash
3737
# From your Backstage root directory
38-
git clone https://github.com/sysdiglabs/backstage-plugin-sysdig -o plugins/sysdig
38+
git clone https://github.com/sysdiglabs/backstage-plugin-sysdig plugins/sysdig
3939
yarn install
4040
```
4141

@@ -72,19 +72,23 @@ Edit `app-config.yaml` and add to the API endpoints the following details:
7272
proxy:
7373
endpoints:
7474
+ '/sysdig':
75-
+ target: 'https://secure.sysdig.com/'
75+
+ target: ${SYSDIG_SECURE_ENDPOINT}
7676
+ changeOrigin: true
7777
+ allowedMethods: ['GET']
7878
+ headers:
7979
+ "Authorization": "Bearer ${SYSDIG_SECURE_TOKEN}"
8080
+ "Content-Type": "application/json"
8181
+ "Accept": "application/json"
8282
+ "X-Sysdig-Product": "SDS"
83-
```
8483

85-
Replace the value for `target` with your Sysdig Secure Endpoint.
84+
...
85+
86+
+ sysdig:
87+
+ endpoint: ${SYSDIG_SECURE_ENDPOINT}
88+
```
8689

87-
You can replace `${SYSDIG_SECURE_TOKEN}` with your Sysdig Secure API Token, or you can set it to the `SYSDIG_SECURE_TOKEN` environment variable when deploying your Backstage instance.
90+
- Set the environment variable `SYSDIG_SECURE_ENDPOINT` to your Sysdig Secure Endpoint.
91+
- Likewise, set `SYSDIG_SECURE_TOKEN` to your Sysdig Secure API Token.
8892

8993

9094
## How to annotate services

config.d.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2021 The Backstage Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
export interface Config {
17+
/** Configurations for the Sysdig plugin */
18+
sysdig: {
19+
/**
20+
* Endpoint of Sysdig Secure.
21+
* @visibility frontend
22+
*/
23+
endpoint: string;
24+
};
25+
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
"msw": "^1.0.0"
4646
},
4747
"files": [
48+
"config.d.ts",
4849
"dist"
49-
]
50+
],
51+
"configSchema": "config.d.ts"
5052
}

0 commit comments

Comments
 (0)