首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Frost's Blog

    Pip trusted_host问题记录

    问题定位 一日我在Pipenv上收到一个issue: 用户说Pipenv执行的pip命令中--trusted-host缺少了port部分。 所以如果trusted-host是example.org,则只有https://example.org/会被识别为信任的站点而https://example.org:8080/不会。 : yield ('*', host, '*') 这里没做任何处理,就把trusted-host当做hostname丢出来了,看来这里压根没考虑过trusted-host带port的需求 HTTP需要不带port是因为检查是否安全URL的时候,是拿目标URL的hostname(不带port)去匹配trusted-host的值。 这里我用了一个trick,使用了localtest.me转发localhost的请求,因为localhost是永远被信任的地址,trusted-host不起作用。

    2K20发布于 2019-11-30
  • 来自专栏GlobalPlatform

    可信服务管理(Trusted Service Manager)介绍

    一、什么是TSM TSM是Trusted Service Manager的简写,从字面上理解重点体现在Trusted(注意以ed结尾的过去分词形态,是被信任的)、Service

    3.2K130发布于 2021-11-18
  • 来自专栏code秘密花园

    聊一下 Chrome 新增的可信类型(Trusted types)

    Chrome 即将在 83 版本新增一个可信类型(Trusted types),其号称这一特性可以全面消除 DOM XSS,为此我连夜分析了一波,下面我就带大家来具体看一下这个特性: DOM XSS 现在,浏览器可以使用 Trusted Types 来防御客户端 XSS。 API 简介 Trusted Types 的工作方式就是锁定以下危险函数的接收参数,如果是不安全的,就直接阻止。 src>,<object data>和<object codebase> 运行 JavaScript 代码的编译: eval,setTimeout,setInterval,new Function() Trusted <policyName>; Content-Security-Policy: trusted-types <policyName> <policyName> 'allow-duplicates'; ", "disposition": "report", "blocked-uri": "trusted-types-sink", "line-number": 39, "

    3.2K20发布于 2020-05-08
  • 周卫林|大数据通往大模型的钥匙:NoETL to Trusted AI

    数据语义层,让数据 Agent 成为 “Trusted AI” 我们当下所处的蓬勃发展的生成式 AI (Generative AI)时代,普遍存在一种现象:Easy To Make,Hard To Detect 只有一个数据 Agent 同时具备“三真”“三好”,才会让人信任,才能从工具到伙伴,才能被称之为“Trusted AI”(可信 AI)。 显而易见,数据 Agent 的“三真”“三好”离不开数据语义层的支持,数据语义层是数据 Agent 实现“Trusted AI”特性的载体和基石,它们的逻辑关系如下表:NoETL To Trusted 至此,我详细描述了我对大数据通往大模型、数据资产成为 AI 资产的理解:“ NoETL To Trusted AI”:大模型要懂大数据,数据 Agent 要成为“Trusted AI”,需要数据语义层。 的十字路口,我更加坚定:我们正处于 AI 变革的起点,二十年的大数据行业经验、四年多的产品沉淀和数十个与客户共创的经验让我思考——大数据通往大模型、数据资产成为 AI 资产的钥匙就藏在“NoETL To Trusted

    21210编辑于 2025-12-01
  • 来自专栏IT杂谈学习

    【Python】已完美解决:WARNING: The repository located at mirrors .aliyun.com is not a trusted or secure host

    Python 的 pip 包管理器安装或更新库时,有时会遇到这样的警告信息: WARNING: The repository located at mirrors.aliyun.com is not a trusted recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '-trusted-host = mirrors.aliyun.com 注意,在 pip.conf 中还添加了 trusted-host,这是为了明确告诉 pip 信任这个特定的主机,即使它不是默认的受信任 HTTPS 主机。 临时允许非 HTTPS 源(不推荐) 如果你确定要忽略这个警告并继续使用非 HTTPS 源(这通常不推荐,除非你完全信任该源),你可以在命令行中添加 -trusted-host 参数: pip install -i http://mirrors.aliyun.com/pypi/simple/ some-package --trusted-host mirrors.aliyun.com 五、注意事项 始终优先使用

    1.7K10编辑于 2024-06-16
  • 从“生成”到“决策”:2026 企业级可信智能体(Trusted Agent)技术架构与选型指南

    为了解决这一信任危机,“可信智能体”(Trusted Agent) 应运而生,成为企业数字化转型的选型新标准。 企业级智能体产品的三大技术流派与选型策略当前 AI 市场呈现出明显的“功能分层”现象:以 ChatGPT、文心一言为代表的通用类产品逐渐退守至“个人效率辅助”和“创意生成”赛道;而具备行业深度 Know-how 的企业级可信智能体(Trusted

    40510编辑于 2026-01-15
  • 来自专栏code秘密花园

    消灭 DOM 型 XSS 的终极杀招!

    其实 Trusted Types(可信类型)在我之前的文章里也介绍过: 聊一下 Chrome 新增的可信类型(Trusted types) 不过当时它还是一个非常早期的提案,过了很久都没什么动静,我以为要凉凉了 另外,这个列表里列举了所有已经和 Trusted Types 集成的开源库: https://github.com/w3c/trusted-types/wiki/Integrations 3.自己创建可信类型策略 Trusted Types 断点 为了方便开发者进行调试,Chrome Devtools 还专门提供了用于 Trusted Types 的断点: 在 Sources 选项卡的 Breakpoints 窗格中 使用: const tt = require('trusted-types'); // or import { trustedTypes } from 'trusted-types' 最后 参考 /blog/trusted-types-on-youtube

    85810编辑于 2024-07-25
  • 来自专栏陶士涵的菜地

    [python]python中的一些包以及他们的基本用处和安装

    pika可以用来连接rabbitmq pip install pika -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pip install requests -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com SQLAlchemy是ORM 框架 pip install SQLAlchemy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com pymongo是连接 mongodb的库 pip install pymongo -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com MySQL-python pypi.douban.com lxml是python的一个解析库,支持HTML和XML的解析 pip install lxml -i http://pypi.douban.com/simple/ --trusted-host

    64910发布于 2020-02-18
  • 来自专栏debugeeker的专栏

    CISSP考试指南笔记:3.4 系统安全架构

    Security Architecture Requirements ---- Trusted Computing Base The trusted computing base (TCB) is a If the TCB is enabled, then the system has a trusted path, a trusted shell, and system integrity–checking A trusted path is a communication channel between the user, or program, and the TCB. A trusted shell means that someone who is working in that shell (command interpreter) cannot “bust out

    34320发布于 2020-12-29
  • 来自专栏米扑专栏

    Web.Config和Sql Server2005连接字符串总结

    受信的连接 Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Trusted_Connection=yes ; "Integrated Security=SSPI" 与 "Trusted_Connection=yes" 是相同的。 Driver={SQL Native Client};Server=myServerName/theInstanceName;Database=myDataBase;Trusted_Connection 验证网络数据 Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Trusted_Connection=yes /SQLExpress;AttachDbFilename=|DataDirectory|mydbfile.mdf; Database=dbname;Trusted_Connection=Yes;

    2.6K20发布于 2019-02-19
  • 来自专栏敏而好学

    GlusterFS下如何修复裂脑文件?

    -e hex file1 # file: file1 trusted.afr.plane-client-0=0x000000000000000000000000 trusted.afr.plane-client -1=0x000000000000000000000000 trusted.gfid=0x4e028c9b64234502ba304eba44e16da4 文件变更记录属性说明,如下示例: 0x 000003d7 -0=0x000000000000000000000000 trusted.afr.vol-client-1=0x000003d70000000100000000 trusted.gfid=0x80acdbd886524f6fbefa21fc356fed57 \#file: gfs/brick-b/a trusted.afr.vol-client-0=0x000003b00000000100000000 trusted.afr.vol-client-1=0x000000000000000000000000 trusted.gfid=0x80acdbd886524f6fbefa21fc356fed57 4.

    3K20发布于 2020-02-11
  • 来自专栏存储内核技术交流

    深入浅出Lustre扩展属性

    / trusted.lma 存储这个文件的fid和状态标记 trusted.lma=0sAAAAAAAAAADRCwAAAgAAAAIAAAAAAAAA // trusted.lov 属性存储这个文件的 =trusted.som=0sBAAAAAAAAAAAACAAAAAAAAAAAAAAAAAA // trusted.lmv 是多MDS,子目录的的布局 解析lustre文件属性 解析lustre.lov 通过下面的解析能直接了解到trusted.link存储的实际数据 // lustre源码中定义了这个属性#define XATTR_NAME_LINK "trusted.link" // // lustre内核中定义的trusted.lma#define XATTR_NAME_LOV "trusted.lov" 解析trusted.lov属性,lustre内核中定义XATTR_NAME_LOV "#define XATTR_NAME_LMA "trusted.lma"#define XATTR_NAME_LOV "trusted.lov"/** * File IDentifier

    1K30编辑于 2023-02-26
  • 来自专栏米扑专栏

    【转载】数据库链接字符串大集合

    =yes; "Integrated Security=SSPI" 与 "Trusted_Connection=yes" 是相同的。 Driver={SQL Native Client};Server=myServerName/theInstanceName;Database=myDataBase; Trusted_Connection 验证网络数据 Driver={SQL Native Client}; Server=myServerAddress;Database=myDataBase; Trusted_Connection=yes /SQLExpress; AttachDbFilename=c:/asd/qwe/mydbfile.mdf; Database=dbname;Trusted_Connection=Yes; 为何要使用 Server=myServerName/theInstanceName;Database=myDataBase; Trusted_Connection=True; 仅能用于CE设备。

    2.2K50发布于 2019-02-19
  • 来自专栏python3

    python pip 修改源

    simple/ 直接修改配置的方法: windows系统 在用户文件夹下创建pip目录,并在pip目录下创建pip.in文件(%HOMEPATH%pippip.ini),文件中添加如下内容: [global] trusted-host =mirrors.aliyun.com index-url=http://mirrors.aliyun.com/pypi/simple/ 备注:index-url即源地址,trusted-host为源地址的域名 ,由于国内的源镜像都为使用https协议,所以如果不添加信任域就会报: This repository located at mirrors.aliyun.com is not a trusted host available via HTTPS it is recommend to use HTTPS instead, otherwise you may silence this warning with ‘–trusted-host allowing locations which are not hosted at a secure origin is deprecated and will require the use of –trusted-host

    2.8K20发布于 2020-01-06
  • 来自专栏全栈程序员必看

    解决修改PyCharm源后添加源信任的问题

    问题描述 使用PyCharm内置的包管理修改默认源为豆瓣源后出现报错: “The repository located at pypi.douban.com is not a trusted or secure host and is being ignored” 解决办法 方法一(临时) 在选择安装包的右侧勾选 option 选项 手动通过命令安装包的时候添加–trust选项: --trusted-host pip文件夹,再进到里面新建pip.in文件,然后再里面输入内容: [global] timeout = 6000 index-url = http://pypi.douban.com/simple trusted-host pypi.douban.com/simple [install] use-mirrors = true mirrors = https://pypi.douban.com/simple/ trusted-host touch pip.conf # 创建一个pip配置文件 写入配置 [global] index-url = https://pypi.douban.com/simple [install] trusted-host

    2.4K20编辑于 2022-09-27
  • 来自专栏全栈程序员必看

    pip安装国内的镜像源_pandas镜像源

    2.临时使用某个镜像源: 可以在使用pip的时候在后面加上-i参数,指定pip源 eg: pip install xxx -i http://pypi.douban.com/simple/ –trusted-host pypi.douban.com #此参数“–trusted-host”表示信任,如果上一个提示不受信任,就使用这个 3.永久使用国内pypi镜像安装 1.Linux: cd ~/.pip # 编辑 vim pip.conf 添加内容: [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host = https://pypi.tuna.tsinghua.edu.cn # trusted-host 此参数是为了避免麻烦,否则使用的时候可能会提示不受信任 2.Window: 直接在当前用户目录中创建一个名为 = http://mirrors.aliyun.com/pypi/simple/ # trusted-host 此参数是为了避免麻烦,否则使用的时候可能会提示不受信任 4.正常使用pip命令:

    6.1K20编辑于 2022-11-15
  • 来自专栏建帅技术分享

    dockerfile制作:制作python3下的robotframework运行环境

    . && pip3 --default-timeout=1000 install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com && pip3 --default-timeout=1000 install --upgrade setuptools -i http://pypi.douban.com/simple --trusted-host pip3 --default-timeout=1000 install robotframework-selenium2library -i http://pypi.douban.com/simple --trusted-host pypi.douban.com && pip3 --default-timeout=1000 install robotframework -i http://pypi.douban.com/simple --trusted-host pip3 --default-timeout=1000 install robotframework-ride==1.5.2.1 -i http://pypi.douban.com/simple --trusted-host

    49530编辑于 2022-08-24
  • [环境配置][原创]ubuntu windows更换pip国内源

    在pip.conf中写入如下内容:即可 [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple/ [install] trusted-host pypi.tuna.tsinghua.edu.cn 更换为douban源 [global] index-url = https://pypi.douban.com/simple/ [install] trusted-host pypi.douban.com/simple 更换为aliyun源 [global] index-url = https://mirrors.aliyun.com/pypi/simple/ [install] trusted-host 下面换源方法: C:\Users\Administrator\pip\pip.ini 没有文件自己创建,然后填入 [global] index-url = Simple Index [install] trusted-host set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 2、pip安装源的可信问题: pip config set install.trusted-host

    95110编辑于 2025-07-18
  • 来自专栏卓越笔记

    django request 获取请求的 IP 地址

    defaults as defs NON_PUBLIC_IP_PREFIX = tuple([ip.lower() for ip in defs.IPWARE_NON_PUBLIC_IP_PREFIX]) TRUSTED_PROXY_LIST = tuple([ip.lower() for ip in defs.IPWARE_TRUSTED_PROXY_LIST]) def get_ip(request, real_ip_only=False """ return get_ip(request, real_ip_only=True, right_most_proxy=right_most_proxy) def get_trusted_ip (request, right_most_proxy=False, trusted_proxies=TRUSTED_PROXY_LIST): """ Returns client's ip-address from `trusted` proxy server(s) or None """ if trusted_proxies: meta_keys = ['HTTP_X_FORWARDED_FOR

    2.2K10编辑于 2023-02-18
  • 来自专栏Windows技术交流

    pip install 走公网到files.pythonhosted.org 跨境质量差,用内网源没问题

    :走公网到python源跨境质量差 解决办法:用内网源,可靠稳定 pip install coscmd -i http://mirrors.tencentyun.com/pypi/simple --trusted-host mirrors.tencentyun.com pip install coscmd -U -i http://mirrors.tencentyun.com/pypi/simple --trusted-host python_cloudbaseinit\python.exe -m pip install --upgrade pip -i http://mirrors.tencentyun.com/pypi/simple --trusted-host Cloudbase-Init\Python\Scripts\pip.exe" install coscmd -i http://mirrors.tencentyun.com/pypi/simple --trusted-host Cloudbase-Init\Python\Scripts\pip.exe" install coscmd -U -i http://mirrors.tencentyun.com/pypi/simple --trusted-host

    82610编辑于 2024-01-15
领券