Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ocm-engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
svdh
ocm-engine
Commits
1db95c9a
Commit
1db95c9a
authored
1 year ago
by
Boyan Tsolov
Browse files
Options
Downloads
Patches
Plain Diff
chore: move configuration variables to env
parent
106d8f38
No related branches found
No related tags found
1 merge request
!75
feat: credential revocation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.env.example
+5
-0
5 additions, 0 deletions
.env.example
libs/askar/src/agent.utils.ts
+13
-4
13 additions, 4 deletions
libs/askar/src/agent.utils.ts
with
18 additions
and
4 deletions
.env.example
+
5
−
0
View file @
1db95c9a
...
@@ -37,3 +37,8 @@ PROOF_SERVICE_HOST=0.0.0.0
...
@@ -37,3 +37,8 @@ PROOF_SERVICE_HOST=0.0.0.0
ALLOWED_ORIGINS=*
ALLOWED_ORIGINS=*
SWAGGER=false
SWAGGER=false
TAILS_SERVER_BASE_URL=https://s3.us-west-000.backblazeb2.com
TAILS_SERVER_KEY=key
TAILS_SERVER_SECRET=secret
TAILS_SERVER_BUCKET_NAME=ssi-revocation-tails
\ No newline at end of file
This diff is collapsed.
Click to expand it.
libs/askar/src/agent.utils.ts
+
13
−
4
View file @
1db95c9a
...
@@ -210,10 +210,19 @@ export const generateDidFromKey = (key: Key): string => {
...
@@ -210,10 +210,19 @@ export const generateDidFromKey = (key: Key): string => {
//eslint-disable-next-line
//eslint-disable-next-line
export
const
getAskarAnonCredsIndyModules
=
(
networks
:
any
)
=>
{
export
const
getAskarAnonCredsIndyModules
=
(
networks
:
any
)
=>
{
const
tailsServerBaseUrl
=
'
https://s3.us-west-000.backblazeb2.com
'
;
const
tailsServerBaseUrl
=
process
.
env
[
"
TAILS_SERVER_BASE_URL
"
]
||
undefined
;
const
s3AccessKey
=
'
00035e7ca9a9853000000000d
'
;
const
s3AccessKey
=
process
.
env
[
"
TAILS_SERVER_KEY
"
]
||
undefined
;
const
s3Secret
=
'
K000e++ZchAncs27jCueO+P+M1UEN2Q
'
;
const
s3Secret
=
process
.
env
[
"
TAILS_SERVER_SECRET
"
]
||
undefined
;
const
tailsServerBucketName
=
'
ssi-revocation-tails
'
;
const
tailsServerBucketName
=
process
.
env
[
"
TAILS_SERVER_BUCKET_NAME
"
]
||
undefined
;
if
(
!
tailsServerBaseUrl
||
!
s3AccessKey
||
!
s3Secret
||
!
tailsServerBucketName
)
{
throw
new
Error
(
"
Tails Storage Information not provided.
"
);
}
return
{
return
{
connections
:
new
ConnectionsModule
({
connections
:
new
ConnectionsModule
({
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment