Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tahoe Capabilities
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
PrivateStorage
Tahoe Capabilities
Commits
cf4f7215
Commit
cf4f7215
authored
1 year ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
add ConfidentialShowable class for things holding secrets
parent
784fd5bf
No related branches found
No related tags found
1 merge request
!2
add ConfidentialShowable class for things holding secrets
Pipeline
#4741
passed
1 year ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Tahoe/Capability.hs
+5
-1
5 additions, 1 deletion
src/Tahoe/Capability.hs
src/Tahoe/Capability/Internal/Confidential.hs
+12
-0
12 additions, 0 deletions
src/Tahoe/Capability/Internal/Confidential.hs
tahoe-capabilities.cabal
+7
-3
7 additions, 3 deletions
tahoe-capabilities.cabal
with
24 additions
and
4 deletions
src/Tahoe/Capability.hs
+
5
−
1
View file @
cf4f7215
module
Tahoe.Capability
where
module
Tahoe.Capability
(
module
Tahoe
.
Capability
.
Internal
.
Confidential
,
)
where
import
Tahoe.Capability.Internal.Confidential
(
ConfidentialShowable
(
..
))
This diff is collapsed.
Click to expand it.
src/Tahoe/Capability/Internal/Confidential.hs
0 → 100644
+
12
−
0
View file @
cf4f7215
module
Tahoe.Capability.Internal.Confidential
where
import
qualified
Data.Text
as
T
{- | Something which contains confidential information and can be rendered as
text such that the text also includes confidential information. It is
expected (but not required) that such types will also have a Show instance
which obscures the confidential information.
-}
class
ConfidentialShowable
s
where
-- | Show the value, including any confidential information.
confidentiallyShow
::
s
->
T
.
Text
This diff is collapsed.
Click to expand it.
tahoe-capabilities.cabal
+
7
−
3
View file @
cf4f7215
...
...
@@ -64,7 +64,9 @@ library
import: warnings
-- Modules exported by the library.
exposed-modules: Tahoe.Capability
exposed-modules:
Tahoe.Capability
Tahoe.Capability.Internal.Confidential
-- Modules included in this library but not exported.
-- other-modules:
...
...
@@ -73,7 +75,9 @@ library
-- other-extensions:
-- Other library packages from which modules are imported.
build-depends: base ^>=4.14.3.0
build-depends:
, base
, text
-- Directories containing source files.
hs-source-dirs: src
...
...
@@ -105,5 +109,5 @@ test-suite tahoe-capabilities-test
-- Test dependencies.
build-depends:
, base
^>=4.14.3.0
, base
, tahoe-capabilities
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